[mrtg] cfgmaker on Catalyst 4006

Makai József Jozsef.Makai at siemens.hu
Tue Jul 23 15:31:32 MEST 2002


I am a beginner with mrtg. I use mrtg 2.9.18 on Win2000.
I have done config files with the cfgmaker for Catalyst 3548 switches, and
the curves are coming with mrtg.

I have two questions, if anybody could help me...

1. The gigabit interfaces show too low traffic. 

	The cfgmaker command is:

		perl cfgmaker --no-down --ifdesc=descr --ifref=descr
--global "WorkDir: set" --global "Options[_]: growright, bits, noarrow"
--global "RunAsDaemon: yes" --global "XSize[_]: 300" --global "YSize[_]:
100" public at x.y.z.w > sw1.cfg

	The config is:

\GigabitEthernet0/1:public at x.y.z.w:
	SetEnv[x.y.z.w_GigabitEthernet0_1]: MRTG_INT_IP=""
	MaxBytes[x.y.z.w_GigabitEthernet0_1]: 125000000
	Title[x.y.z.w_GigabitEthernet0_1]: GigabitEthernet0/1 -- sw1
	PageTop[x.y.z.w_GigabitEthernet0_1]: <H1>GigabitEthernet0/1 --
	   <TR><TD>System:</TD>     <TD>sw1 in </TD></TR>
	   <TR><TD>Maintainer:</TD> <TD></TD></TR>
	   <TR><TD>Description:</TD><TD>GigabitEthernet0/1  </TD></TR>
	   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
	   <TR><TD>ifName:</TD>     <TD>Gi0/1</TD></TR>
 	  <TR><TD>Max Speed:</TD>  <TD>125.0 MBytes/s</TD></TR>

	Perhaps a counter problem?

2. I use exactly the same command line options for a Catalyst 4006, but
almost all of the ports were commented out.

	The result is for a gigabit Ethernet port:

		### Interface 5 >> Descr: '' | Name: '1/2' | Ip: '' | Eth:
'00-05-9b-bd-be-fd' ###
		### The following interface is commented out because:
		### * --ifref=descr is not unique for this interface
		# Target[]: 5:public at
		# SetEnv[]: MRTG_INT_IP=""
		# MaxBytes[]: 125000000
		# Title[]: 5 -- sw2
		# PageTop[]: <H1>5 -- sw2</H1>
		#  <TABLE>
		#    <TR><TD>System:</TD>     <TD>sw2 in </TD></TR>
		#    <TR><TD>Maintainer:</TD> <TD></TD></TR>
		#    <TR><TD>Description:</TD><TD>  </TD></TR>
		#    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd
		#    <TR><TD>ifName:</TD>     <TD>1/2</TD></TR>
		#    <TR><TD>Port Name:</TD>  <TD></TD></TR>
		#    <TR><TD>Max Speed:</TD>  <TD>125.0 MBytes/s</TD></TR>
		#  </TABLE>

	The problem is, that the port descriptions contain ONLY the
description without the port number so they are really not unique.
	And certainly this is why the interface number is used as ifref. The
same happened, when I forced the SNMPv2.
	(In case 1. the descriptions do contain the unique identifier as
well, there was not this problem.)
	I could manually repair these configs, but about 150 ports per
switch is quite a lot of work...:(
	Is there a simple solution for this problem?

Thanks in advance,


Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list