Python SNMP on Raspbian Raspberry Pi

pip(3) install pysnmp 
pip(3) install pysnmp-apps 
// for collect trap
sudo vim /etc/hosts.allow
//添加允许接收trap的主机
all:192.168.100.2 #snmptrapd: 192.168.100.2
all:192.168.100.3
:wq!
sudo vim /etc/snmp/snmptrapd.conf
authcommunity execute\log\net public
:wq!

猜你喜欢

转载自blog.csdn.net/Elleryer/article/details/105572282