I've emerged `rpm` and installed the hpasm utilities as instructed in the HOWTO at <http://tinyurl.com/7h8dr> - they bitched halfway through about SNMP, so I exited, emerged net-snmp & hpasm was then able to install OK.
I can now do stuff like query the power-supply status using stuff like `sudo hplog -p` and view a very simple event log using `sudo cpqimlview`. I find that fan events are logged to the system log, but nothing shows if I pull out a hard-drive, and I can't find a tool to query the status of the SCSI array.
I believe that the way to handle this is by SNMP, and that the HP agents are "SNMP agents" which can be queried by SNMP software on my machine. I've never messed with SNMP before, so does this sound right?
I ran the snmpconf utility, but didn't really understand what it was doing, with the comments removed /etc/snmp/snmptrapd.conf just reads:
logoption f /var/log/snmptrapd
printeventnumbers yes
ignoreauthfailure yes
I obviously have an /opt/compaq/cma.conf and a /etc/hpasmrc which were setup when I installed hpasm, but neither make much sense - I haven't changed either from the defaults because I didn't know what to put in them.
As a consequence, I think, /var/log/snmptrapd just shows: Starting snmptrapd 5.2.1 2005-05-16 04:48:46 NET-SNMP version 5.2.1 Started. 2005-05-16 04:51:44 NET-SNMP version 5.2.1 Stopped. Stopping snmptrapd Starting snmptrapd 5.2.1 2005-05-16 04:55:00 NET-SNMP version 5.2.1 Started.
Does anyone have a simple configuration, please, to log everything from the HP agents to a the snmptrapd log - I think that once I understand how to do that, shifting notifications to email should be pretty easy, but at the moment I don't really have a clue what an SNMP "community" is.
TIA for any comments or advice,
Stroller.
-- gentoo-user@gentoo.org mailing list