Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

vmware vsphere cli error with snmp script

$
0
0

hello all,

 

getting the following error when trying to simply see the snmp configuration:

 

 

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server x.x.x.x.x --show
Enter username: root
Enter password:
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 tried other commands and they work, for example : vicfg-nas.pl --server my_esxhost --list , this worsk Ok, but anything to do with snmp does not work at all. This is how my snmp.xml file looks like :
/etc/vmware # cat snmp.xml
<config>
  <snmpSettings>
    <communities>fffff9890iojdfijf980</communities>
    <enable>true<enable>
    <port>171</port>
    <targets>10.10.10.10@162/fffff9890iojdfijf980</targets>
  </snmpSettings>
</config>/etc/vmware #
I am using esxi 4.1 update 1 and vsphere cli 5 on a windows 2008 R2 STD server.
appreciate any help/

Viewing all articles
Browse latest Browse all 193198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>