I think I have my snmpd.conf file configured correctly pointing to my main HP SIM server but I'd like to test it. Is there a way to send a test trap?
I've copied over the MIBs, compiled them on my SIM server and installed them (I think).
I get snmp alerts from Virtual Center but I also want reporting from overheating hardware, failed paths, et cetera, which is what the MIBs and SNMP should give me, I believe.
I don't know the command to send a test alert. Thanks in advance.
Here is some info from VMWare World on how to do a simple SNMP test. Of course input your trap server etc, and make sure the disk % is low enough to make one of your VM's alert.
*****
\# Sample snmpd.conf containing VMware MIB module entries.
\# This is a simple snmpd.conf that may help you test SNMP.
\# It is not recommended for production use. Consult the
\# snmpd.conf(5) man pages to set up a secure installation.
syscontact root@localhost (edit snmpd.conf)
syslocation room1 (edit snmpd.conf)
rocommunity vmworld06
trapcommunity vmworld06
trapsink 10.16.112.119
\# VMware MIB modules. To enable/disable VMware MIB items
\# add/remove the following entries.
dlmod SNMPESX
/usr/lib/vmware/snmp/libSNMPESX.so disk /vmimages 30%
http://download3.vmware.com/vmworld/2006/labs2006/vmworld.06.lab05-SECURITY-MANUAL-APPENDIX.pdf
Added link to VMWorld presentation
Message was edited by:
letoatrads
Message was edited by:
letoatrads
You can go to the HP Insight Manager Home page on your host (http://hostname:2301), on there there's a tab for snmp configuration and a button to send a test trap.
You could also pull one of the power plugs (assuming you have 2 of them)
MAyur
For the record, net-snmp has a cmd line tool: snmptrap
snmptrap -v 1 -c public host TRAP-TEST-MIB::demotraps localhost 6 17 '' SNMPv2-MIB::sysLocation.0 s "Just here"
Syslog also has a cmd line tool to send test syslog message: logger -p facility.level "your message yere"
In ESXi, using rcli, it would be:
vicfg-snmp -t host1@port/community,host2@port/community2
vicfg-snmp -E
vicfg-snmp --test
On the receiver side you'd see a warmStart trap.
