[mrtg] Re: MRTG with Cisco 2900 series switch

Jerry Heidtke jheidtke at fmlh.edu
Wed Jan 15 20:08:14 MET 2003


You could graph the following OID:

.1.3.6.1.4.1.9.9.87.1.5.1.0
.iso.org.dod.internet.private.enterprises.cisco.ciscoMgmt.ciscoC2900MIB.c290
0MIBObjects.c2900BandwidthUsage.c2900BandwidthUsageCurrent

Cisco's description:

The current bandwidth consumed. The measurement unit is
 in megabits per second (1,000,000 bits/second).
 This value gives a reasonable estimate of the amount of
 traffic currently flowing through the switch.
 
 It is calculated as follows:
 
 Octets*8 + Frames*(96 + 64)
 ---------------------------
 Measurement Interval * 1,000,000 * 2
 
 Where:
 Measurement Interval is the amount of time over which
 the Octets and Frames were collected, in seconds.
 
 Measurement Interval is always one second in current
 implementation.
 
 Octets is the total number of octets transmitted
 or received by all network interfaces, excluding
 framing data but including FCS. This includes octets
 in frames which were partially transmitted or
 received (due to collisions, for example).
 
 Frames is the total number of frames transmitted
 or received by all network interfaces, including
 frames with errors.
 
 The number of frames is multiplied by 96 plus 64 in
 order to estimate the delay between each frame for
 Ethernet's IPG and preamble/SFD.
 
 The '2' in the divisor makes this a forwarding bandwidth
 counter. A frame received on one interface is typically
 forwarded out another interface. In order to avoid double-
 counting this frame's bandwidth, once on the receiving
 interface and once on the transmitting interface, the
 total bandwidth is divided by two.
 Since multicast and broadcast frames can be sent to multiple
 ports, the above is at best a lower bound.

Hope this helps.

Jerry

-----Original Message-----
From: Jerry Hsieh [mailto:jerry at intervideo.com] 
Sent: Wednesday, January 15, 2003 12:55 PM
To: Jerry Hsieh; Mitchell, Warrick (CSC at Alcoa); mrtg
Subject: [mrtg] Re: MRTG with Cisco 2900 series switch



One more question, is there any way to sum up all the bandwidth (i.e.
fa0/1~fa0/24). I couldn't find any howto/docs from the net. It would be
helpful if anyone can give me some hint. Thanks for your time.

Regards,

Jerry

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Jerry Hsieh
Sent: Tuesday, January 14, 2003 5:42 PM
To: Mitchell, Warrick (CSC at Alcoa); mrtg
Subject: [mrtg] Re: MRTG with Cisco 2900 series switch



Hi Warrick,

Thanks for the reply. I tried with the options but the configuration still
commented out

i.e.
### Interface 4 >> Descr: 'FastEthernet0/3' | Name: 'Fa0/3' | Ip: '' | Eth:
'00-03-6b-95-63-83' ### ### The following interface is commented out
because: ### * has a speed of 0 which makes no sense # #
Target[192.168.0.130_4]: 4:public at 192.168.0.130: # SetEnv[192.168.0.130_4]:
MRTG_INT_IP="" MRTG_INT_DESCR="FastEthernet0/3" # MaxBytes[192.168.0.130_4]:
0 # Title[192.168.0.130_4]: Traffic Analysis for 4 -- ciscosw1 #
PageTop[192.168.0.130_4]: <H1>Traffic Analysis for 4 -- ciscosw1</H1> #
<TABLE>
#    <TR><TD>System:</TD>     <TD>ciscosw1 in </TD></TR>
#    <TR><TD>Maintainer:</TD> <TD></TD></TR>
#    <TR><TD>Description:</TD><TD>FastEthernet0/3  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD>Fa0/3</TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>0.0 bits/s</TD></TR>

The 2900 running-config is in the following:
...
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
......

Is there anything I need to do on the switch? Thanks again.

Regards,

Jerry Hsieh


-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Mitchell, Warrick (CSC at Alcoa)
Sent: Tuesday, January 14, 2003 5:22 PM
To: 'Jerry Hsieh'; mrtg
Subject: [mrtg] Re: MRTG with Cisco 2900 series switch



Hi Jerry,

If you run cfgmaker without any arguments, it will display it's help, in the
help it has the following options to solve your problem:

  --no-down         do not look at admin or opr status of interfaces

  --show-op-down    show interfaces which are operatively down

i.e. cfgmaker --show-op-down public at my.router.com

Which will produce a config file which has all ports that are not
administratively set to shutdown shown.

If you want all ports regardless of their state, i.e. up, down,
administratively down, use the --no-down option.

Kind regards,
Warrick Mitchell
Network Engineer

ALCOA World Alumina of Australia
* Phone:  9316 5160  Fax:  9316 5228
* E-mail:  <mailto:Warrick.Mitchell at alcoa.com.au>


-----Original Message-----
From: Jerry Hsieh [mailto:jerry at intervideo.com]
Sent: Wednesday, January 15, 2003 09:15
To: mrtg
Subject: [mrtg] MRTG with Cisco 2900 series switch



Hi all,

I am trying to use MRTG to monitor traffic on Cisco 2900 switches. When I
run cfgmaker, the cfg file will comment out the ports are not activate(no
system connected). Is there any way to enable this? Thanks for your time.

Regards,

Jerry Hsieh

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


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


Confidentiality Notice: This e-mail message, including any attachments, is 
for the sole use of the intended recipient(s) and may contain confidential 
and privileged information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.


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