Can't Configure SNMP Traps on ESXi 5.1

Posted on 2012-09-19
Last Modified: 2012-09-23
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; --server hostname --username username --password password --show, I get an error message: "vicfg is not a valid command"

Can anybody assist?
Question by:GR JN
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    The command is to be used from the Remote CLI or vSphere CLI, not at the ESXi 5.1 console.

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

    see here

    download vCLI here

    Author Comment

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

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

    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.
    LVL 116

    Accepted Solution

    the command is:- --server hostname --username username --password password --enable --server drs-vsphere --username username --password password --enable

    make sure that drs-vsphere can be resolved

    Author Comment

    by:GR JN
    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:

    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    Just been fussy here, but http:#a38413832 is not the Accepted Solution.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    #Citrix #Citrix Netscaler #HTTP Compression #Load Balance
    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
    This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now