12-23-2003 05:58 PM - edited 03-02-2019 12:32 PM
How do I setup up the CISCO 1605R router so that MRTG is able to calculate the WAN port traffic. What commands/syntax do I need to type in and where. Please give me the commands and all the steps to allow MRTG to graph the WAN port. I am a newbie to MRTG, thanks.
12-24-2003 01:31 AM
Hello,
assuming that you have MRTG and Perl installed on your machine, the first thing to do is to configure your Cisco 1605R with an SNMP community string:
1605#conf t
1605(config)#snmp-server community PRIVATE ro
1605(config)#end
Now that you have set the SNMP community string, create the .CFG file for the router (in this example I am assuming that the address of the router that is reachable from the machine where MRTG is installed on is 192.168.1.10, this is the Ethernet address of your 1605R):
perl cfgmaker PRIVATE@192.168.1.10 --global "WorkDir: c:\www\mrtg" --output 1605R.cfg
Now open the file that has been created, 1605R.cfg, with a text editor like Wordpad. You will find an entry for every interface on the router. This is how your entry for Serial0 should look like:
Target[192.168.10.1.1]: 1:PRIVATE@192.168.10.1
MaxBytes1[192.168.10.1_1]: 16000
MaxBytes2[192.168.10.1_1]: 16000
Options[192.168.10.1_1]: growright, bits
Title[192.168.10.1.1]: : Serial0
PageTop[192.168.10.1.1]:
System: | Interface Serial0 |
Maintainer: | |
Interface: | Serial0 (1) |
IP: | local-gw (192.168.10.1) |
Max Speed: | |
128kBytes/s |
The three lines:
MaxBytes1[192.168.10.1_1]: 16000
MaxBytes2[192.168.10.1_1]: 16000
Options[192.168.10.1_1]: growright, bits
are not in there by default. When you put in these lines, you get two graphs, one for inbound and one for outbound traffic. The third line lets the graph run from left to right, and displays the traffic in bits rather than bytes. Make sure that you divide the actual bandwidth parameters by 8, e.g. a 128K link would be represented as 16000 bits in and outbound, as in the above configuration example.
At the end of your .CFG file, put in the statement:
RunAsDaemon: yes
to make sure that the file runs permanently (update default is every 5 minutes).
HTH,
Georg
12-29-2003 04:52 PM
Thanks Georg, at long last I've got the MRTG to graph my WAN port which is a good start. But what I really wanted is for a SNMP software such as MRTG to present the traffic as Megabytes every five minutes, 1 hour, 1 day, 1 week, 1 months interval. At the moment MRTG only graphs these intervals but not present the actual figures, is there a MRTG command that allows me to do this??? Or can MRTG be tuned to do it? Or is there other SNMP software that present the figures??
12-30-2003 01:57 AM
Hello,
I think I understand what you are saying, and I think you can tune MRTG to present the figures, by setting the interval value to five minutes (which is actually the default), 60 minutes (1 hour), 1440 minutes (1 day), 10080 minutes (1 week), and 43200 minutes (1 month, or 30 days).
So you would make 4 .cfg files and leave out the day/week/month/year according to what you want to see, and add the value interval to the .cfg file.
Here is an example:
###Router1
### Interface 2 >> Descr: 'Serial0/0' | Name: 'Se0/0' | Ip: '' | Eth: '' ###
Target[192.168.3.250_2]: 2:snmpread@192.168.3.250:
SetEnv[192.168.3.250_2]: MRTG_INT_IP="" MRTG_INT_DESCR="Serial0/0"
MaxBytes1[192.168.3.250_2]: 20000000
MaxBytes2[192.168.3.250_2]: 20000000
Suppress[192.168.3.250_2]: w,m
Options[192.168.3.250_2]: growright
Title[192.168.3.250_2]: Traffic Analysis for Router
PageTop[192.168.3.250_2]:
System: | Router |
Maintainer: | Network Management |
Description: | Serial0/0 Connection to Location 1 |
ifType: | ppp (23) |
ifName: | Se0/0 |
Max Speed: | 2Mbit/s |
In this example, the weekly and monthly graphics are suppressed. You want to see the bytes per hour, so add the following to the end of your .cfg file:
interval: 60
HTH,
GP
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide