<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Want to run snmpget from cli of mrtg server</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Is there a way to run snmpget or snmpwalk that mrtg uses from the command line of the server that mrtg is installed on?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I am trying to trouble a problem with two devices that are on my network that I cannot connect to with mrtg. The mrtg server is now on the 172.31.16/22 subnet and the devices in question are on the 172.24.6.0/24 subnet. We recently moved the mrtg server from the 172.18.111.0/24 subnet where SNMP to these devices was working.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I have verified the community string and can do snmpwalk from other subnets.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I can ping the devices from the mrtg server but when I try to create a config I get the following error</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[root@mrtg mrtg]# traceroute 172.24.6.25</FONT>
<BR><FONT SIZE=2 FACE="Arial">traceroute to 172.24.6.25 (172.24.6.25), 30 hops max, 40 byte packets</FONT>
<BR><FONT SIZE=2 FACE="Arial"> 1 172.31.16.1 (172.31.16.1) 0.475 ms 0.400 ms 0.271 ms</FONT>
<BR><FONT SIZE=2 FACE="Arial"> 2 BEV400P.bei_nt.beverlycorp.com (172.24.6.25) 4.055 ms 4.152 ms 4.030 ms</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[root@mrtg mrtg]# env LANG=C /usr/bin/mrtg BEV400P_25.sav</FONT>
<BR><FONT SIZE=2 FACE="Arial">SNMP Error:</FONT>
<BR><FONT SIZE=2 FACE="Arial">no response received</FONT>
<BR><FONT SIZE=2 FACE="Arial">SNMPv1_Session (remote host: "172.24.6.25" [172.24.6.25].161)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> community: "public"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> request ID: 2016517923</FONT>
<BR><FONT SIZE=2 FACE="Arial"> PDU bufsize: 8000 bytes</FONT>
<BR><FONT SIZE=2 FACE="Arial"> timeout: 2s</FONT>
<BR><FONT SIZE=2 FACE="Arial"> retries: 5</FONT>
<BR><FONT SIZE=2 FACE="Arial"> backoff: 1)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490</FONT>
<BR><FONT SIZE=2 FACE="Arial">SNMPGET Problem for ifInOctets.2 ifOutOctets.2 on public@172.24.6.25:::::1:v4only</FONT>
<BR><FONT SIZE=2 FACE="Arial"> at /usr/bin/mrtg line 2035</FONT>
<BR><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: WARNING: skipping because at least the query for ifInOctets.2 on 172.24.6.25 did not succeed</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: WARNING: no data for ifInOctets&ifOutOctets:public@172.24.6.25. Skipping further queries for Host 172.24.6.25 in this round.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: ERROR: Target[172.24.6.25_2][_IN_] ' $target->[0]{$mode} ' did not eval into defined data</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: ERROR: Target[172.24.6.25_2][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: ERROR: Target[172.24.6.25_3][_IN_] ' $target->[1]{$mode} ' did not eval into defined data</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: ERROR: Target[172.24.6.25_3][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: ERROR: Target[172.24.6.25_4][_IN_] ' $target->[2]{$mode} ' did not eval into defined data</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: ERROR: Target[172.24.6.25_4][_OUT_] ' $target->[2]{$mode} ' did not eval into defined data</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: ERROR: Target[172.24.6.25_5][_IN_] ' $target->[3]{$mode} ' did not eval into defined data</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thursday, 8 March 2007 at 11:05: ERROR: Target[172.24.6.25_5][_OUT_] ' $target->[3]{$mode} ' did not eval into defined data</FONT></P>
<P><FONT SIZE=2 FACE="Arial">[root@mrtg mrtg]# </FONT>
</P>
<p></p><p>CONFIDENTIAL NOTICE:<br>This e-mail message and any attachment(s) (collectively, this 'Email') are intended <br>only for the confidential use of the recipient(s) named above. If the reader of this <br>message is not the intended recipient named above or an agent responsible for <br>delivering it to the intended recipient named above, you have received this Email in error. <br>Please notify the sender immediately and permanently delete this Email and any copies thereof.</BODY>
</HTML>