VMware Cloud Community
jrich523
Contributor
Contributor

SNMP Configuration

so im trying to setup the snmp on a host and i did so like this,

$esxhost = connect-viserver 'esx1' -Credential $cred -NotDefault

$snmp = get-vmhostsnmp -server $esxhost

$snmp | set-vmhostsnmp -enable:$true -readonlycommunity @("public") -addtarget -targetcommunity 'public' -targethost mymonsrv

i've summarized the commands, but the output looks good.

traps work, sort of... it sends them to my server but they arent as descriptive as i would think they should be.

problem is i cant connect in via SNMP. I used an SNMP tester and it seems to connect ok, but i get the following msg

2/3/2012 7:20:33 - ERROR: Unable to complete the test.
2/3/2012 7:20:33 - ERROR: The data is invalid. (13)
2/3/2012 7:20:33 - [SNMP status] .1.3.6.1.2.1.1.1.0, .1.3.6.1.2.1.1.5.0, .1.3.6.1.2.1.4.1.0: No such name (#3)

No such name seems like the community name is wrong, but i've double checked it.

Tags (1)
Reply
0 Kudos
0 Replies