hpialarms1
A openhpi sample application that shows "alarm control" management instruments
Usage
hpialarms [-D
id]
[-N
host
[:port]]
[-C
<cfgfile>]
[{-a
1 | 0}]
[{-b
1 | 0}]
[{-c
1 | 0}]
[{-m
1 | 0}]
[{-n
1 | 0}]
[{-p
1 | 0}]
[-i
n]
[-o]
[-X]
[-h]
hpialarms [--domain=id]
[--host=host
[:port]]
[--cfgfile=file]
[{--diska=1 | 0}]
[{--diskb=1 | 0}]
[{--critical=1 | 0}]
[{--major=1 | 0}]
[{--minor=1 | 0}]
[{--power=1 | 0}]
[--chassisid=n]
[--all]
[--debug]
[--help]
Overview
hpialarms walks the RPT (Resource Presence Table) for resources that have "Alarm Control" management instruments (SAHPI_CTRL_LED).
If no domain or host is selected, hpialarms uses the default domain as specified in the openhpiclient.conf file.
Options
(No Option) Display alarm states
Help Options:
-
-h, --help -
Show help options
Application Options:
-
-c 1|0, --critical=1|0 -
Set critical alarm on|off
-
-m 1|0, --major=1|0 -
Set major alarm on|off
-
-n 1|0, --minor=1|0 -
Set minor alarm on|off
-
-a 1|0, --diska=1|0 -
Set diska alarm on|off
-
-b 1|0, --diskb=1|0 -
Set diskb alarm on|off
-
-p 1|0, --power=1|0 -
Set power alarm on|off
-
-i n, --chassisid=n -
Set chassis id on for n seconds
-
-o, --all -
Set all alarms off
-
-D nn, --domain=nn -
Select domain id nn
-
-X, --debug -
Display debug messages
-
-N "host[:port]", --host="host[:port]" -
Open session to the domain served by the daemon at the specified URL (host:port). This option overrides the OPENHPI_DAEMON_HOST and OPENHPI_DAEMON_PORT environment variables. If host contains ':' (for example IPv6 address) then enclose it in square brackets. For example: "[::1]" or "[::1]:4743".
-
-C "file", --cfgfile="file" -
Use passed file as client configuration file. This option overrides the OPENHPICLIENT_CONF environment variable.
Sample output
hpialarmpanel ver 0.6RptInfo: UpdateCount = 5, UpdateTime = 8a2dc6c0rptentry[0] resourceid=1 tag: MullinsRDR[45]: ctltype=2:1 oem=0 Chassis Identify ControlRDR[48]: ctltype=0:1 oem=10 Front Panel Power Alarm LED state = offRDR[51]: ctltype=0:1 oem=13 Front Panel Minor Alarm LED state = ONRDR[46]: ctltype=0:0 oem=0 Cold Reset ControlRDR[49]: ctltype=0:1 oem=11 Front Panel Critical Alarm LED state = offRDR[50]: ctltype=0:1 oem=12 Front Panel Major Alarm LED state = off
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 7 times.
--all since Debian 9 (Stretch);
--cfgfile since Debian 9 (Stretch);
--chassisid since Debian 9 (Stretch);
--critical since Debian 9 (Stretch);
--debug since Debian 9 (Stretch);
--diska since Debian 9 (Stretch);
--diskb since Debian 9 (Stretch);
--domain since Debian 9 (Stretch);
--help since Debian 9 (Stretch);
--host since Debian 9 (Stretch);
--major since Debian 9 (Stretch);
--minor since Debian 9 (Stretch);
--power since Debian 9 (Stretch);
-C since Debian 9 (Stretch);
-D since Debian 9 (Stretch);
-N since Debian 9 (Stretch);
-X since Debian 9 (Stretch);
-a since Debian 9 (Stretch);
-b since Debian 9 (Stretch);
-c since Debian 9 (Stretch);
-h since Debian 9 (Stretch);
-i since Debian 9 (Stretch);
-m since Debian 9 (Stretch);
-n since Debian 9 (Stretch);
-o since Debian 9 (Stretch);
-p since Debian 9 (Stretch).