[mrtg] mrtg and brocade fibre switches

Young, Jeff Jeff.Young at DRKW.COM
Tue Aug 13 08:21:52 MEST 2002


I've just started using mrtg and it's great.  We have 46 brochade fibre
switches each switch has 16 or 8 ports.  I'm after some advice on how best
to approach the management of the required number of .cfg file.

At the moment I have one cfg file per switch which is manually created.
Something like


#---------------------------------------------------------------------------
----

WorkDir: C:\PROGRA~1\APACHE~1\Apache\htdocs\stats
RunAsDaemon: yes

Options[_]: noinfo, growright
MaxBytes[_]: 100000000
YLegend[_]: throughput (Bytes)
WithPeak[_]: dwmy

Target[fcsw121bsbc_port1]:
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.12.1&1.3.6.1.4.1.1588.2.1.1.1.6.2.1.11.1:publ
ic at fcsw121bsbc:::::2 * 4
Title[fcsw121bsbc_port1]: fc throughput on switch fcsw121bsbc port 1
PageTop[fcsw121bsbc_port1]: <H1>fc throughput on switch fcsw121bsbc port
1</H1>


Target[fcsw121bsbc_port2]:
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.12.2&1.3.6.1.4.1.1588.2.1.1.1.6.2.1.11.2:publ
ic at fcsw121bsbc:::::2 * 4
Title[fcsw121bsbc_port2]: fc throughput on switch fcsw121bsbc port 2
PageTop[fcsw121bsbc_port2]: <H1>fc throughput on switch fcsw121bsbc port
2</H1>
	.
	.
	.	(ports 3-15 removed)
	.
	.
Target[fcsw121bsbc_port16]:
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.12.16&1.3.6.1.4.1.1588.2.1.1.1.6.2.1.11.16:pu
blic at fcsw121bsbc:::::2 * 4
Title[fcsw121bsbc_port16]: fc throughput on switch fcsw121bsbc port 16
PageTop[fcsw121bsbc_port16]: <H1>fc throughput on switch fcsw121bsbc port
16</H1>
#---------------------------------------------------------------------------
----


Each port target is identical except for the last number in each OID string
(the port number) and other mentions of the port number in the various text
descriptions.  Each time I want to add a new switch I take an existing
cfg file and simply search/replace the switch name ie fscw121bsbc. Very
basic.

After reading through the documentation and searching the archive it seems
that there are other ways to generate the config files.

1) I could write a perl script that generated the cfg files.  The user would
simply supply the switch name and the script would create each target as
required.

2) I could use a template - Can anyone point me in the right direction as
far as templates are concerned ? I've had a quick look in cfgmaker manual
but I really need to know that this is the way to go before commiting the
time.  An example template for a similar switch/router/hub would be a great
start point.

3) Is it possible to get cfgmaker to recognise the 16 ports as interfaces.
In the cfgmaker script/documention it seems the user can specify interfaces
by type ie

	  '53'=>'propVirtual',
	  '54'=>'propMultiplexor',
	  '55'=>'100BaseVG',
	  '56'=>'Fibre Channel',
	  '57'=>'HIPPI Interface',
	  '58'=>'Obsolete for FrameRelay',


It seems that the 16 fibre ports on the switch are not classed as
'interfaces' at the moment.  Every time I run cfgmaker I get a file that
only contains the existing 10 baseT network port ( management interface ).
I've tried using --if-filter but nothing really seems 
to change the end result.

So to sum up can anyone see a better way of creating/managing the required
number of cfg files  than simply manual edits or perl script ?

Many Thanks for any help in advance

Jeff Young


----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------

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