Our SolarWinds Admin just upgraded our NPM from 10.3 to 10.4 (Orion Core 2012.2.1, SAM 5.2.0 SP1, NPM 10.4.1, IVIM 1.5.0, VNQM 4.0). I have the SDK v1.5 installed on my machine. My unmanage/remange script is no longer working after the upgrade. Does anyone know what would cause this? I now get this error:
Get-SwisData : No DNS entries exist for host orion.domain.corp.
At line:1 char:22
+ $nodes = Get-SwisData <<<< $swis 'SELECT NodeID,DNS FROM Orion.Nodes'
+ CategoryInfo : NotSpecified: (:) [Get-SwisData], EndpointNotFoundException
+ FullyQualifiedErrorId : System.ServiceModel.EndpointNotFoundException,SwisPowerShell.GetSwisData
Here are the functions I was using for this (part of a larger VM restore script):
Function Unmanage ($vm2restore) {
#Unmanage server in Orion
$orion = "orion.domain.corp"
$node = $vm2restore+".domain.corp"
$user = "swis_user"
$pw = "swis_pass"
$pass = $pw | ConvertTo-SecureString -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential($user,$pass)
$swis = Connect-Swis -Credential $cred -Hostname $orion
$nodeid = Get-SwisData $swish "SELECT NodeID FROM Orion.Nodes WHERE DNS like '$node'"
$global:mynode = "N:"+$nodeid
$now = [DateTime]::Now
$later = ($now).AddDays(1)
Invoke-SwisVerb $swis Orion.Nodes Unmanage @($mynode,$now,$later,"false") | Out-Null
}
Function Remanage ($vm2restore) {
#Remanage server in Orion
$node = $vm2restore+".domain.corp"
$orion = "orion.domain.corp"
$user = "swis_user"
$pw = "swis_pass"
$pass = $pw | ConvertTo-SecureString -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential($user,$pass)
$swis1 = Connect-Swis -Credential $cred -Hostname $orion
$nodeid = Get-SwisData $swis "SELECT NodeID FROM Orion.Nodes WHERE DNS like '$node'"
$mynode = "N:"+$nodeid
Invoke-SwisVerb $swis Orion.Nodes Remanage @($mynode) | Out-Null
}
Here is the output from the c:\ProgramData\Solarwinds\InformationService\v3.0\Orion.InformationService.log file on the NPM server:
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.ICommunicationObject.Close()
at SolarWinds.InformationService.Contract2.InfoServiceProxy.Close()
2013-02-12 10:57:33,101 [5] WARN SolarWinds.Data.Providers.Orion.DynamicServicesHost - Failed to subscribe to notifications for limitations, custom property, and account rights - endpoint not found. Will try again in one minute. Exception message: There was no endpoint listening at net.tcp://orion:17777/SolarWinds/InformationService/v3/Orion/certificate that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
2013-02-12 10:57:33,164 [5] ERROR SolarWinds.InformationService.Contract2.InfoServiceProxy - An error occured opening a connection to the orion communication service.
System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.tcp://orion:17777/SolarWinds/InformationService/v3/Orion/certificate that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Any help would be greatly appreciated.
Thanks,
-Steve10