Closed parmentelat closed 1 year ago
script
main subcommand with pdu
inventory_pdus.py
rhubarbe/scripts
, except for pdu
(this will maybe one day be written in async pexpect, but that's a separate issue)monitorpdus.py
pdu probe
is still suboptimal as it does many back and forth's; it's still much better than before, but ...if on the contrary the ssh option is preserved:
/tmp/pdus
pdu
shell in Python using pexpect
that claims to have an async moderevised examples: using version 5.2 or above, type
rhubarbe-pdu --help
as of 5.2.1 we have some of this available, i.e. the script
subcommand has gone and one can obtain/set an individual status using rhubarbe-pdu status|on|off|reset
the monitoring however still needs more work, although the logic seems fine, it could be that several ssh simultaneous connections just can't fly with these boxes
so truly snmp looks like the right way to go as far as frequent monitoring is concerned
as of 5.2.6:
good enough for now, closing
goals
on-jaguar
and similar with something that is more scalableexpected behaviour
and so we will replace the
rhubarbe-script
thingy with a more adequaterhubarbe-pdu
command; see expected behaviour belowreturncode
generally speaking:
status
command and means the device is turned OFFconfig files
a new file in
/etc/rhubarbe/inventory-pdus.yaml
will allow to describe the location and addresses of hardware