Link to home
Start Free TrialLog in
Avatar of Rammy Charles
Rammy CharlesFlag for United States of America

asked on

Can't Configure SNMP Traps on ESXi 5.1

I am unable to configure SNMP communities on my ESXi 5.1 server via the shell console. When I attempt to run the folowing comand; vicfg-snmp.pl --server hostname --username username --password password --show, I get an error message: "vicfg is not a valid command"

Can anybody assist?
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

The vicfg-snmp.pl command is to be used from the Remote CLI or vSphere CLI, not at the ESXi 5.1 console.

Use the vicfg-snmp.pl command from the Remote CLI or vSphere CLI to enable the SNMP agent and configure trap destinations.

see here

http://kb.vmware.com/kb/1008065

download vCLI here

http://www.vmware.com/support/developer/vcli/
Avatar of Rammy Charles

ASKER

After doing this from the remote CLI, I am now getting the below message:

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --drs-vsphere
02
Unknown option: drs-vsphere02
For a summary of command usage, type 'C:\Program Files (x86)\VMware\VMware vSphe
re CLI\bin\vicfg-snmp.pl --help'.
For documentation, type 'perldoc C:\Program Files (x86)\VMware\VMware vSphere CL
I\bin\vicfg-snmp.pl'.

It looks like it is not able to see the remote esxi server I am tryiong to enable SNMP on. I have also tried via IP address.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be closed as follows:

Accepted answer: 0 points for Narvaezj's comment #a38413832
Assisted answer: 500 points for hanccocka's comment #a38413849

for the following reason:

.jk
Just been fussy here, but http:#a38413832 is not the Accepted Solution.