• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

danblee.com

Tutorials & Knowledge Base Articles for System Administrators who wear many, many hats.

  • Home
  • About
  • Ask Me
  • DBLHost.com

Configure SNMP on ESXi Servers

July 31, 2013 by Dan B. Lee Leave a Comment

Here’s a quick and easy way to configure SNMP on your ESXi Servers, which is done by editing the snmp.xml file.

In this tutorial: ESXi Version 4.0

  1. SSH into your ESXi Host
  2. Use this command to browse to the right directory: cd /etc/vmware
  3. Use this command to open the snmp.xml file: vi snmp.xml
  4. If you haven’t used vi before, you only need to know the following keystrokes and commands: INSERT, ESC, and :wq!Here’s the default xml file:

    esxi-snmp-default
    We’re going to edit this file and restart services.

  5. In vi, you can move your cursor using the arrow keys. Hit INSERT when are ready to edit. Once you do, only type what you want to type. If you need to back out of editing, hit the ESC key and you’ll be able to move your cursor around again without editing the file. It can be tricky until you get used to it.
  6. You’re going to want to change the line to the following:<config><snmpSettings><enable>true</enable><communities>customstring</communities><targets></targets></snmpSettings></config>
  7. To write to the file, hit ESC, then hit :. Using the colon allows you to execute commands in vi. You want to write and quit and not overwrite. The command for that is wq!
  8. Hit enter. Make sure you’re out of vi and back at your ESXi console.
  9. Restart services by entering the following command: services.sh restart
  10. Done!

The communities tag will hold the community string you’l use when you configure your monitoring software. Make sure it’s not “public” since public is typically what the default will be with all SNMP available devices. Let me know if this works for you on other versions of ESXi. Cheers!

Filed Under: Virtualization, VMware Tagged With: esxi, snmp, vi, vmware

Primary Sidebar

Categories

  • Active Directory
    • Group Policy
  • Adobe Photoshop
  • Browsers
    • Chrome
  • Cloud Based Technology
    • Citrix XenApp
  • ConnectWise
    • LabTech
  • Dell
  • Internet Service Providers (ISPs)
  • iPhone
  • Linux
    • CentOS
    • OpenVPN
    • SaltStack
    • Ubuntu
  • Microsoft Office
    • Lync
    • Microsoft Excel
    • Microsoft Outlook
    • Microsoft Word
  • Microsoft Windows
    • Active Directory
    • PowerShell
    • Windows 7
    • Windows 8 Preview & Release
  • Networks
  • News
  • Off Topic
  • Office 365
  • Peripherals
    • Monitors
  • Printers
    • Local Printers
    • Network Printers
  • Programming
    • Python
  • Riverbed
  • Security
  • Sharepoint
  • Social Media
  • Splunk
  • Storage
  • Switching & Routing
    • Cisco
    • Fortinet
  • Technology Culture
    • Opinion
  • Uncategorized
  • Virtualization
    • VEEAM
    • VMware
  • WAMP
  • Web Hosting
    • WHMCS
  • Website Design
  • Windows Server
    • Exchange 2003
    • Exchange 2010
    • Exchange 2013
    • Microsoft SQL
    • Windows Server 2003
    • Windows Server 2008 R2
    • Windows Server 2012
  • WordPress

Footer

Recent Activity

  • pings on Xerox Phaser 3635MFP Default Admin Username and Password
  • Xerox Phaser 3635MFP Default Admin Username and Password — danblee.com on About Dan B. Lee
  • Estudio Login | LOGINEGG on Toshiba E-Studio Default Administrator Username and Password
  • Estudio Login | LOGINSPENT on Toshiba E-Studio Default Administrator Username and Password
  • Estudio Login | CHARTLOGIN on Toshiba E-Studio Default Administrator Username and Password

Dan Lee

Dan B. Lee works at SyApps, LLC., a Managed Hosting Solutions Firm, as a Senior Network Engineer. Dan has a decade of IT experience and specializes in a number of different disciplines including Virtualization, Web Site Hosting and Design, Network Security, Data Center Architecture, Local and Remote Server Hosting, and Backup & DRS Solutions. Read More…

Links

  • Home
  • About Dan B. Lee
  • Ask Me
  • Privacy Policy

Copyright © 2021 · Genesis Child Theme on Genesis Framework · WordPress · Log in