[mrtg] Re: NT SNMP Scripts

Chairman of the Bored list-mrtg-talk at L7.org
Fri Feb 16 13:41:41 MET 2001


At 04:11 PM 2/15/2001 -0800, you wrote:
>Our unix machine was recently taken offline. With it went every one of my
MRTG configs/scripts and everything I used to monitor various things. Being
it that some of you may do some of the things I did I'm hoping someone may
be able to lend some advice. Because of this change I decided to setup a
Windows 2000 machine to do all of my monitoring. I had a simple csh script
I would run to dynamically create index files for me. One of the things I'm
still trying to figure out is how to get an equivelant of the following line:
>echo "`snmpget 192.168.150.157 public .1.3.6.1.4.1.9.2.1.2.0 | grep = |
awk '{print "Reason for Power Cycle: "$3}'`" 
>
>This would just be redirected to an index.html. I've located all the
utilities I thought I needed to complete this in Windows. I got a unix port
of echo, grep and awk. The problem is that .bat files don't know how to
"escape" with the ` character. It instead just produces an error. Do any of
you know how to fix this dilemna of mine? Any leads would be greatly
appreciated.

go back to a unix box,
all of what mrtg does,
and everything you need to do,
runs _WAY_ better under freebsd.
-dd

                                \\\\\//                                    
       \\|//       _\\|//_      |     |      _\\|//_       \\|//           
       (@ @)      (' 0-0 ')     (.) (.)     (' @-@ ')      (o-o)           
+-=oOOo-(_)-oOOo=oo0=(_)=0oo=oOO=-(_)-=OOo=oo0=(_)=0oo=oOOo-(_)-oOOo=-+    
                | Level Seven inc. http://www.L7.net/ |                 /"\
   The worlds "one stop" InterNetworking Provider 1 (360) 753 - 3556    \ /
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+  X 
ASCII Ribbon campaign against HTML E-Mail >- - - - - - - - - - - - - -> / \ 

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