Hi,
I'd like to know if it is possible to update multiple Node Names without using SQL, I mean, is it possible to do it with a spreadsheet, just like importing custom properties?
Thanks,
Bira
I'm sorry for my late response.
First of all, install Orion SDK on Orion Server and read the technical reference guide (starting on page 34). There you'll have all the info you need.
Now how your node names will be like depends on the name pattern you want to adopt. If you want multiple nodes to have the same "Caption", it is easier.
Example:
add-pssnapin swissnapin
$swis = connect-swis
Get-SwisData $swis 'SELECT N.Uri FROM Orion.Nodes WHERE vendor like @C' @{C='%Cisco%'} | Set-SwisObject $swis -Properties @{Caption='Router'}
This will update all node names where vendor is Cisco to 'Router'.
You can build a script to update node names as you wish.
Hi,
It depends on what change you'd like to do. Here there's a table extracted from SWQL Studio that shows all the operations you can do using Windows Powershell.
Name | MethodName | EntityName |
Acknowledge | Acknowledge | Orion.AlertStatus |
AddNote | AppendNote | Orion.AlertStatus |
MigrateAllAdvancedAlerts | MigrateAllAdvancedAlerts | Orion.AlertConfigurations |
MigrateAdvancedAlert | MigrateAdvancedAlert | Orion.AlertConfigurations |
MigrateAdvancedAlertFromXML | MigrateAdvancedAlertFromXML | Orion.AlertConfigurations |
ReportIndication | ReportIndication | Orion.AlertIndication |
ReportIndication | ReportIndication | Orion.AlertTriggered |
ReportIndication | ReportIndication | Orion.AlertUpdated |
ReportIndication | ReportIndication | Orion.AlertReset |
CreateCustomProperty | CreateCustomProperty | Orion.AlertConfigurationsCustomProperties |
CreateCustomPropertyWithValues | CreateCustomPropertyWithValues | Orion.AlertConfigurationsCustomProperties |
ModifyCustomProperty | ModifyCustomProperty | Orion.AlertConfigurationsCustomProperties |
DeleteCustomProperty | DeleteCustomProperty | Orion.AlertConfigurationsCustomProperties |
ValidateCustomProperty | ValidateCustomProperty | Orion.AlertConfigurationsCustomProperties |
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.