Need help with using REST UI to put CI in maintenance

book

Article ID: 222349

calendar_today

Updated On:

Products

CA Service Operations Insight (SOI)

Issue/Introduction

Need help with using REST UI to put CI in maintenance.

Would like a procedure that would get the InstanceID from a command.

Environment

Release : 4.2

Component : Service Operations Insight (SOI) Manager

Resolution

Use command to export all CIs belonging to a service
WSSSAServiceCmdV2 -hlocalhost:7090 -usamuser -p"EFbJeXR3zLsi9aPfOQ9FzRVOPPEUwCGxCWUFTNF4kxKD" -aExport -s"Service:servicename,WSMan New Service" -fc:/myServiceExport.xml

 

Here are the 3 regex you will need for Notepad+++ to search the Label, MDRElementID, ci_namespace values 

 

Regular expression to select value for Label
(?<=<Label>)(.*)(?=</Label>)


Regular expression to select value for MDRElementID
(?<=<Mdrelementid>)([0-9A-Za-z]+[^:])(?=</Mdrelementid>)


Regular expression to select value for ssa_ci_namespace_map_id
(?<=>)(.*)(?=</ssa_ci_namespace_map_id>)