[mrtg] Re: cfgmaker on Catalyst 4006

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Tue Jul 23 15:56:11 MEST 2002


Hi Jozsef,

About the first question: Try to use 64 bit counters by using SNMP v2. 
This can be done by adding :::::2 after the IP-number at the 'target[..]' line of the config. If you want to do this with the configmaker add --snmp-options=:::::2 in the command

About the second option: Because the descriptions of the 4006 are not unique, you have to use some other way to identify them. You can leave out the '--ifref=descr' part in the configmaker command.
In this way you get the default reference to the ports, which is the portnumber.
If you don't want to use the portnumbers you have to check the documentation and look for other parameters for the '--ifref=' option.

Jan.

-----Original Message-----
From: Makai József [mailto:Jozsef.Makai at siemens.hu] 
Sent: Tuesday, July 23, 2002 3:32 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] cfgmaker on Catalyst 4006



Hello,

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:

	Target[x.y.z.w_GigabitEthernet0_1]:
\GigabitEthernet0/1:public at x.y.z.w:
	SetEnv[x.y.z.w_GigabitEthernet0_1]: MRTG_INT_IP="" MRTG_INT_DESCR="GigabitEthernet0/1"
	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 -- sw1</H1>
	 <TABLE>
	   <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>
 	</TABLE>

	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[149.202.226.237_5]: 5:public at 149.202.226.237:
		# SetEnv[149.202.226.237_5]: MRTG_INT_IP=""
MRTG_INT_DESCR=""
		# MaxBytes[149.202.226.237_5]: 125000000
		# Title[149.202.226.237_5]: 5 -- sw2
		# PageTop[149.202.226.237_5]: <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
(6)</TD></TR>
		#    <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,

Jozsef

--
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

--
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