Commands
Here are the commands I have used for the vCenter SNMP configuration. Note: make sure you have access to the root account to perform the login.
# Step 1: Start an SSH connection with the vCenter Server (use Putty or something equivalent).
# Step 2: Login as the root user
# Step 3: After a successful login you should be in the appliance Shell.
# Step 4: View the current configuration for SNMP
snmp.get
# Step 5: Configure the SNMP Community (in this example I use MySnmpCommunity)
snmp.set --communities MySnmpCommunity
# Step 6: Allow a device to access the SNMP agent (192.168.10.10 = monitoring server)
snmp.set --targets 192.168.10.10@161/MySnmpCommunity,172.0.0.1@161/MySnmpCommunity,localhost@161/MySnmpCommunity
# Step 7: Enable the SNMP Agent
snmp.enable
# Step 7: Verify the SNMP Settings configured
snmp.get
# Step 8: Test the working (in my case it never works... not sure why? Has something to do with my access restrictions?)
snmp.test
# Step 9: Perform a test from the monitoring server (in my case a Linux machine with snmpwalk)
snmpwalk -v2c -c MySnmpCommunity %hostname-vcenter%
Post a Comment
Post a Comment