[mrtg] Re: Okay, Here is a question from an NT admin..

Stieers, Ken KStieers at DainRauscher.com
Wed Jul 12 22:04:03 MEST 2000


Chris, 

Create two batch files:

One called MRTG.CMD and one called MRTGKICK.CMD


MRTG.CMD should look something like this:

:start
call mrtgkick
time /t
sleep 300
goto start

MRTGKICK should look something like this:

start "Corphub" /min cmd /c perl c:\mrtg\run\mrtg c:\mrtg\cfg\corphub.cfg 
start "MPLEX2" /min cmd /c perl c:\mrtg\run\mrtg c:\mrtg\cfg\mplex2.cfg 
start "MPEXHUB1" /min cmd /c perl c:\mrtg\run\mrtg c:\mrtg\cfg\mpexhub1.cfg 
start "MPEXHUB3" /min cmd /c perl c:\mrtg\run\mrtg c:\mrtg\cfg\mpexhub3.cfg 
start "MPEXHUB4" /min cmd /c perl c:\mrtg\run\mrtg c:\mrtg\cfg\mpexhub4.cfg 
start "MPEXHUB5" /min cmd /c perl c:\mrtg\run\mrtg c:\mrtg\cfg\mpexhub5.cfg 
start "MENLOPARK01" /min cmd /c perl c:\mrtg\run\mrtg
c:\mrtg\cfg\menlopark01.cfg 
start "Assentor" /min cmd /c perl c:\mrtg\run\mrtg c:\mrtg\cfg\assentor.cfg

The start commands start a minimized window (/min) with the title specified
(the part in quotes) running the command you specify ( cmd /c perl
c:\mrtg\run\mrtg c:\mrtg\cfg\mrtg.cfg), and then continues. 

CMD /C command   starts the command specified and then dies, freeing all the
memory it reserved. 


Run the MRTG.CMD in a minimized window on your desktop and every 5 minutes
it will kick off all of the MRTG polls that you put in the MRTGKICK.CMD
file.  You'll see the 14 cmd windows open up and then disappear. 


HTH, 

Ken 



> -----Original Message-----
> From: Brimmer, Christopher J. [mailto:CBrimmer at foleylaw.com]
> Sent: Wednesday, July 12, 2000 2:52 PM
> To: 'mrtg at list.ee.ethz.ch'
> Subject: [mrtg] Okay, Here is a question from an NT admin..
> 
> 
> 
> So far, I have about 18 instances running of MRTG to gather 
> information and
> that means 14 Command Prompts at the bottom of the screen. I 
> read into the
> NT setup guide and figured that the setup recommended there 
> was a bit memory
> intensive, so I ran it this way.. and my way is still memory 
> intensive as
> well. So my question would be, does anyone know of a way to 
> write a singular
> batch file to run all the instances at once or a way to run them as a
> service with out taking up a huge amount of memory to do so? 
> Any help would
> be appreciated.
> 
> 
> Thanks.
> 
> 
> Christopher Brimmer
> Network Administrator - Milwaukee
> Foley & Lardner - Attorneys-at-Law
> 414-547-2719
> 
> --
> 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