Job Management Partner 1/Base User's Guide
Function
The jbsgetopinfo command collects operating information, converts it to the definition file format, and outputs to the standard output. Definitions for forwarding events, log file traps, and event log traps can be collected as operating information.
Format
jbsgetopinfo [-h logical-host-name] [-o operating-information-name, ...] [-i ID-number | -a monitoring-target-name]
Required execution permission
In Windows: Administrators (If User Account Control (UAC) for Windows is enabled, you must execute the command from the administrator console.)
In UNIX: Superuser
Command directory
- In Windows:
- installation-folder\bin\
- In UNIX:
- /opt/jp1base/bin/
Arguments
-h logical-host-name
Specify the name of the logical host from which you want to collect operating information. If you omit this option, the host name set in the environment variable JP1_HOSTNAME is assumed. If the environment variable JP1_HOSTNAME is not set, the physical host name is assumed.
-o operating-information-name, ...
Specify the name of the operating information you want to collect. If you omit this option, the system assumes that all of the operating information names are specified. When multiple operating information names are specified, separate the names with commas.
You can specify any of the following operating information names.
- forward
Outputs definitions in the forwarding settings file in use. For details on the forwarding settings file, see Forwarding settings file in 14. Definition Files.
- logtrap
Outputs definitions in the action definition file for log file trapping in use. If you want to collect operating information from the logical host, operating information of the physical host are actually collected. For details about the format of the action definition file for log file trapping, see Action definition file for log file trapping in 14. Definition Files.
- evttrap
Outputs definitions in the action definition file for event log trapping in use. If you want to collect operating information from the logical host, operating information of the physical host are actually collected. evttrap is only for Windows. For details about the format of the action definition file for event log trapping, see Action definition file for event log trapping (Windows only) in 14. Definition Files.
-i ID-number |-a monitoring-target-name
This option is valid only when logtrap is specified as an operating information name. For ID-number, specify the ID number of the log file trap that you want to collect operating information. For monitoring-target-name, specify a monitoring target name of the log file trap that you want to collect operating information. Specify either ID-number or monitoring-target-name. If logtrap is specified as an operating information name and this option is omitted, definitions of all the active log file traps are collected.
Notes
- If definitions corresponding to the specified operating information name do not exist, it causes an error. If multiple operating information names are specified, only existing definitions are output.
- If a log file trap corresponding to the specified ID number or monitoring target name does not exist, no definition is output.
Return values
0 Normal end 1 Invalid argument 2 No operating information 248 The operating information file is corrupted. 249 The specified logical host name does not exist. 250 The reloaded settings have not been reflected. 251 Other user is now accessing. 252 No execution permission 253 UAC error 254 Insufficient memory 255 Other error
All Rights Reserved. Copyright (C) 2009, Hitachi, Ltd.