[mrtg] FW: MRTG + Cisco Catalyst Port Name
Barakat, Mehmet-Hasan
hbarakat at kpmg.com
Wed Jul 23 20:58:28 MEST 2003
OK I figured it out. It's the Redhat 9 environment issue that affects SNMP
collection talked about here:
http://www.ee.ethz.ch/~slist/mrtg/msg23694.html
Thanks all.
-Hasan
-----Original Message-----
From: Barakat, Mehmet-Hasan
Sent: Tuesday, July 22, 2003 1:42 PM
To: 'Winter, R. Stephen'
Cc: mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] MRTG + Cisco Catalyst Port Name
I know, it is strange.
I'm running CATOS, version 5.4.2 (I have a 4006 running 7.2 and that won't
populate the ifref and the ifdesc either). IOS (12.0.7) is running on the
MSFCs. It's a 6509/Sup1A.
No matter how much I mess with the cfgmaker CLI options, I have noted that
the ifref and the ifdesc options do not, repeat do not, populate at all.
My partner in crime has successfully polled portnames off the very same
switch with MRTG running on a Win2kSp3 box. My RedHat box however cannot
seem to, even though everything else seems to be working fine.
Oh and Stephen - your mail server keeps bouncing back my mails to you
because they contain three Xs instead of IP addys :-)
-H
-----Original Message-----
From: Winter, R. Stephen [mailto:SWinter at becu.org]
Sent: Tuesday, July 22, 2003 1:35 PM
To: Barakat, Mehmet-Hasan
Cc: mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] MRTG + Cisco Catalyst Port Name
Strange.... I'm not sure if any of this will help, but here a bit more of
my config...
I'm running Cat6513 Sup2/MSFC2's with a SFM2.
Mrtg version 2.9.17 on Win2kSp3
On CatOS: None of my names have spaces, just "_" & "-" (set port name)
On IOS: Some Descriptions configured. They DO have spaces (Just Slot/Port
comes through on ones without names)
Are you running CatOs or IOS? The previous "pollux" example was CatOS.
The following "Mizar" example is IOS. But, they are very much the same...
# Created by
# cfgmaker --global 'Options[_]:bits,growright' --ifref=name --no-down
xxxxx at mizar
### Interface 1 >> Descr: 'GigabitEthernet1/1' | Name: 'Gi1/1' | Ip:
'172.22.xxx.xxx' | Eth: '' ###
Target[mizar_Gi1_1]: #Gi1/1:xxxxx at mizar:
SetEnv[mizar_Gi1_1]: MRTG_INT_IP="172.22.xxx.xxx"
MRTG_INT_DESCR="GigabitEthernet1/1"
MaxBytes[mizar_Gi1_1]: 125000000
Title[mizar_Gi1_1]: Traffic Analysis for Gi1/1 -- Mizar
PageTop[mizar_Gi1_1]: <H1>Traffic Analysis for Gi1/1 -- Mizar</H1>
<TABLE>
<TR><TD>System:</TD> <TD>Mizar in Spokane Data Center</TD></TR>
<TR><TD>Maintainer:</TD> <TD>RStephen Winter</TD></TR>
<TR><TD>Description:</TD><TD>GigabitEthernet1/1 Link to SPO-Core1
</TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD>Gi1/1</TD></TR>
<TR><TD>Max Speed:</TD> <TD>1000.0 Mbits/s</TD></TR>
<TR><TD>Ip:</TD> <TD>172.22.xxx.xxx ()</TD></TR>
</TABLE>
-----Original Message-----
From: Barakat, Mehmet-Hasan [mailto:hbarakat at kpmg.com]
Sent: Tuesday, July 22, 2003 10:14 AM
To: Winter, R. Stephen
Cc: mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] MRTG + Cisco Catalyst Port Name
Here's what I get - exactly the same as yours, except:
1. When I put --ifref=name, all my ports are commented out because "*
--ifref=name is not unique for this interface"
2. I get no port names.
-H
# Created by
# ./cfgmaker --ifref=name --global 'WorkDir: /www/htdocs/mrtg/mycat6509'
--global 'Options[_]: bits,growright' --output
/www/htdocs/mrtg/mycat6509/mrtg.cfg --no-down ROSTRING @ 10.6.1.xxx
### Interface 3 >> Descr: '' | Name: '' | Ip: '21.1.8.127.1.0.0' | Eth:
'00-01-64-70-52-70' ###
### The following interface is commented out because:
### * --ifref=name is not unique for this interface
#
# Target[10.6.1.xxx_3]: 3:ROSTRING at 10.6.1.xxx:
# SetEnv[10.6.1.xxx_3]: MRTG_INT_IP="21.1.8.127.1.0.0" MRTG_INT_DESCR=""
# MaxBytes[10.6.1.xxx_3]: 125000000
# Title[10.6.1.xxx_3]: Traffic Analysis for 3 -- mycat6509
# PageTop[10.6.1.xxx_3]: <H1>Traffic Analysis for 3 -- mycat6509</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>mycat6509 in Boston</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>Network Systems Group</TD></TR>
# <TR><TD>Description:</TD><TD> </TD></TR>
# <TR><TD>ifType:</TD> <TD>Gigabit Ethernet (117)</TD></TR>
# <TR><TD>ifName:</TD> <TD></TD></TR>
# <TR><TD>Max Speed:</TD> <TD>1000.0 Mbits/s</TD></TR>
# <TR><TD>Ip:</TD> <TD>21.1.8.127.1.0.0 ()</TD></TR>
# </TABLE>
-----Original Message-----
From: Winter, R. Stephen [mailto:SWinter at becu.org]
This is what I get on my Cat 6500:
# Created by
# cfgmaker --ifref=name --global 'Options[_]:bits,growright' --no-down
xxxxx at pollux
Target[pollux_5_1]: #5/1:xxxxx at pollux:
SetEnv[pollux_5_1]: MRTG_INT_IP="" MRTG_INT_DESCR=""
MaxBytes[pollux_5_1]: 125000000
Title[pollux_5_1]: Traffic Analysis for 5/1 -- pollux
PageTop[pollux_5_1]: <H1>Traffic Analysis for 5/1 -- pollux</H1>
<TABLE>
<TR><TD>System:</TD> <TD>pollux in Tukwila Data Center</TD></TR>
<TR><TD>Maintainer:</TD> <TD>RStephen Winter</TD></TR>
<TR><TD>Description:</TD><TD> </TD></TR>
<TR><TD>ifType:</TD> <TD>Gigabit Ethernet (117)</TD></TR>
<TR><TD>ifName:</TD> <TD>5/1</TD></TR>
<TR><TD>Port Name:</TD> <TD>pollux_5-1_1stFlr</TD></TR>
<TR><TD>Max Speed:</TD> <TD>1000.0 Mbits/s</TD></TR>
</TABLE>
-----Original Message-----
From: Barakat, Mehmet-Hasan [mailto:hbarakat at kpmg.com]
Sent: Tuesday, July 22, 2003 8:45 AM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] MRTG + Cisco Catalyst Port Name
I've been having this issue for a while now. I am running MRTG 2.10.0pre3 on
a RH9 box to graph Catalyst 4000/6000 port utilization. I get all the stats
I need, however, the field for ifName and ifDescr come out blank on the
port-graph page. I would like them to appear in the commonly used <mod/port>
and "CiscoCatalystPortName" format.
I have tried every possible combination of --ifref=name, --ifref=nr,
--ifref=descr etc. and --ifdesc=name, --ifdesc=descr etc. with no success.
If I use --ifref=name (and some other permutations), inside the .cfg file
I've noticed an error that says it skips all the ports because "ifref=name
is not unique". But my port names should be appearing as 1/1, 1/2, 1/3 and
my descriptions should be Peter's Port, Susan's Printer etc. they are in
most cases unique.
What ends up happening is that I get 300 ports names 192.168.1.1_1 through
300 on the index page, which is no way to monitor ports. Each drill down
graph page then has no identifying feature that tell me it's port 5/34 or
"Susan's Printer" to distinguish it from other ports.
I've noticed when I run mrtg to create the graphs, the "Walking
CiscoCatalystPortName section skips by really quickly compared to say
"Walking ifspeed".
Can anyone suggest something to help me out? I want the index page to
classify graphs by <mod/port>.
Thanks!
-Hasan
****************************************************************************
*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.
If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.
****************************************************************************
*
--
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
****************************************************************************
*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.
If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.
****************************************************************************
*
*****************************************************************************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.
If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.
*****************************************************************************
--
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