exportid command

The NSM service designer can run the exportid command from the NSM CLI to export the latest enabled version NSM service template matching the serviceTemplateId parameter to an XML file.

Usage

./nsmadmin.sh command=exportid serviceTemplateId=<id> filename=<filename> username=<username>
password=<password> port=<port> -v

Options

serviceTemplateId is a mandatory option that specifies the NSM service template identifier.

filename is a mandatory option that specifies the location of the file that will be written to as a result of the command being executed.

username is a mandatory option that specifies the NSM service designer user name.

password is a mandatory option that specifies the NSM service designer password.

port is the Netcool Configuration Manager presentation server port number. The default value is 16310. It is optional.

-v displays detailed output to both the console and the log file. It can be specified anywhere in a command. It is optional.

Notes

If the NSM service template that is being exported contains the <databaseConnection> element for an SQL parameter, then the username and password of the database connection will not be exported to the filename.

Examples

./nsmadmin.sh command=exportid serviceTemplateId=1 filename=/opt/IBM/serviceTemplate.xml
./nsmadmin.sh command=exportid serviceTemplateId=1 filename=/opt/IBM/serviceTemplate.xml 
username=admin password=password01
./nsmadmin.sh command=exportid serviceTemplateId=1 filename=/opt/IBM/serviceTemplate.xml 
username=admin password=password01 port=16310
./nsmadmin.sh command=exportid serviceTemplateId=1 filename=/opt/IBM/serviceTemplate.xml 
username=admin password=password01 port=16310 -v