Symptoms:
After upgrading to ESXi 5.1, you experience these symptoms:
- Testing SNMP using the esxcli system snmp get command fails.
- Running the esxcli system snmp get command from within an SSH session fails with the error:
Community string was not specified in the trap target:
- You cannot enable SNMP.
- Running the vicfg-snmp.pl --server hostname --username username --password password --show command from the vSphere CLI fails.
- You see the error:
Can't call method "configuration" on an undefined value at C:\vSphere_CLI_Install_directory\bin\vicfg-snmp.pl line 248.
- Running the vicfg-snmp.pl --server hostname --username username --password password --enable command from the vSphere CLI fails.
- You see the error:
Enabling agent...
Use of uninitialized value in string eq at C:/vSphere_CLI_Install_directory/Perl/lib/VMware/VIMRuntime.pm line 81.
Use of initialized value in concatenation (.) or string at E:/vSphere_CLI_Install_directory/Perl/lib/VMware/VIMRuntime.pm line 50.
Undefined subroutine &Can't call method "ReconfigureSnmpAgent" on an undefined value at C:\vSphere_CLI_Install_directory\bin\vicfg-snmp.pl line 297.
::fault_string called at C:\vSphere_CLI_Install_directory\bin\vicfg-snmp.pl line 299
- In the snmp.xml file, located at /etc/vmware/, you see that:
-
- The first line appears similar to:
<?xml version="1.0"?>
- Target section is empty:
<targets>
</targets>