getversion command

The NSM service designer can run the getversion command from the NSM CLI to retrieve information about a version of a NSM service template and output this information to an XML file.

Usage

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

Options

filename is a mandatory option that specifies the fully qualified file name of the file where the results are written.

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

version is a mandatory option that specifies the NSM service template version that should be returned.

username is a mandatory option that specifies the NSM service designer user name. It is not a required argument in the command because the command-line tool prompts the user for the username if omitted in the command.

password is a mandatory option that specifies the NSM service designer password. It is not a required argument in the command because the command-line tool prompts the user for the password if omitted in the command.

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.

Examples

./nsmadmin.sh command=getversion filename=serviceTemplateOutput.xml serviceTemplateId=45 version=2
./nsmadmin.sh command=getversion filename=serviceTemplateOutput.xml serviceTemplateId=45 version=2 
username=admin password=password01
./nsmadmin.sh -v command=getversion filename=serviceTemplateOutput.xml serviceTemplateId=45  
version=2username=admin password=password01 port=16310
./nsmadmin.sh command=getversion filename=serviceTemplateOutput.xml serviceTemplateId=45 
version=2 username=admin password=password01 port=16310 -v