於 Windows 2003 Server。
下載並安裝 net-snmp-5.5.0-1.x86.exe 於 C:\Net-SNMP,安裝時 component 的部分,
改勾選 with Windows Extension DLL Support,如果要使用加密的 SNMPv3,
則需要先安裝 openssl。

測試是否安裝成功,執行 snmptranslate -IR -Td IF-MIB::linkDown,
Created directory: C:/Net-SNMP/snmp/persist/mib_indexes
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
  -- FROM       IF-MIB
  OBJECTS       { ifIndex, ifAdminStatus, ifOperStatus }
  DESCRIPTION   "A linkDown trap signifies that the SNMP entity, acting in
            an agent role, has detected that the ifOperStatus object for
            one of its communication links is about to enter the down
            state from some other state (but not from the notPresent
            state).  This other state is indicated by the included value
            of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1) snmpM
IBObjects(1) snmpTraps(5) 3 }

若出現找不到 snmptranslate 指令的訊息,則需確認環境變數的 PATH中,
是否有加入 C:\Net-SNMP\bin。

若出現 IP-MIB: Module not found 的訊息,則需確認 C:\Net-SNMP\etc\snmp\snmp.conf,
內容是否為:
mibdirs C:/Net-SNMP/share/snmp/mibs
persistentDir C:/Net-SNMP/snmp/persist
tempFilePattern C:/Net-SNMP/temp/snmpdXXXXXX

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