This section explains how to use commands to import and export Systemwalker Operation Manager server definition information.
Use the following procedure to import definition information from CSV files to a Systemwalker Operation Manager server by means of a command.
Procedure
Create CSV files.
Create the job net definition CSV files and group definition CSV files.
It is possible to modify CSV files created by exporting information from a Systemwalker Operation Manager server.
Convert CSV files to control statements.
Use the jobschcsvtodef command to convert job net CSV files or group definition CSV files to control statement format.
jobschcsvtodef CSV file |
Control statements will be sent to standard output. The output can be redirected to a file if necessary.
Register the control statements with the Systemwalker Operation Manager server.
Job net control statements and job control statements are registered using the jobschsetnet command, and group control statements and in-group job net control statements are registered using the jobschsetgrp command.
Example of a new registration:
Using the job net control statement "net.txt" to register the definition information with a new project named "ABC":
jobschsetnet -nent ABC net.txt |
Example of a change to existing information:
Using the group control statement "group.txt" to correct the definition information in a project where an existing group named "ABC" is registered:
jobschsetgrp -che ABC group.txt |
Refer to the Systemwalker Operation Manager Reference Guide for details on the jobschcsvtodef, jobschsetnet and jobschsetgrp commands.
The following procedure uses commands to export Systemwalker Operation Manager server definition information to CSV files:
Procedure
Outputting from Systemwalker Operation Manager server to a control statement
Job net control statements and job control statements are output by specifying the project name or job net name with the jobschprint -r command. Group control statements and in-group job net control statements are output by specifying the project name or group name with the jobschprint -R command.
To output a job net control statement or a job control statement:
jobschprint -r project name/job net name |
To output a group control statement or an in-group job net control statement:
jobschprint -R project name/group name |
In both cases, the control statement is sent to standard output. If necessary, the output can be redirected to a file.
Convert from control statement to CSV file.
Use the jobschdeftocsv command to convert from control statements to job net definition CSV files or group definition CSV files.
jobschdeftocsv control statement file |
Control statements will be sent to standard output. The output can be redirected to a file if necessary.
Refer to the Systemwalker Operation Manager Reference Guide for details on the jobschprint -r, jobschprint -R and jobschdeftocsv commands.