Converting profiles created with ismbatch to ismconfig operations
You can convert XML monitor profiles created using ismbatch to Internet Service Monitoring Configuration command-line interface (ismconfig) commands using the xml2cli application.
Using xml2cli, you create a text file which saves the monitor profiles created with ismbatch as a set of operations. You can then run those operations as a sequence using Internet Service Monitoring Configuration command-line interface. In this way profiles originally created with ismbatch can be sent to the Tivoli Enterprise Portal Server, distributed across your enterprise, or used with the Internet Service Monitoring Configuration command-line or user interfaces as required.
xml2cli syntax
xml2cli [PARAMETER] ...
- -m monitor, specify a monitor name for conversion
- -p profile, specify a profile for conversion
- -f output, specify an output file
Running xml2cli
The xml2cli application is installed to the same directory as ismbatch. To use the xml2cli command, run it directly from the command-line with the required parameter.
To run xml2cli on UNIX systems and convert all XML monitor profiles in the default location to standard screen output, enter the following command:
$ISMHOME/bin/xml2cli
%ISMHOME%\platform\win32\bin\xml2cli.exe
./xml2cli -help
Samples
./xml2cli -p IBM
./xml2cli -m HTTP
./xml2cli -m HTTP -p IBM
./xml2cli -f output.txt
Alternatively, you can run ./xml2cli > output.txt.
$ISMHOME/bin/xml2cli -f output.txt
CANDLE_HOME/arch/cj/lib/ismconfig.sh -config -file output.txt
$CANDLE_HOME/arch/cj/lib/ismconfig.sh [-u username] -command[parameter=value ...]