MPE/iX System Utilities Reference
> Chapter 32 UPSUTIL for MPE/iXUPSUTIL Commands |
||||||||||||||||||||||||
|
HELP CommandThe HELP command merely displays a "menu" of UPSUTIL commands, as an online documentation aid to users of UPSUTIL. Syntax help Example -------------------------------------------------------------------------- UPSUTIL: Command > help -------------------------------------------------------------------------- UPSUTIL Program: Commands available are as follows: (There are no parameters for any of the commands. At the prompt, just type the command name. ) Cmd Name: Command Function: ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ help - Show this menu of commands. exit Done, exit the program. config - Show system configuration of UPS devices. newconfig - Change to a new UPS Monitor config file. start - Start the System UPS Monitor process. stop - Stop the System UPS Monitor process. restart - Restart (stop, then start) the UPS Monitor process. resetpfail - Reset (clear) UPS Monitor's information about the most recent execution of the "powerfail command file". status - Show System UPS Monitor process status. -------------------------------------------------------------------------- UPSUTIL: Command > EXIT CommandThe EXIT command terminates a UPSUTIL session. When the EXIT command is entered, UPSUTIL finishes execution and returns to the MPE/iX Command Interpreter. Syntax exit Example -------------------------------------------------------------------------- UPSUTIL: Command > exit -------------------------------------------------------------------------- END OF PROGRAM : CONFIG CommandThe CONFIG command causes UPSUTIL to examine the I/O configuration tables of the currently running system to determine what (if any) UPS devices are configured on the system, and then to display the list of configured UPS devices (if any). Syntax config Example The first example shows the results of a CONFIG command performed on a system on which there are three UPS devices currently configured. For convenience in referring to the display, UPSUTIL consecutively numbers the UPS devices that it finds in the system configuration, starting with UPS #1. This "UPS number" has no operational significance in the system: it merely provides a convenient means for counting and referring to the system's UPS devices. The LDEV numbers do have operational meaning within the system. These are the file system's "logical device numbers" that were assigned to the UPS devices during system configuration. These LDEV numbers can be used to check and corroborate the system's SYSGEN and NMMGR NMCONFIG I/O configurations for the UPS devices. The MPE/iX ":SHOWDEV" command will display all LDEV numbers configured on the running system, including, as a subset, these UPS LDEV numbers.-------------------------------------------------------------------------- UPSUTIL: Command > config -------------------------------------------------------------------------- Begin SHOW UPS CONFIGURATION Operation There are 3 UPS devices configured on this system. UPS # LDEV # ~~~~~ ~~~~~~ 1 22 2 23 3 24 End SHOW UPS CONFIGURATION Operation -------------------------------------------------------------------------- UPSUTIL: Command >The second example shows the result of performing a CONFIG command on a system on which there are no UPS devices configured. If you get this result from a CONFIG command on a system that is supposed to have UPS devices configured, then there is something wrong with the system's I/O configuration files: the UPS devices have not been configured correctly. Revise the system I/O configuration according to the procedures given in the Performing System Management Tasks manual for configuring UPS devices, then reboot the system and run UPSUTIL again to verify the configuration. -------------------------------------------------------------------------- UPSUTIL: Command > config -------------------------------------------------------------------------- Begin SHOW UPS CONFIGURATION Operation There are no UPS devices configured on this system. End SHOW UPS CONFIGURATION Operation -------------------------------------------------------------------------- UPSUTIL: Command > NEWCONFIG CommandThe NEWCONFIG command causes UPSUTIL to instruct the UPS Monitor subsystem to begin using a new UPS Monitor configuration file, specified by the user in the NEWCONFIG command. (The NEWCONFIG command executor prompts the user to enter the file name of the desired new UPS Monitor configuration file.) A UPS Monitor configuration file is a simple ASCII line-oriented text file that the user can create with a text editor. The file contains a set of UPS Monitor configuration commands, which establish various operating characteristics or options in the UPS Monitor. In its first implementation (March 2000), the NEWCONFIG configuration file permits only one kind of UPS Monitor configuration option to be set: namely, the option to have the UPS Monitor's "** RECOVERY FROM POWERFAIL **" messages either routed to the system console and to all logged-on user terminals, or to have those messages sent only to the system console, and not to any user terminals. This configuration option is called the "powerfail message routing" option. In the future, more configuration options may be added to the UPS Monitor configuration file facility, as the need arises. Revision of December 2001: Version 9: Additional Configuration Commands The UPS Monitor has been enhanced to include more configuration options. The new configuration commands pertain to establishing the UPS Monitor's behavior in response to a UPS device's signaling of an AC power failure. The new commands allow the user (system manager) to specify his own custom MPE/iX Command File to be executed a certain time (also user configurable) following a UPS power failure signal. In addition, the UPS Monitor's behavior in response to a UPS's "low battery charge" signal is now configurable by the user. (Prior to this enhancement, the UPS Monitor always performed an intentional "system abort" to protect disk data in case of a UPS "low battery" signal.) The new configuration commands are:
Requirements for UPS Monitor Configuration FilesUPS Monitor configuration files handled by the NEWCONFIG command must adhere to the following requirements of structure and placement:
UPS Monitor Configuration OptionsHere are the available configuration options (configuration "commands") for UPS Monitor configuration files.Powerfail Message RoutingThe powerfail message routing configuration option allows you to choose how the UPS Monitor will handle its issuance of the HP e3000 system's ** RECOVERY FROM POWERFAIL ** message, which is issued at the end of every power failure event — when AC power has returned to all UPSs — to notify the system operator and (optionally) system users of the completion of a power failure cycle. parameter name: powerfail_message_routing parameter values: (a) all_terminals To send the notification message to the system console and to all user terminals.(b) console_only To send the notification message only to the system console. No notification messages are sent to any user terminals.Powerfail Command FileThe powerfail command file configuration option allows you to specify your own MPE/iX Command File to be executed at a certain time (established by the powerfail grace period configuration command, see below) following the UPS Monitor's detection of a UPS AC power failure signal.This configuration command is optional, and need not be included in the UPS Configuration file. If it is not included, then no powerfail command file will be used by the UPS Monitor. In that case, the UPS Monitor will only report UPS power fail occurrences to the system console and system log file, and will take no other actions due to UPS power fail detection. parameter name: powerfail_command_file parameter values: (a) file.group.account [; <parm1> <parm2> ... <parmN> ] To cause UPS Monitor to utilize the named file (file.group.account) as an MPE/iX CI command file, to be executed at powerfail grace period time following any UPS's report of an incoming AC power failure. The file name may optionally be followed by a semicolon and a list of parameters for the execution of the CI command file. If the parameters are supplied in the "powerfail_command_file = xxx" configuration command, then the parameters will be passed as-is to the MPE/iX CI at the time when the powerfail command file is executed. (b) $null To specify that no powerfail command file is to be used.Powerfail Grace PeriodThe powerfail grace period configuration option allows you to specify a "grace period" (a delay time) following the detection of a UPS power failure by the UPS Monitor during which the UPS Monitor will wait to see if AC power returns to that UPS. If power is restored to the UPS before the grace period has elapsed, then the UPS Monitor will NOT commence execution of the user's "powerfail command file" (if a powerfail command file has been configured). But if power does not return to the UPS device by the time that the grace period has elapsed, then the UPS Monitor will commence execution of the "powerfail command file", if one is configured. If no "powerfail command file" is configured via the UPS Monitor configuration file, then the setting of the powerfail grace period is immaterial. If a powerfail grace period is configured but no powerfail command file is configured, then the setting of the powerfail grace period has no effect upon the UPS Monitor's operation in response to a UPS device power failure report. parameter name: powerfail_grace_period parameter values: (a) nnnn — integer number of seconds in the grace period. Minimum value: 0, Maximum value: 1800 seconds.Powerfail Low BatteryThe powerfail low battery configuration option allows you to specify one of two behaviors of the UPS Monitor following its detection of a "low battery charge" condition from any configured UPS device. The choices of behavior are: (a) System Abort: UPS Monitor is to perform an intentional special system abort at "low battery" detection, in order to guarantee the correctness of data stored on disk devices in case AC power to one or more disk drives does fail exactly at a time when the disk device is performing a "write data" operation on the disk. (Present models of SCSI disk devices can not by themselves guarantee not to write a partial sector of data if they happen to be writing data when their power disappears.) (b) Keep Running: UPS Monitor is commanded NOT to perform its intentional system abort at "low battery" detection time. Rather, it is to allow the system to keep running even after the "low UPS battery" condition has been detected. This option gives the system approximately two more minutes of operation than it would have if the "system abort" option were specified, in the hope that this will be sufficient additional time to complete an orderly system shutdown before power to the disk device(s) is actually lost.
The Default UPS Monitor Configuration FileYou can still control the UPS Monitor with a configuration file even if you never use UPSUTIL's NEWCONFIG command. This is because the UPS Monitor (Version 8 of March 2000, or later version) automatically attempts to open and read a default UPS Monitor configuration file, named UPSCNFIG.PUB.SYS, at each system startup (each system boot). Therefore, after installing Version 8 (or later) of the UPS Monitor software on your system, you need only use your favorite editor to create a UPSCNFIG.PUB.SYS text file and then re-boot the system. From this point on, the file UPSCNFIG.PUB.SYS will govern your system's UPS Monitor's configurable behavior. The file UPSCNFIG.PUB.SYS will be read by and acted upon by the UPS Monitor during every system startup, and also (should you choose to use this facility) every time the UPS Monitor is started by using the UPSUTIL START command.
If No UPSCNFIG.PUB.SYS File ExistsUPSCNFIG.PUB.SYS is the default UPS Monitor configuration file, to be used unless/until you use UPSUTIL's NEWCONFIG command to choose a different configuration file. The UPS Monitor's final default, in case there is no UPSCNFIG.PUB.SYS default configuration file on the system, is to assume case (a) above: The powerfail messages routing option will be assumed to be "to all terminals", the same as it has been in the past. Also, there will be no "powerfail command file" configured (and no "powerfail grace period time" configured), so there will be no special action taken following a UPS device power fail signal. Finally, the default UPS Monitor action for "UPS low battery charge condition" will be system abort.Observing Results of NEWCONFIG CommandAfter you have used the NEWCONFIG command to activate a new UPS Monitor configuration file through UPSUTIL, then use the STATUS command of UPSUTIL to see the results of the new configuration file activation. (Refer to the STATUS command.) UPSUTIL's NEWCONFIG command causes your chosen configuration file to be "sent to" the UPS Monitor software; but UPSUTIL itself does not do error checking on the configuration file. (The UPS Monitor module does perform error checking on the file. Any problems with the configuration file will be reported to the system operator via console messages issued by the UPS Monitor. These error messages will also be recorded in the system diagnostic log file.) The UPSUTIL STATUS command obtains a status report from the UPS Monitor module, which will show you whether the UPS Monitor detected any errors in your new configuration file, and what the current settings of the configurable options are after your NEWCONFIG command has executed. Example #1 — Using UPSCNFIG.PUB.SYS The first example shows a NEWCONFIG command being used to set the configuration using the default UPSCNFIG.PUB.SYS configuration file. A STATUS command following the NEWCONFIG command reports the results of using UPSCNFIG.PUB.SYS.-------------------------------------------------------------------------- UPSUTIL: Command > newconfig -------------------------------------------------------------------------- Begin SET NEW CONFIG FILE UPS Monitor operation Enter the file name of the new configuration file (file.group.account) New config file name? upscnfig.pub.sys SET NEW CONFIG FILE UPS Monitor operation successfully initiated. End SET NEW CONFIG FILE UPS Monitor operation -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 78) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS ( Config File Ok ) Powerfail Command File Name : $null ( Pfail Cmd File Ok ) Powerfail Command File Parms: none Powerfail Grace Period (secs: 0 Powerfail Grace Timer : Not Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 101 Yes Yes Monitoring Normal AC Power Normal 3 103 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command >Example #2 — Using UPSCNFGB.PUB.SYS The next example shows the selection of a new UPS Monitor configuration file, UPSCNFGB.PUB.SYS, in which the powerfail message routing option is set to "console only". Again, the STATUS command shows the results. UPSUTIL: Command > newconfig -------------------------------------------------------------------------- Begin SET NEW CONFIG FILE UPS Monitor operation Enter the file name of the new configuration file (file.group.account) New config file name? upscnfgb.pub.sys SET NEW CONFIG FILE UPS Monitor operation successfully initiated. End SET NEW CONFIG FILE UPS Monitor operation -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 78) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : Console only. 3 UPS Devices Allocated Configuration File Name : UPSCNFGB.PUB.SYS ( Config File Ok ) Powerfail Command File Name : $null ( Pfail Cmd File Ok ) Powerfail Command File Parms: none Powerfail Grace Period (secs: 0 Powerfail Grace Timer : Not Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 101 Yes Yes Monitoring Normal AC Power Normal 3 103 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command >Example #3 — Error in Configuration File The final example shows what happens when an error is detected in an UPS Monitor configuration file. In this case, the configuration file UPSCNFGC.PUB.SYS was attempting to set the powerfail message routing to "all terminals", but there was a typographic error in the "all terminals" parameter. The UPS Monitor reports the error to the system console, and the UPSUTIL STATUS command shows that the UPS Monitor has found an error in the current configuration file, UPSCNFGC. -------------------------------------------------------------------------- UPSUTIL: Command > newconfig -------------------------------------------------------------------------- Begin SET NEW CONFIG FILE UPS Monitor operation Enter the file name of the new configuration file (file.group.account) New config file name? upscnfgc.pub.sys 12:09/52/Illegal configuration command parameter in UPS Monitor configuration file "UPSCNFGC.PUB.SYS" at record 2, column 29. (UPSERR 0640) SET NEW CONFIG FILE UPS Monitor operation successfully initiated. End SET NEW CONFIG FILE UPS Monitor operation -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 78) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : Console only. 3 UPS Devices Allocated Configuration File Name : UPSCNFGC.PUB.SYS (** Config File Has Error **) Powerfail Command File Name : $null ( Pfail Cmd File Ok ) Powerfail Command File Parms: none Powerfail Grace Period (secs: 0 Powerfail Grace Timer : Not Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 101 Yes Yes Monitoring Normal AC Power Normal 3 103 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command > STATUS CommandThe STATUS command causes UPSUTIL to query the UPS Monitor Process for its status and for the status of each configured UPS device, and to display the status information reported by the UPS Monitor process. Syntax status Example #1 — Normal Status -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS ( Config File Ok ) Powerfail Command File Name : MYPFAIL.PUB.SYS ( Pfail Cmd File Ok ) Powerfail Command File Parms: none Powerfail Grace Period (secs: 300 Powerfail Grace Timer : Not Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 101 Yes Yes Monitoring Normal AC Power Normal 3 103 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command > The Status DisplayThe status display produced by the STATUS command's execution is shown in the above example and in several additional examples that follow this explanation of the parts of the status display. The status display has two main sections, titled UPS MONITOR PROCESS STATUS and UPS DEVICES STATUS. The former section gives information about the UPS Monitor Subsystem Process, while the latter gives information about each UPS device configured on the system. The next subsections describe the component parts of the status display, explaining their purposes and meanings. Refer to the examples as references while reading the following subsections, which first describe the parts of UPS MONITOR PROCESS STATUS and then the parts of UPS DEVICES STATUS.UPS Monitor Process Status DisplayUPS Monitor Operating StateThis field of the status display shows the current operational state of the UPS Monitor Process. Possible values of this field are:
UPS Monitor Version NumberThis field of the status display presents the "version number" of the UPS Monitor Process that is executing. This is simply a software version identification number, to identify the particular revision of the UPS Monitor software present on the system.System Power StateThe System Power State status field shows the current condition of overall system power as most recently observed by the UPS Monitor Process. The following values are possible:
Powerfail Recovery MessagesThis field shows the current setting of the UPS Monitor's configuration option for handling ** RECOVERY FROM POWERFAIL ** messages. This setting is established when the UPS Monitor processes its configuration file, either during system startup (using UPSCNFIG.PUB.SYS) or, when the system is up, via the NEWCONFIG command of the UPSUTIL program. Possible values of this field are:
Configuration File NameThis field shows the file name of the currently active UPS Monitor configuration file, and is followed by a status indication field that reads either (Config File OK) or (** Config File Has Error **). Note that this field always shows the file name of the most recent UPS Monitor configuration file to have been processed by the UPS Monitor, regardless of whether that processing was successful (no errors in configuration file) or not (configuration file has some error(s)). If a configuration file does contain some error(s) and then the UPS Monitor reports the error to the system console, then ignores the configuration file record containing the error. This means that whatever configuration attribute (e.g., powerfail_message_routing) was supposedly being set in that configuration file record will not be set to a new value. Instead, UPS Monitor will simply retain the original value of the configuration attribute. Therefore, if the status display shows (** Config File Has Error **), then the actual values of configuration attributes that are shown in the status display do not "belong" to that configuration file. Instead, they are the prior values, being retained by UPS Monitor.Powerfail Command File NameThis field shows the file name of the currently active UPS Monitor powerfail command file, if any, and is followed by a status indication field that reads either (Pfail Cmd File OK) or (** Command File Has Error **).Note that this field always shows the file name of the most recent UPS Monitor powerfail command file to have been set up by the UPS Monitor, regardless of whether that command file was set up correctly or not. The UPS Monitor attempts to "set up" (or establish) a powerfail command file when it encounters a "powerfail_command_file = <filename>" configuration command while processing a UPS Monitor configuration file. When it does so, the UPS Monitor performs only a very basic error check on the powerfail command file: it simply checks to determine if the named file exists and can be opened for reading. If so, then the UPS Monitor establishes that file to be the powerfail command file, with no errors indicated. If not, then the UPS Monitor will flag the named powerfail command file as "has errors", and will NOT attempt to execute that file in case of a UPS power failure that exceeds the "grace period" time. Powerfail Command File ParmsThis field shows the parameters, if there were any, specified for use by the powerfail command file. These parameters may be specified in the "powerfail_command_file = filename; parameters..." configuration command in the UPS configuration file.Powerfail Grace PeriodThis field shows the current "powerfail grace period", in seconds, as established by the most recent processing of the UPS configuration file. The powerfail grace period is the amount of time, in seconds, that must elapse following the UPS Monitor's detection of a "power fail" signal from a UPS device before the UPS Monitor will commence the execution of the user's specified "powerfail command file". Thus, the grace period gives a chance of a certain amount of time in which the incoming AC power may come back on and restore normal system operation (a recovery from the power failure), so that the UPS Monitor will not begin to execute the user's power failure command file.Powerfail Grace TimerThis field shows the current state of the UPS Monitor's "powerfail grace period timer", which measures the amount of time (powerfail grace period) from the time of the onset of a UPS device power failure until the time when the power fail command file begins to be executed. Possible values of this field are:
Powerfail Command FileThis field shows the current state of the UPS Monitor's "powerfail command file" execution, which occurs only if a powerfail command file has been configured and there has been a UPS device power failure that has persisted for longer than the "powerfail grace period" time. Possible values of this field are:
Action on UPS Low BatteryThis field shows the configured action to be taken by the UPS Monitor in case a UPS device signals "low battery charge condition." Possible values of this field are:
PinThe PIN field shows the PIN (Process Identification Number) of the UPS Monitor Process.UPS Devices ConfiguredThis field shows the number of UPS devices that have been configured into the system's I/O configuration, as detected by the UPS Monitor Process during its start-up operations.UPS Devices MonitoredThis field shows the number of UPS devices that the UPS Monitor Process is monitoring (or is attempting to monitor). The value in this field should always be the same as the value of the UPS Devices Configured field. It can be a different number only if the system was configured with more UPS devices than the UPS Monitor Process is capable of monitoring. (At present, the limit is 128 UPS devices.) In such an unlikely case, the UPS Monitor will monitor as many UPS devices as it is capable of, and ignore the rest. In such a case, you could see "200 UPS Devices Configured" and "128 UPS Devices Monitored", for example.UPS Devices AllocatedThis field shows the number of UPS devices that the UPS Monitor Process has successfully allocated through the MPE/iX File System. (Each UPS device to be monitored must first be allocated, to give ownership of the UPS device to the UPS Monitor Process.) This number should always be the same as the UPS Devices Configured and UPS Devices Monitored fields. In the unlikely event that some UPS device(s) can not be allocated via the File System, this number will be less than the number of UPS devices configured and to be monitored. If this happens, something is wrong with the system, and corrective action is needed. One way in which an UPS device can fail to be allocated is a failure of the system to initialize and download a DTC (Datacommunications and Terminal Controller) to which an UPS is connected will result in a failure of the File System to "open" (allocate) that UPS device.UPS Devices Status DisplayUPS #The UPS number field of the UPS DEVICES STATUS portion of the status display is simply an ordinal index number assigned by UPSUTIL to the UPS devices, for convenience in referring to the UPSs. It has no functional significance.DEV #The LDEV number field (column) of the status display shows the logical device numbers associated with the UPSs configured on the system. These LDEV numbers are the "handles" by which I/O devices are known in the MPE/iX File System. LDEV numbers are assigned to the UPS devices during the I/O configuration process of system configuration.Alloc (Allocated Indicator)The allocated field (column) of the status display shows whether or not a UPS device has been successfully allocated to (i.e. is now "owned" by) the UPS Monitor Process. In order to control and monitor a UPS device, the device must first be allocated to the UPS Monitor Process. Allocation is performed in the MPE/iX File System, via the HPFOPEN intrinsic. If allocation succeeds, then the UPS Monitor Process will attempt to monitor that UPS device, and a value of Yes will be displayed in the Alloc field. If allocation should fail, then the UPS Monitor Process can not monitor that UPS device. A value of No will appear in the Alloc column in that case.Init (Initialized Indicator)The initialized field (column) of the status display shows whether or not a UPS device has been successfully initialized (i.e., "brought online") by the UPS Monitor Process.A value of Yes in this column indicates that the UPS device has been successfully initialized by the UPS Monitor Process, and is in a "ready to be monitored" condition. A value of No in this column indicates that either initialization of the UPS device failed (in which case there will be log entries in the system log file showing what errors were encountered during initialization), or that Initialization is in progress but not yet completed (in which case, a later repetition of the STATUS command will show a Yes in this column, denoting completion of initialization).StateThe State field (column) of the status display shows the operating state of the UPS device as perceived by the UPS Monitor Process. Possible values for State are:
PowerThis field (column) of the status display shows the most recent "power status" of the UPS device as observed by the UPS Monitor Process.Possible values of this field are:
Hardware StatusThe Hardware Status field (column) of the status display shows any and all of the UPS hardware status conditions that each UPS device has reported to the UPS Monitor Process, as of the most recent observation. The "normal state" of hardware status is simply: AC Power Normal. In this normal state, AC Power Normal will be the only status item shown in the Hardware Status display. The UPS devices, however, are capable of reporting a number of status conditions to the host system, and in cases of additional UPS hardware status, there will be multiple lines in the status display showing the additional status conditions. Possible values of Hardware Status are:
Additional ExamplesThe following examples illustrate various conditions of the UPS Monitor Process and of the UPS hardware devices that can be observed by using the STATUS command. Example #2 — UPS Monitor Not Running This example shows the display of the STATUS command when given at a time at which the UPS Monitor Process is not running. If you get this result from a STATUS command, you know that the UPS Monitor Process is currently not running. You can start the UPS Monitor Process running by using the START command, if desired.-------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: ** WARNING: System UPS Monitor Process is not running at this time. End display of UPS Monitor status. -------------------------------------------------------------------- UPSUTIL: Command >Example #3 — AC Power Failure In Progress This example shows a status display typical of an incoming AC power failure condition at one of the UPS devices. In this case, you can see in the UPS MONITOR PROCESS STATUS that the System Power State is "Power has failed," and that the configured "Powerfail Grace Period" timer is now running. The UPS DEVICES STATUS portion of the display shows that UPS LDEV #23 has reported an "AC Power Fail" hardware status condition, and so its Power condition field has been changed to Failed. -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power has failed. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS ( Config File Ok ) Powerfail Command File Name : MYPFAIL.PUB.MYACCT ( Pfail Cmd File Ok ) Powerfail Command File Parms: [inventory_data_set orders_data_set] Powerfail Grace Period (secs: 300 Powerfail Grace Timer : Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 23 Yes Yes Monitoring Failed AC Power Fail 3 24 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command >Example #4 — AC Power Failure Timed-Out This example shows a status display following an incoming AC power failure condition at one of the UPS devices and after the configured "Powerfail Grace Period Timer" has expired. This has caused the user's "Powerfail Command File" to begin execution. In this case, you can see in the UPS MONITOR PROCESS STATUS that the System Power State is "Power has failed," the configured "Powerfail Grace Period" timer has expired, and the "Powerfail Command File" is now in execution. ("Running"). The UPS DEVICES STATUS portion of the display shows that UPS LDEV #23 has reported an "AC Power Fail" hardware status condition, and so its Power condition field has been changed to Failed. -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power has failed. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS ( Config File Ok ) Powerfail Command File Name : MYPFAIL.PUB.MYACCT ( Pfail Cmd File Ok ) Powerfail Command File Parms: [inventory_data_set orders_data_set] Powerfail Grace Period (secs: 300 Powerfail Grace Timer : Completed. TUE, FEB 12, 2002, 10:22 AM Powerfail Command File : Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 23 Yes Yes Monitoring Failed AC Power Fail 3 24 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command >Example #5 — AC Power Failure, Command File Completed This example shows a status display following an incoming AC power failure condition at one of the UPS devices and after the configured "Powerfail Command File" has completed its execution. In this case, you can see in the UPS MONITOR PROCESS STATUS that the System Power State is "Power has failed," the configured "Powerfail Grace Period" timer has expired, and the "Powerfail Command File" has run to completion. The UPS DEVICES STATUS portion of the display shows that UPS LDEV #23 has reported an "AC Power Fail" hardware status condition, and so its Power condition field has been changed to Failed. -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power has failed. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS ( Config File Ok ) Powerfail Command File Name : MYPFAIL.PUB.MYACCT (Pfail Cmd File Ok) Powerfail Command File Parms: [inventory_data_set orders_data_set] Powerfail Grace Period (secs: 300 Powerfail Grace Timer : Completed. TUE, FEB 12, 2002, 10:22 AM Powerfail Command File : Completed. TUE, FEB 12, 2002, 10:23 AM Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 23 Yes Yes Monitoring Failed AC Power Fail 3 24 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command >Example #6 — Monitor Startup & UPS Initializations This example illustrates what the STATUS display shows when the STATUS command is given during the time that the UPS Monitor Process is in its "start-up and initialize UPS devices" phase of processing. In this example, the UPS Monitor Process had originally not been running, so a START command was given to start it. Then, quickly, two STATUS commands were given one after the other. The first STATUS display shows that the UPS Monitor Process is now running (UPS Monitor Operating State is "Running"), and that it is part way through the process of bringing the three UPS devices "online". The display of UPS DEVICES STATUS shows that all three UPS devices have been allocated successfully (Allelic = "Yes") by the UPS Monitor Process, that the first UPS device (Ldev# = 22) has completed its initialization sequence and is now being monitored (Init = "Yes" and State = "Monitoring"), and that the other two UPS devices, Ldevs 23 and 24, are still in the process of being initialized (Init = "No" and State = "Initializing"). Notice that until the initialization process has completed, the UPS Monitor Process does not have information from the UPS device regarding its hardware status conditions. That is why the Power and Hardware Status fields for UPS Ldevs 23 and 24 are shown as "???". A few seconds later, the second STATUS display shows that the initialization processing has been completed for all of the three UPS devices. All three are now being monitored, and their Power and Hardware Status fields are normal. -------------------------------------------------------------------------- UPSUTIL: Command > start -------------------------------------------------------------------------- Begin START UPS Monitor operation START UPS Monitor operation successfully executed. End START UPS Monitor operation -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS (Config File Ok) Powerfail Command File Name : MYPFAIL.PUB.MYACCT (Pfail Cmd File Ok) Powerfail Command File Parms: [inventory_data_set orders_data_set] Powerfail Grace Period (secs: 300 Powerfail Grace Timer : Not Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 23 Yes No Initializing ??? ??? 3 24 Yes No Initializing ??? ??? End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS (Config File Ok) Powerfail Command File Name : MYPFAIL.PUB.MYACCT (Pfail Cmd File Ok) Powerfail Command File Parms: [inventory_data_set orders_data_set] Powerfail Grace Period (secs: 300 Powerfail Grace Timer : Not Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 23 Yes Yes Monitoring Normal AC Power Normal 3 24 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command >Example #7 — UPS Down/Broken This example shows that a UPS device has experienced some problem, like a failed or disconnected I/O cable, or a failed piece of internal hardware, that has prevented the UPS Monitor Process from communicating with the UPS device. After retrying several times to obtain status from the UPS device, the UPS Monitor Process has marked the UPS device (Ldev #24) as "Down/Broken". In this case, as in Example #6 when initialization was not yet completed, the UPS Monitor Process does not know what the power status or hardware status of the UPS device is, so the STATUS display shows "???" for those fields.
-------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS (Config File Ok) Powerfail Command File Name : MYPFAIL.PUB.MYACCT (Pfail Cmd File Ok) Powerfail Command File Parms: [inventory_data_set orders_data_set] Powerfail Grace Period (secs: 300 Powerfail Grace Timer : Not Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 23 Yes Yes Monitoring Normal AC Power Normal 3 24 Yes No Down/Broken ??? ??? End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command > RESETPFAIL CommandThe RESETPFAIL command is for the purpose of clearing-out from the UPS Monitor's status display the information pertaining to past completions of the "Powerfail Grace Period Timer" and "Powerfail Command File". When there has been a UPS AC power failure signaled, and the user has configured the Powerfail Grace Period time, and the power failure has lasted longer than the grace period time, then the STATUS display will show that the state of the Grace Period Timer is "Completed", and will also show the date and time of completion. Similarly, if the user has configured a Powerfail Command File, and there has been a UPS power failure exceeding the grace period time, then the powerfail command file will have been executed. The STATUS display will then show the state of the Powerfail Command File as "Completed", and will also show the completion date and time. The "Completed" states and the completion dates and times for both the Powerfail Grace Period timer and the Powerfail Command File will be retained in UPS Monitor status until either:
-------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS (Config File Ok) Powerfail Command File Name : MYPFAIL.PUB.MYACCT (Pfail Cmd File Ok) Powerfail Command File Parms: [inventory_data_set orders_data_set] Powerfail Grace Period (secs: 300 Powerfail Grace Timer : Completed. TUE, FEB 12, 2002, 2:53 PM Powerfail Command File : Completed. TUE, FEB 12, 2002, 2:53 PM Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 23 Yes Yes Monitoring Failed AC Power Fail 3 24 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command > resetpfail -------------------------------------------------------------------------- Begin RESET PFAIL CMD FILE UPS Monitor operation RESET PFAIL CMD FILE UPS Monitor operation successfully initiated. End RESET PFAIL CMD FILE UPS Monitor operation -------------------------------------------------------------------------- UPSUTIL: Command > status -------------------------------------------------------------------------- Begin display of UPS Monitor status. UPS MONITOR PROCESS STATUS: UPS Monitor Operating State : Running (PIN = 196) UPS Monitor Version Number : 9 3 UPS Devices Configured System Power State : Power is normal. 3 UPS Devices Monitored Powerfail Recovery Messages : All terminals. 3 UPS Devices Allocated Configuration File Name : UPSCNFIG.PUB.SYS (Config File Ok) Powerfail Command File Name : MYPFAIL.PUB.MYACCT (Pfail Cmd File Ok) Powerfail Command File Parms: [inventory_data_set orders_data_set] Powerfail Grace Period (secs: 5 Powerfail Grace Timer : Not Running. Powerfail Command File : Not Running. Action on UPS Low Battery : Keep Running UPS DEVICES STATUS: UPS# Ldev# Alloc Init State Power Hardware Status ~~~~ ~~~~~~ ~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 22 Yes Yes Monitoring Normal AC Power Normal 2 23 Yes Yes Monitoring Failed AC Power Fail 3 24 Yes Yes Monitoring Normal AC Power Normal End display of UPS Monitor status. -------------------------------------------------------------------------- UPSUTIL: Command > START CommandThe START command instructs UPSUTIL to attempt to start-up a fresh copy of the system's UPS Monitor Process. If there is not already a copy of the UPS Monitor Process running, then UPSUTIL launches a new copy of the UPS Monitor Process. However, if the UPS Monitor Process is already running when the START command is given, then UPSUTIL displays a warning message informing the user of that, and stating that the START command has been rejected. The first example below shows a normal, successful execution of the START command, while the second example shows the results when the START command is rejected because the UPS Monitor Process is currently running. Before issuing the START command, you can use the STATUS command to verify that the UPS Monitor Process is not already running. After executing the START command, you can use the STATUS command to verify that the START command worked. The STATUS command should reveal that the UPS Monitor Process is now running. Syntax start Example #1 — Normal START -------------------------------------------------------------------- UPSUTIL: Command > start -------------------------------------------------------------------- Begin START UPS Monitor operation START UPS Monitor operation successfully executed. End START UPS Monitor operation -------------------------------------------------------------------- UPSUTIL: Command >Example #2 — Rejected START -------------------------------------------------------------------- UPSUTIL: Command > start -------------------------------------------------------------------- Begin START UPS Monitor operation ** WARNING: UPS Monitor process is already running at this time. ** WARNING: START UPS Monitor operation not performed. End START UPS Monitor operation -------------------------------------------------------------------- UPSUTIL: Command > STOP CommandThe STOP command instructs UPSUTIL to attempt to stop execution of the system's UPS Monitor Process. If the UPS Monitor process is running when the STOP command is given, then UPSUTIL performs the STOP operation by sending a "shutdown" message to the running UPS Monitor Process. The "shutdown" message causes the UPS Monitor Process to shut itself down (TERMINATEs the process). However, if there is no copy of the UPS Monitor Process running when the STOP command is given, then UPSUTIL rejects the STOP command, and displays a warning message to the user explaining that the STOP command could not be executed because the UPS Monitor Process is not currently running. The first example below shows a normal, successful execution of the STOP command, while the second example shows the results when the STOP command is rejected because the UPS Monitor Process is not currently running. Before issuing the STOP command, you can use the STATUS command to verify that the UPS Monitor Process is running. After executing the STOP command, you can use the STATUS command to verify that the STOP command worked. The STATUS command should reveal that the UPS Monitor Process is no longer running. Syntax stop Example #1 — Normal STOP -------------------------------------------------------------------- UPSUTIL: Command > stop -------------------------------------------------------------------- Begin STOP UPS Monitor operation STOP UPS Monitor operation successfully executed. End STOP UPS Monitor operation -------------------------------------------------------------------- UPSUTIL: Command >Example #2 — Rejected STOP -------------------------------------------------------------------- UPSUTIL: Command > stop -------------------------------------------------------------------- Begin STOP UPS Monitor operation ** WARNING: UPS Monitor process is not running at this time. ** WARNING: STOP UPS Monitor operation not performed. End STOP UPS Monitor operation -------------------------------------------------------------------- UPSUTIL: Command > RESTARTvCommandThe RESTART command is a shortcut method of stopping and then restarting the UPS Monitor Process. It is equivalent to issuing a STOP command immediately followed by a START command. Like the STOP command, the RESTART command will be rejected if the UPS Monitor Process is not running at the time the RESTART command is issued. The first example below shows a normal, successful execution of the RESTART command, while the second example shows the results when the RESTART command is rejected because the UPS Monitor Process was not running when the RESTART command was given. Before issuing the RESTART command, you can use the STATUS command to verify that the UPS Monitor Process is running. After executing the RESTART command, you can use the STATUS command to verify that the RESTART command worked. The STATUS command should reveal that the UPS Monitor Process is again running, after shutting itself down and then relaunching itself. Syntax restart Example #1 — Normal RESTART -------------------------------------------------------------------- UPSUTIL: Command > restart -------------------------------------------------------------------- Begin RESTART UPS Monitor operation RESTART UPS Monitor operation successfully executed. End RESTART UPS Monitor operation -------------------------------------------------------------------- UPSUTIL: Command >Example #2 — Rejected RESTART -------------------------------------------------------------------- UPSUTIL: Command > restart -------------------------------------------------------------------- Begin RESTART UPS Monitor operation ** WARNING: UPS Monitor process is not running at this time. ** WARNING: RESTART UPS Monitor operation not performed. End RESTART UPS Monitor operation -------------------------------------------------------------------- UPSUTIL: Command ><the end>
|