Está en la página 1de 6

Hng dn cu hnh 1.

Cu hnh SNMP cho Window server 2003 Bc 1: Ci t SNMP cho Server 2003

Chn Control Panel -> Add Remove Program -> Add/Remove Windows Components Chn Management and Monitor Tools v nh du hai phn Simple Network Management Protocol v WMI SNMP Provider Chn Ok -> Next

Bc 2: Cu hnh SNMP cho Server 2003


Chn Control Panel -> Administrative Tools -> Service Chuyn sang tab security To tn cho php ly d liu SNMP ca Server 2003

2. Cu hnh SNMP cho my ch Linux Bc 1: Ci t SNMP

Tin hnh ci t cc gi net-snmp, net-snmp-utils #yum install net-snmp net-snmp-ultils

Bc 2: Cu hnh SNMP cho my ch Linux

Khc vi Windows trong linux nu mun thit lp community cho dch v SNMP th phi chnh sa li file cu hnh /etc/snmp/snmpd.conf #vim /etc/snmp/snmpd.conf

Vic to tn bo mt v cc nhm cha tn bo mt l ty chn #group add nms //To nhm ngi dng //To ngi dng nms thuc group

nms #useradd nms g nms nms nms

Sau khi ng li SNMP lu li file cu hnh #services snmpd restart

3. Cu hnh SNMP cho router cisco Bc 1: ng nhp s dng mt khu thit b

Bc 2: Truy cp phn giao din qun tr

Bc 3: Truy cp phn giao din cu hnh

Bc 4: Cu hnh SNMP

Bc 5: Lu cu hnh G configure terminal vo phn cu hnh

Nh vy ta cu hnh xong SNMP trn cc thit b cn gim st bng NMS. Bc tip theo tin hnh add thit b tin hnh gim st. Cu hnh SNMP Gii thiu SNMP: Simple Network Management Protocol Cu hnh SNMP Phn 1: Ci t snmp Ci nhng gi net-snmp, net-snmp-utils Cho ngi dng FC: # yum install net-snmp net-snmp-utils Phn 2: Cu hnh Chnh sa file cu hnh snmpd.conf (FC user: /etc/snmp/snmpd.conf) Trch dn: ########################################### # Access Control (Quyn truy nhp thng tin)

########################################### # First, map the community name public into a security name # thay MtkhuSNMP bng mt chui k t com2sec local localhost MtkhuSNMP com2sec myLAN 192.168.1.0/24 MtkhuSNMP# Second, map the security name into a group name: # RWGroup: quyn c/vit (Read, Write) # ROGroup: ch c quyn c (Read Only) group RWGroup v1 local group RWGroup v2c local group RWGroup usm local group ROGroup v1 myLAN group ROGroup v2c myLAN group ROGroup usm myLAN# Third, create a view for us to let the group have rights to: view all included .1 80 # Finally, grant the group read-only access to the systemview view. # group context sec.model sec.level prefix read write notif access ROGroup any noauth exact all none none access RWGroup any noauth exact all all none ############################## # System contact information ############################## syslocation Cng ty XXX syscontact Admin ####################################### # disk checks (kim tra dung lng HDD) ####################################### # bo li nu / partition cn t hn 100 MB, /var cn t hn 500 MB disk / 100000 disk /var 500000

############################################ # load average checks (kim tra ti ca CPU) ############################################ # bo li nu vt mc trung bnh sau y (1, 5, 15 pht) # load [1MAX=12.0] [5MAX=13.0] [15MAX=14.0] load 12 13 14 Phn 3: Khi ng snmpd Cho ngi dng FC // t ng chy mi khi bt my # chkconfig level 3 snmpd on // khi ng cho ln u tin # /etc/init.d/snmpd start Phn 4: Kim tra hot ng S dng lnh snmpwalk xem mt s thng tin h thng Trch dn: // // phn memory cn tha (cha s dng) $snmpwalk -v 1 -c MtkhuSNMP localhost .1.3.6.1.4.1.2021.4.6.0 // kt qu: 120 MB RAM cha s dng UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 120400// // dung lng HDD, / partition $ snmpwalk -v 1 -c MtkhuSNMP localhost .1.3.6.1.4.1.2021.9.1.9.1 // kt qu: s dng 13% UCD-SNMP-MIB::dskPercent.1 = INTEGER: 13// // s user ang login vo h thng $ snmpwalk -v 1 -c MtkhuSNMP localhost hrSystemNumUsers.0 // c 70 users

HOST-RESOURCES-MIB::hrSystemNumUsers.0 = Gauge32: 70 // // s TCP connection ang m $ snmpwalk -v 1 -c MtkhuSNMP localhost .1.3.6.1.2.1.6.9.0 // c 123 open connections TCP-MIB::tcpCurrEstab.0 = Gauge32: 123