VMware Cloud Community
ITJef
Enthusiast
Enthusiast

Configuring SNMP fails on ESXi 5.1

I have several ESXi 5.1 servers and on each one of them i get the exact same errors below when trying to enable SNMP.

1. I run "vicfg-snmp.pl --server <ESXHOST> --username root --password  <password> --s" and it displays the current config which snmp has not been setup.

2. I run "vicfg-snmp.pl --server <ESXHOST> --username root --password  <password> --c community01" to add a community successfully

3. I run "vicfg-snmp.pl --server <ESXHOST> --username root --password <password> --t <target>/community01" to add a target successfully

4. I run "vicfg-snmp.pl --server <ESXHOST> --username root --password <password> --E" to enable the SNMP config and i get the error below.

Enabling agent...
Use of uninitialized value in string eq at C:/Program Files (x86)/VMware/VMware
vSphere CLI/Perl/lib/VMware/VIMRuntime.pm line 81.
Use of uninitialized value in concatenation (.) or string at C:/Program Files (x
86)/VMware/VMware vSphere CLI/Perl/lib/VMware/VIMRuntime.pm line 50.
Undefined subroutine &Can't call method "ReconfigureSnmpAgent" on an undefined v
alue at C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\vicfg-snmp.pl line
297.
::fault_string called at C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\vi
cfg-snmp.pl line 299

5. if i run "vicfg-snmp.pl --server <ESXHOST> --username root --password <password> --s" i get the error message below:

Can't call method "configuration" on an undefined value at C:\Program Files (x86

)\VMware\VMware vSphere CLI\bin\vicfg-snmp.pl line 248.


C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>


I have tried these exact same steps on 3 different hosts and get the exact same results.

My environment is:

ESXi, 5.1.0, 799733

PowerCLI version 5.0.1.4431 installed on a windows 7 64bit workstation.

Anyone have any suggestions?

Tags (2)
0 Kudos
3 Replies
spravtek
Expert
Expert

Hi,

This thread handles about the same issue you are facing... Maybe it can be of interest.

http://communities.vmware.com/thread/420421?decorator=print&displayFullThread=true

0 Kudos
ITJef
Enthusiast
Enthusiast

That was exactly what i needed, thanks for your help.

0 Kudos
spravtek
Expert
Expert

No problem, glad to help!

0 Kudos