I seem to have hit a snag. During a poll I get the following results. Always on the same set of routers.
Illegal hexadecimal digit '
' ignored at ./cdppoll line 99, <STDIN> line 1.
Illegal hexadecimal digit 'X' ignored at ./cdppoll line 100, <STDIN> l
+ine 1.
Use of uninitialized value in hex at ./cdppoll line 102, <STDIN> line
+1.
0.0.0.0 vadgw001.winstar.com Serial2/2
+ cisco 7206
Trying to trace it down I added some statements to the Get_SNMP_Info
sub Get_SNMP_Info{ #This sub gets the value of an oid
my($crap , $value , $result);
my($oid) = $_[0];
$result = $session->get_request("$oid");
$result = $session->get_request("$oid");
#return unless (defined $result);
($crap , $value) = %$result;
print "DEBUG: $oid = $value\n";
print "DEBUG: $oid = $crap\n";
return $value;
}
and come up with this:
DEBUG: 1.3.6.1.4.1.9.9.23.1.2.1.1.4.7.429 =
X>
DEBUG: 1.3.6.1.4.1.9.9.23.1.2.1.1.4.7.429 = 1.3.6.1.4.1.9.9.23.1.2.1.1
+.4.7.429
substr outside of string at ./cdppoll line 97, <STDIN> line 1.
Illegal hexadecimal digit '
' ignored at ./cdppoll line 99, <STDIN> line 1.
Illegal hexadecimal digit 'X' ignored at ./cdppoll line 100, <STDIN> l
+ine 1.
Use of uninitialized value in hex at ./cdppoll line 102, <STDIN> line
+1.
DEBUG: 1.3.6.1.4.1.9.9.23.1.2.1.1.6.7.429 = vadgw001.winstar.com
DEBUG: 1.3.6.1.4.1.9.9.23.1.2.1.1.6.7.429 = 1.3.6.1.4.1.9.9.23.1.2.1.1
+.6.7.429
DEBUG: 1.3.6.1.4.1.9.9.23.1.2.1.1.7.7.429 = Serial2/2
DEBUG: 1.3.6.1.4.1.9.9.23.1.2.1.1.7.7.429 = 1.3.6.1.4.1.9.9.23.1.2.1.1
+.7.7.429
DEBUG: 1.3.6.1.4.1.9.9.23.1.2.1.1.8.7.429 = cisco 7206
DEBUG: 1.3.6.1.4.1.9.9.23.1.2.1.1.8.7.429 = 1.3.6.1.4.1.9.9.23.1.2.1.1
+.8.7.429
0.0.0.0 vadgw001.winstar.com Serial2/2
+ cisco 7206
I can't figure out where the X> is coming from. I do an snmpget on that same oid and get good results.
snmpget -v2c vaugw001 something .1.3.6.1.4.1.9.9.23.1.2.1.1.4.7.429
enterprises.9.9.23.1.2.1.1.4.7.429 = Hex: 0A 00 58 3E
Has anyone reported this yet? It happens every time on exactly the same entries.
Kevin
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.