學校最近在測What's UP

於是找了一台Linux來設定SNMP測試看看 :)

 

1. 使用yum 安裝 snmp 相關套件

# yum -y install net-snmp net-snmp-utils

 

第一步驟安裝完,使用預設的設定檔啟動snmp就可以了

設定檔的位置在 /etc/snmp/snmpd.conf

2. 啟動snmp

# service snmp start

 

3. 檢查snmp 啟動狀態

3.1 使用 snmpwalk 工具測試

# snmpwalk -c public -v 2c localhost system

3.2 檢查port是否開啟
# netstat -tnlup | grep snmpd
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      7279/snmpd
udp        0      0 0.0.0.0:161                 0.0.0.0:*                               7279/snmpd

arrow
arrow
    全站熱搜

    slv922 發表在 痞客邦 留言(0) 人氣()