quidway AR1820 router SNMP 配置如下:
#
snmp-agent
snmp-agent local-engineid 000007DB7F00000100001E6E
snmp-agent community read public
snmp-agent sys-info version all
snmp-agent target-host trap address udp-domain 172.16.200.3(我的主机地址) udp-port 5000 param
s securityname public
snmp-agent trap source Ethernet1/0
perl 安装在C:\perl
mrtg 解压在c:\mrtg
mrtg 执行如下:
C:\mrtg\bin>perl cfgmaker public@172.16.200.1 --global "workdir:c:\inetpub\wwwro
ot\mrtg" --output 1820.cfg
--base: Get Device Info on public@172.16.200.1:
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache public@172.16.200.1: Descr InLoopBack0 --> 128
--snpo: confcache public@172.16.200.1: Descr NULL0 --> 262
--snpo: confcache public@172.16.200.1: Descr Ethernet1/0 --> 514
--snpo: confcache public@172.16.200.1: Descr Ethernet2/0 --> 642
--snpo: confcache public@172.16.200.1: Ip 127.0.0.1 --> 128
--snpo: confcache public@172.16.200.1: Ip 172.16.200.1 --> 514
--snpo: confcache public@172.16.200.1: Ip 192.168.12.200 --> 642
--snpo: confcache public@172.16.200.1: Name InLoopBack0 --> 128
--snpo: confcache public@172.16.200.1: Name NULL0 --> 262
--snpo: confcache public@172.16.200.1: Name Ethernet1/0 --> 514
--snpo: confcache public@172.16.200.1: Name Ethernet2/0 --> 642
--snpo: confcache public@172.16.200.1: Type 24 --> 128
--snpo: confcache public@172.16.200.1: Type 1 --> 262
--snpo: confcache public@172.16.200.1: Type 6 --> 514
--snpo: confcache public@172.16.200.1: Type 6 --> 642 (duplicate)
--snpo: confcache public@172.16.200.1: Eth 00-00-00-00-00-00 --> 128
--snpo: confcache public@172.16.200.1: Eth 00-00-00-00-00-00 --> 262 (duplicate)
--snpo: confcache public@172.16.200.1: Eth 00-e0-fc-48-b7-ee --> 514
--snpo: confcache public@172.16.200.1: Eth 00-e0-fc-48-b7-ef --> 642
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifSpeed
--base: Writing 1820.cfg
C:\mrtg\bin>perl mrtg 1820.cfg
ERROR: CFG Error Unknown Option "workdir:c" on line 0 or above.
Check doc/reference.txt for Help
错误提示,请帮忙解决一下