================================================= esxi5
1 Configure the SNMP
settings in ESX Server by using VMware RCLI. The following commands must be executed from the server where VMware
RCLI is installed:
a Configure the SNMP setting using the following command:
vicfg-snmp.pl --server 192.168.1.39 --username root --password !qaz2wsX -c public -t 192.168.1.24@162/public
a Configure the SNMP setting using the following command:
vicfg-snmp.pl --server 192.168.1.39 --username root --password !qaz2wsX -c public -t 192.168.1.24@162/public
b Enable SNMP using the following command:
vicfg-snmp.pl --server 192.168.1.39 --username root --password !qaz2wsX -E
c To view the SNMP configuration, execute the following command:
vicfg-snmp.pl --server 192.168.1.39 --username root --password !qaz2wsX -s
d To test if IT Assistant is configured correctly to receive SNMP traps from ESXi, execute the following VMware RCLI command:
vicfg-snmp.pl --server 192.168.1.39 --username root --password !qaz2wsX -T
============================================esx4
copy snmp.conf to esx4
chkconfig snmpd on
service snmpd start
esxcfg-firewall -e snmpd
To use ESX snmp
1.Install vsphere CLI
2.open VSCLI
3.Enter bin
4.vicfg-snmp.pl --server SUT_IP --username root --password pass -c public -t ITA_IP@162/public
5.vicfg-snmp.pl --server SUT_IP --username root --password pass -E
6.vicfg-snmp.pl --server SUT_IP --username root --password pass -s
7.vicfg-snmp.pl --server SUT_IP --username root --password pass -T
chkconfig snmpd on
service snmpd start
esxcfg-firewall -e snmpd
To use ESX snmp
1.Install vsphere CLI
2.open VSCLI
3.Enter bin
4.vicfg-snmp.pl --server SUT_IP --username root --password pass -c public -t ITA_IP@162/public
5.vicfg-snmp.pl --server SUT_IP --username root --password pass -E
6.vicfg-snmp.pl --server SUT_IP --username root --password pass -s
7.vicfg-snmp.pl --server SUT_IP --username root --password pass -T
沒有留言:
張貼留言