hpialarms(1)
π hpialarms
okay bestie, so this is hpialarms(1) β a little OpenHPI sample app that shows you all the "Alarm Control" management instruments. yes, like an actual alarm panel but make it terminal β¨
π SYNOPSIS
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]
like, you can spell the flags short or long, both are valid, pick your fighter π
β¨ DESCRIPTION β¨
hpialarms walks the RPT (Resource Presence Table) looking for resources that have "Alarm Control" management instruments (that's SAHPI_CTRL_LED for the nerds in the chat π«Ά).
and okay, key deets: if no domain or host is selected, hpialarms just uses the default domain as specified in the openhpiclient.conf file. no cap.
πΈ OPTIONS πΈ
- (No Option) β Display alarm states. that's it, that's the whole vibe. run it plain and it just shows you the states π
π Help Options:
-h,--helpβ Show help options. your lil safety net when you forget everything (me fr)
π¦ 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. lowkey iconic, it times itself β³-o,--allβ Set all alarms off. the "everybody chill" button π-D nn,--domain=nnβ Select domain id nn-X,--debugβ Display debug messages. for when you literally need to see what's going on inside π-N "host[:port]",--host="host[:port]"β Open session to the domain served by the daemon at the specified URL (host:port). This option overrides theOPENHPI_DAEMON_HOSTandOPENHPI_DAEMON_PORTenvironment variables. If host contains':'(for example IPv6 address) then enclose it in square brackets. For example:"[::1]"or"[::1]:4743". okay the bracket thing is important, don't skip it bestie, IPv6 will absolutely humble you π-C "file",--cfgfile="file"β Use passed file as client configuration file. This option overrides theOPENHPICLIENT_CONFenvironment variable.
β SAMPLE OUTPUT β
look at her go, she ate:
hpialarmpanel ver 0.6
RptInfo: UpdateCount = 5, UpdateTime = 8a2dc6c0
rptentry[0] resourceid=1 tag: Mullins
RDR[45]: ctltype=2:1 oem=0 Chassis Identify Control
RDR[48]: ctltype=0:1 oem=10 Front Panel Power Alarm LED state = off
RDR[51]: ctltype=0:1 oem=13 Front Panel Minor Alarm LED state = ON
RDR[46]: ctltype=0:0 oem=0 Cold Reset Control
RDR[49]: ctltype=0:1 oem=11 Front Panel Critical Alarm LED state = off
RDR[50]: ctltype=0:1 oem=12 Front Panel Major Alarm LED state = off
see how one of them is state = ON in all caps and the rest are lowercase off? yeah we don't question it, we just vibe π
π§ SEE ALSO π§
go give these girls a follow, they're all in the same friend group:
hpi_shell
hpidomain hpigensimdata hpireset hpitop
hpiel hpiinv hpisensor hpitree
hpievents hpionIBMblade hpisettime hpiwdt
hpifan hpipower hpithres hpixml
ohdomainlist ohhandler ohparam
π AUTHORS π
Authors of this man page, absolute legends:
- Peter D Phan (
pdphan@users.sourceforge.net) - Ulrich Kleber (
ulikleber@users.sourceforge.net) - Anton Pak (
avpak@users.sourceforge.net)
and that's the whole page bestie π this one's OpenHPI version 4.0.0, dated 2023-01-26 β she's been serving since way back, and honestly? still iconic πΈβ¨
π¦ where this page comes from
- opensuse-leap 16.0: openhpi-clients 3.8.0.ge4631e8a-bp160.1.14 Β· BSD-3-Clause
- opensuse-leap 16.0: openhpi-clients 3.8.0.ge4631e8a-bp160.1.14 Β· BSD-3-Clause
- opensuse-leap 16.0: openhpi-clients 3.8.0.ge4631e8a-bp160.1.14 Β· BSD-3-Clause
- opensuse-leap 16.0: openhpi-clients 3.8.0.ge4631e8a-bp160.1.14 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms