hpievents(1)
π hpievents(1) β the OpenHPI event-polling bestie
okay so picture this: it's hpievents, a little sample app from the OpenHPI squad, and its whole personality is polling for events. that's it. that's the gig. she sits there, waits for stuff to happen in an opened HPI session, and reports back. iconic behavior honestly π
β¨ NAME β¨
hpievents β an openhpi sample application that polls for events. yes bestie, that's literally the whole name section, we're keeping it real π«Ά
πΈ SYNOPSIS πΈ
get a load of these two forms, they're twins:
hpievents [ -D <value> ] [-N host[:port]] [-C <cfgfile>] [ -t BLOCK|SAHPI_TIMEOUT_BLOCK|n ] [ -d -X -h ]
hpievents [--domain=nn] [--host=host[:port]] [--cfgfile=file]
[--timeout=BLOCK|SAHPI_TIMEOUT_BLOCK|n ] [--discover] [--debug] [--help]
first one's the short-flag girlie, second one's the long-flag girlie. pick your fighter π
π DESCRIPTION π
so hpievents polls for events inside an opened HPI session. that's the main character energy right there β¨
you, the user, get to specify the wait time for the event β like how long she's willing to stand there tapping her foot waiting for something to happen. you can also pick the order between hpi resource discovery (resource event) and hpi event subscription. so like, which comes first: the discovering or the subscribing? your call, bestie π¦
lowkey important: if no domain or host is selected,hpieventspolls for events in the default domain as specified in theopenhpiclient.conffile. no cap, that's just how it works π
π OPTIONS π
π Help Options
-h,--helpβ show help options. when in doubt, ask for help, it's giving self-care π
β Application Options
-t n|BLOCK,--timeout=n|BLOCKβ waitnseconds for the event, or wait forever and ever with infinite wait (BLOCK). infinite. no clock. just vibes β³-d,--discoverβ callsaHpiDiscover()aftersaHpiSubscribe(). order matters, bestie, we do the subscribe first and the discover second π§-D nn,--domain=nnβ select domain idnnπ-X,--debugβ display debug messages. for when you need to know everything π₯-N "host[:port]",--host="host[:port]"β open a session to the domain served by the daemon at the specified URL (host:port). this option overrides theOPENHPI_DAEMON_HOSTandOPENHPI_DAEMON_PORTenvironment variables. and listen β ifhostcontains':'(like, say, an IPv6 address) then enclose it in square brackets. example time:"[::1]"or"[::1]:4743". don't forget the brackets or it's gonna be a whole thing π-C "file",--cfgfile="file"β use the passed file as the client configuration file. this option overrides theOPENHPICLIENT_CONFenvironment variable. file supremacy, periodt π
π HPI APIs uniquely used in this application π
these are the API girlies doing all the actual work, shown exactly as they appear, no edits, no notes:
SaErrorT SAHPI_API saHpiSubscribe (
SAHPI_IN SaHpiSessionIdT SessionId );
SaErrorT SAHPI_API saHpiUnsubscribe (
SAHPI_IN SaHpiSessionIdT SessionId );
SaErrorT SAHPI_API saHpiEventGet (
SAHPI_IN SaHpiSessionIdT SessionId,
SAHPI_IN SaHpiTimeoutT Timeout,
SAHPI_OUT SaHpiEventT *Event,
SAHPI_INOUT SaHpiRdrT *Rdr,
SAHPI_INOUT SaHpiRptEntryT *RptEntry,
SAHPI_INOUT SaHpiEvtQueueStatusT *EventQueueStatus );
π¦ SEE ALSO π¦
go read these next, they're all in the same friend group fr fr:
hpi_shell
and the whole squad:
hpialarms hpigensimdata hpireset hpitop
hpidomain hpiinv hpisensor hpitree
hpiel hpionIBMblade hpisettime hpiwdt
hpifan hpipower hpithres hpixml
ohdomainlist ohhandler ohparam
π AUTHORS π
the authors of this man page, aka the ones who wrote it down so we'd all know:
- Peter D Phan (
pdphan@users.sourceforge.net) - Ulrich Kleber (
ulikleber@users.sourceforge.net) - Anton Pak (
avpak@users.sourceforge.net)
that's the whole page bestie, you ate it up π β¨
cute little sign-off just for you: this one's OpenHPI version4.0.0, dated2023-01-26. screenshot it, frame it, put it on your wall ππ«Ά
π¦ 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