rpm –qa |grep snmp
2.      Install the SNMP service via yum
yum –y install net-snmp net-snmp-utils 
3.       Configure the SNMP setting in the /etc/snmp/snmpd.conf
PS1: snmpconf -i -g basic_setup (Assist to configure the SNMP setting file)
PS2: Delete the snmpd.conf setting file and then add the following line into the new snmpd.conf setting file
! /etc/snmp/snmpd.conf
+ rocommunity public
4.      Start the SNMP service
service snmpd start
5.      Check the SNMP service status
ps ax |grep snmp
6.      Get the SNMP information from local machine   (Disk information)Snmpwalk –v 2c  –c public localhost .1.3.6 .1.4.1.2021.97.      Get the SNMP information from SNMP server      snmpwalk -c public -v 1  [$ServerIP]                : Ex. [$ServerIP] = 192.168.0.11
8.      Add the SNMP service on the Booting process 
chkconfig snmpd on







 
沒有留言:
張貼留言