exportdaterange command
The NSM service
designer can
run the exportdaterange
command from the NSM CLI
to export the latest enabled version NSM service
templates to
an XML file, where the create date is between the start and end date
parameters.
Usage
./nsmadmin.sh command=exportdaterange start=<date> end=<date> filename=<filename>
username=<username> password=<password> port=<port> -v
Options
start is a mandatory option that specifies the date in the format of yyyy-mm-dd. The value is used to compare against the create date of a NSM service template. In the case of this command, matching NSM service templates are returned whereby the start date is since the create date of a NSM service template.
end is a mandatory option that specifies the date in the format of yyyy-mm-dd. The value is used to compare against the create date of a NSM service template. In the case of this command, matching NSM service templates are returned whereby the end date is until the create date of a NSM service template.
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=exportdaterange start=2012-01-01 end=2012-01-10 filename=/opt/IBM/serviceTemplate.xml /nsmadmin.sh command=exportdaterange start=2012-01-01 end=2012-01-10 filename=/opt/IBM/serviceTemplate.xml username=admin password=password01 ./nsmadmin.sh command=exportdaterange start=2012-01-01 end=2012-01-10 filename=/opt/IBM/serviceTemplate.xml username=admin password=password01 port=16310 ./nsmadmin.sh command=exportdaterange start=2012-01-01 end=2012-01-10 filename=/opt/IBM/serviceTemplate.xml username=admin password=password01 port=16310 -v