importlist command

The NSM service designer can run the importlist command from the NSM CLI to import a number of NSM service templates by using information from an XML file.

Usage

./nsmadmin.sh command=importlist filename=<filename> username=<username> password=<password>
port=<port> -v

Options

filename is a mandatory option that specifies the file from which the import information is read.

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

Username and password values within <databaseConnection> elements of a NSM service template will not be exported as a result of executing any of the export commands. If any of these exported templates are to be imported into another environment, the user must provide the username and password values before executing the import functionality.

The importlist command implies importing a number (or list) of NSM service templates at once. It is a requirement that the NSM service templates in the referenced file be wrapped in <serviceTemplates> tags as follows:

<serviceTemplates>
  <serviceTemplate name="TemplateOne">
  </serviceTemplate>
  <serviceTemplate name=”TemplateTwo”>
  </serviceTemplate>
.
.
.
</serviceTemplates>

Examples

./nsmadmin.sh command=importlist filename=/opt/IBM/importServiceTemplates.xml
./nsmadmin.sh command=importlist filename=/opt/IBM/importServiceTemplates.xml username=admin
password=password01
./nsmadmin.sh command=importlist filename=/opt/IBM/importServiceTemplates.xml username=admin
password=password01 port=16310
./nsmadmin.sh command=importlist filename=/opt/IBM/importServiceTemplates.xml username=admin
password=password01 port=16310 -v