Steps for configuring and enabling SNMP on ESXi Host
Steps are in chronological order.
- Putty into the ESXi Host.
- Login as user root
- Execute the following commands:
- esxcli system snmp get
- esxcli system snmp set --syscontact=your name
- esxcli system snmp set --communities=naming convention of your choice (don't recommend public)
- esxcli system snmp set --enable=true
- esxcli system snmp get
- End
Notes:
If you need to disable SNMP, run the command: esxcli system snmp set --enable=false
Sample screenshot of SNMP configuration an a ESXi 6.0 Host:
============================================================================
dbsa@dbsa-X406UA:~/SYNOLOGY/SynologyDrive/IMAGE$ ssh root@192.168.75.6
(root@192.168.75.6) Password:
The time and date of this login have been sent to the system logs.
VMware offers supported, powerful system administration tools. Please
see www.vmware.com/go/sysadmintools for details.
The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[root@localhost:~] esxcli system snmp get
Authentication:
Communities: SNMP_STRING
Enable: false
Engineid: 00000063000000a100000000
Hwsrc: indications
Largestorage: false
Loglevel: info
Notraps:
Port: 161
Privacy:
Remoteusers:
Syscontact:
Syslocation:
Targets:
Users:
V3targets:
[root@localhost:~] esxcli system snmp set --syscontact=harnedi
[root@localhost:~] esxcli system snmp set --communities=public
[root@localhost:~] esxcli system snmp set --enable=true
[root@localhost:~] esxcli system snmp get
Authentication:
Communities: public
Enable: true
Engineid: 00000063000000a100000000
Hwsrc: indications
Largestorage: false
Loglevel: info
Notraps:
Port: 161
Privacy:
Remoteusers:
Syscontact: harnedi
Syslocation:
Targets:
Users:
V3targets:
[root@localhost:~]
Tidak ada komentar:
Posting Komentar