[mrtg] Re: Command

Hans Peter Schoepf pety at dnet.it
Thu Jun 7 17:32:49 MEST 2001



Hi
You can make one file.
Run the cfgmaker for the two different routers and then chose one of them as 
primary file and you put the target from the other file in the primary
for example:


./cfgmaker public at 1.1.1.1 >test1.cfg
./cfgmaker public at 2.2.2.2 >test2.cfg
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
example output: more test1.cfg 

# Created by
# ./cfgmaker 1.1.1.1
WorkDir: /directory where you but you files

######################################################################

Target[ ]: 1:public at 1.1.1.1
MaxBytes[ ]: 
Options[ ]: bits
WithPeak[ ]: wym
Title[ ]: Traffic Analysis for 1
PageTop[ ]: <H1>Traffic


######################################################################

Target[ ]: 1:public at 1.1.1.1
MaxBytes[ ]:
Options[ ]: bits
WithPeak[ ]: wym
Title[ ]: Traffic Analysis
PageTop[ ]: <H1>Traffic Analysis 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
example output from :more test2.cfg

# Created by
# ./cfgmaker 1.1.1.1
WorkDir: /directory where you but you files

######################################################################
Target[ ]: 1:public at 2.2.2.2
MaxBytes[ ]: 
Options[ ]: bits
WithPeak[ ]: wym
Title[ ]: Traffic Analysis for 1
PageTop[ ]: <H1>Traffic


######################################################################

Target[ ]: 1:public at 2.2.2.2
MaxBytes[ ]:
Options[ ]: bits
WithPeak[ ]: wym
Title[ ]: Traffic Analysis
PageTop[ ]: <H1>Traffic Analysis 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
finally you have to do:(chose one of the files and insert )

for example test1.cfg
more test1.cfg 

# Created by
# ./cfgmaker 1.1.1.1
WorkDir: /directory where you but you 
files######################################################################

Target[ ]: 1:public at 1.1.1.1
MaxBytes[ ]: 
Options[ ]: bits
WithPeak[ ]: wym
Title[ ]: Traffic Analysis for 1
PageTop[ ]: <H1>Traffic


######################################################################

Target[ ]: 1:public at 1.1.1.1
MaxBytes[ ]:
Options[ ]: bits
WithPeak[ ]: wym
Title[ ]: Traffic Analysis
PageTop[ ]: <H1>Traffic Analysis 

######################################################################
Target[ ]: 1:public at 2.2.2.2
MaxBytes[ ]: 
Options[ ]: bits
WithPeak[ ]: wym
Title[ ]: Traffic Analysis for 1
PageTop[ ]: <H1>Traffic


######################################################################

Target[ ]: 1:public at 2.2.2.2
MaxBytes[ ]:
Options[ ]: bits
WithPeak[ ]: wym
Title[ ]: Traffic Analysis
PageTop[ ]: <H1>Traffic Analysis 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


You start ./mrtg test1.cfg and it generate the graphics for both router

Thats all

Bye Peter
Am Donnerstag,  7. Juni 2001 13:19 schrieb Richard TS:
> Friends,
> I have just make an mrtg.cfg for a router with IP 1.1.1.1 and SNMP
> community public When I create a with command cfgmaker public at 1.1.1.1
> mrtg.cfg , I have 4 graphic with the same target public at 1.1.1.1 My router
> connect only to an WAN interface and a Fast Ethernet
> I have another router with public at 2.2.2.2 and the two router connect to
> hub.
>
> How can I make one mrtg.cfg file which make the two target ...
> Or can I use this command
>
> #cfgmaker public at 1.1.1.1 public at 2.2.2.2 >> mrtg.cfg
>
> regards,
>
> Richard
>
>
>
> --
> 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