Job Management Partner 1/Integrated Management - Manager GUI Reference
The Execute Command window is used to execute a command on a monitoring target host.
To open the Execute Command window, the user must have JP1_Console_Admin permission or JP1_Console_Operator permission. This window is displayed when the user chooses Options from the menu bar of the Event Console window and then Execute Command. The Execute Command window is not available in Web-based JP1/IM - View.
The following figure shows an example of the Execute Command window.
Figure 2-44 Execute Command window
The following describes the items displayed in the Execute Command window.
- Target host
- Specifies the name of a host on which a command is to be executed. The host name specified in the box cannot exceed 255 bytes and must be a host name that is set as a managed host in the system configuration definition.
- A host group name that is defined in the host group definition file can be specified.
- A host name specified in the past can be selected from the drop-down list. A maximum of five hosts per viewer specified in the past can be stored for one user.
- Command
- Specifies the command line to be executed.
- The command line specified in the box cannot exceed 4,096 bytes. Note, however, that the maximum length of the command that can be executed from JP1/IM - View depends on the system that runs JP1/IM and JP1/Base.
- If JP1/IM or JP1/Base of version 6 or 7 is installed on the hosts via which a command is executed, the command must be 1,024 bytes or less. The hosts include the manager host from which the command is entered as well as the host on which the command is executed. If the specified command is longer than 1,024 bytes, the command fails. For details, see 11.3.3(1) Notes in the Job Management Partner 1/Integrated Management - Manager Overview and System Design Guide.
- The following describes the types of commands that can be specified for Command.
- On a Windows host, the following types of commands can be executed:
- Executable files (.com and .exe)
- Batch files (.bat)
- Script files of JP1/Script (.spt) (An association must be set for .spt files so that they can be executed.)
- On a UNIX host, the following types of commands can be executed:
- UNIX commands
- Shell scripts
- Note that the following commands cannot be executed:
- Commands requiring user interaction
- Commands displaying windows
- Commands with an escape sequence or control code specified
- Commands that do not stop, such as daemons
- Windows message functionality, DDE commands, and other commands requiring interaction with the Desktop (in Windows only)
- Commands that shut down the OS, such as shutdown and halt
- A command line specified in the past can be selected from the drop-down list. A maximum of five command lines per viewer specified in the past can be stored for one user.
- Clear History
- Clicking this button clears all command lines specified in the past from the drop-down list. This button can be used when there is no need to save the history of commands executed in the past.
- Environment variable file
- Specifies the name of the environment variable file saved on the host on which the command is executed. Specify a full path name of 255 or fewer bytes.
- Environment variables are set as specified in the file before the command is executed.
- Execute
- Clicking this button executes the specified command.
- Log
- This area lists the results of commands executed from the Execute Command window. The time the command was executed, the name of the host on which the command was executed, and the message output to the standard output or standard error output are displayed. When a list header (Time, Host, or Message) is clicked, the list is sorted by time, host name, or message.
- The results of commands executed from the Execute Command window are displayed in the list box until the window is closed.
- The maximum number of items that can be displayed in the Log area is set by Lines of execution results to display in the Preferences window. If the maximum number of items that can be displayed in this area is exceeded, the oldest item, regardless of the sort order, is deleted.
- Clear
- Clicking this button clears the command execution results listed in the Log area.
All Rights Reserved. Copyright (C) 2009, Hitachi, Ltd.