1. Cách Enabling SNMP in Cisco Routers hoặc Switches
- Kết nối vào Router/Switch
prompt#telnet 192.168.1.88
- Nhập username, password xong vào mode cấu hình
Router>enable
Password:
Router#
- Vào mode cấu hình với lệnh:
Router#configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
Router(config)#
- Sử dụng lệnh sau để enable SNMP-Server Readonly:
Router(config)#snmp-server community public RO
where "public" is the Read-only community string.
- Sử dụng lệnh sau để enable SNMP-Server Write-Read:
Router(config)#snmp-server community private RW
where "private" is the Read-write community string.
- Thoát khỏi và lưu cấu hình:
Router(config)#exit
Router#write memory
Building configuration...
[OK]
Router#
2. Vào PRTG
Add sendor
IP của Switch
chọn Auto-discovery
PRTG sẽ tự động dò ra các sensor của Switch và add vào monitor
To enable SNMP traps, follow the steps below in the Configuration mode of the Router/Switch:
First, set the host to which the traps have to be sent using the folowing command:
snmp-server host <IP Address> version <v1 or 2c> <RO community string>
where,
<IP Address> refers to the IP Address of the device to which the traps have to be sent
<v1 or 2c> refers to the SNMP version
<RO community string> refers to the Read-Only community string
Then, enable SNMP Traps using the command below:
snmp-server enable traps [notification-type] [notification-option]
Tham khảo
http://www.manageengine.com/products...co-router.html
