http://tobi.oetiker.ch/
I use 2.15.0
get Active Perl from
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/
install them, so,
C:\mrgt-2.15.0
C:\perl
perl only adds the path (C:\Perl\bin) to your system variable, add it to user variable if you got a command not found error in command prompt
now, in your (cisco) switches and routers,
conf t[erminal]
snmp-server community public ro
snmp-server host [IP_Address_of_MRTG_Host] public
then, in your SNMP server box,
cd to C:\mrgt-2.15.0\bin
perl cfgmaker public@[IP of the SNMP client] --global "WorkDir: c:\www\mrtg" --output mrtg.cfg
To make MRTG running all the time, you need to add the following script inside the MRTG configuration file (mrtg.cfg).
RunAsDaemon: yes
use notpad or
echo 'RunAsDaemon: yes' >> .\mrtg.cfg
now
perl mrtg mrtg.cfg
the client's traffic is generated in c:\www\mrtg already
No comments:
Post a Comment