[mrtg] Re: SNMP util?

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Fri Mar 16 22:41:28 MET 2001


cpt2 at daimlerchrysler.com wrote:

> I'm using Win32tools that has snmp/get/bulk/set, etc. for Windows.  I tried
> piping the output from a batch file that polls 10 IPs to a text file but
> each time it gets overriden by the next polled device.

Use ">> outputfile" to append.

Also, sometimes it seems impossible to redirect the output.  In many
cases this is possible after all if you redirect another output
channel called "stderr" (error messages).  This can be done using
the " 2> errorfile"  or " 2>> errorfile" redirectors.
(don't ask me why normal output is considered to be errors...)

Also, if you want to use "more": command 2>&1 | more
This will redirect the error channel to the normal output channel 
so that it won't bypass the pager.

This is all because Microsoft is improving their products.  Read
all about file descriptors and output channels in the unix manual
pages.

"Windows is a better unix than unix"  Bill Gates


-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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