Using SNMP_util.pm

"Wagner" <[email protected]>
Newsgroups gmane.network.mrtg.devel
Message-ID <005d01c318ac$793f02c0$0e021b0a@WAGNERGC>
Hello,

I'm using SNMP_util in a perl script to get some values from my routers.

Everything works fine, but i want to make a log file just like the mrtg log
file. In case some SNMP error occour, i want to save it in a log file...
now, when it happens, the output is shonw in the command prompt.

I tried to use the perl command:

eval {
@info_router = &snmpget($router, "sysName");
};

but it didn't work.

Thanks a lot,
Wagner Garcia Campagner.

--
Unsubscribe mailto:[email protected]?subject=unsubscribe
Help        mailto:[email protected]?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.