VMware

This Question is Answered

1 "helpful" answer available (6 pts)
3 Replies Last post: Nov 4, 2008 4:37 AM by AWo  

SNMPD.Conf multiple trapsink destinations and multiple ROcommunities posted: Nov 4, 2008 2:25 AM

Click to view emmar's profile Expert 357 posts since
May 9, 2005

Hi

Does anyone knwo if i can have multiple RO community names? I hve a customer who wants to install the HP insight agents onto ESX3.5 U2 hosts, and they want to send traps to both their HP SIM server as well as their HP Openview server...... this is how i think the snmpd.conf would look:

dlmod cmaX /usr/lib/libcmaX.so

rwcommunity private 127.0.0.1

rocommunity public 127.0.0.1

rocommunity SIMcomm 10.X.X.100 #HP SIM

rocommunity 81@d35eRVetc 10.X.X.200 # HPOpenView

trapsink 10.X.X.100 SIMpublic

trapsink 10.X.X.200 OVcomm

syscontact Fred Bloggs

syslocation DC

dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so

Would this work? Do i need a line defining trapcommunity....? would i need two trapcommunity lines, one for OV and one for SIM. I know that you can def set up two trapsink destinations, but in the past when i've done this both destination have used the same community name.

Thanks,

Emma

Click to view AWo's profile Champion vExpert 4,493 posts since
Nov 27, 2003
emmar schrieb:
trapsink 10.X.X.100 SIMpublic
trapsink 10.X.X.200 OVcomm

Yes that would work. Add "trapsink 127.0.0.1".
Click to view AWo's profile Champion vExpert 4,493 posts since
Nov 27, 2003
You can get this and more information by typing "man snmpd.conf" on the ESX console:

trapcommunity STRING
This defines the default community string to be used when send-
ing traps. Note that this command must be used prior to any of
the following three commands that are intended use this commu-
nity string.

trapsink HOST [COMMUNITY PORT]

trap2sink HOST [COMMUNITY PORT]

informsink HOST [COMMUNITY PORT]
These commands define the hosts to receive traps (and/or inform
notifications). The daemon sends a Cold Start trap when it
starts up. If enabled, it also sends traps on authentication
failures. Multiple trapsink, trap2sink and informsink lines may
be specified to specify multiple destinations. Use trap2sink to
send SNMPv2 traps and informsink to send inform notifications.
If COMMUNITY is not specified, the string from a preceding trap-
community directive will be used. If PORT is not specified, the
well known SNMP trap port (162) will be used.

Hope that helps. You can use it, but you mustn't.

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities