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.
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?