perlquestion
c
I am getting a peculiar error when using Net::SNMP and sending a community string to a remote device.<p>
[2 extra after iSEQ]C=private [asnlen? 26<32] (DF)<p>
I'm not sure what the 2 extra is referring to.The variable is being set via:<p>
<code>
## set the v1/2c specific session traits
$snmp_options{community} = $xml->{node}->{$args->{host}}->{snmp}->[0]->{community}->[0]
|| $xml->{snmp}->[0]->{community}->[0];
</code><p>
however, when I remove the entry from xml file and let the value be set explicitly, such as in...<p>
<code>
## set the v1/2c specific session traits
$snmp_options{community} = $xml->{node}->{$args->{host}}->{snmp}->[0]->{community}->[0]
|| $xml->{snmp}->[0]->{community}->[0]
|| "private";
</code><p>
All works well and the community is sent correctly. I've tried <code>chop/chomp</code>ing the $xml value to see if a newline might be causing the issue.<p>
My XML file is pretty straightforward since it is just for testing<p>
<code>
<global>
<node id="router">
<snmp>
<version>1</version>
<retries>1</retries>
<wait>5.0</wait>
<mtu>1500</mtu>
<debug>0</debug>
<community>private</community>
</snmp>
<tftp>
<server>10.6.21.230</server>
</tftp>
</node>
</global>
</code><p>
My gut reaction is to think that there must be something wrong with the XML file, but I just dont see anything incorrect with it. Would there be something be conveyed though the XML variable that I am missing?<p>
thanks -[c]
<p><small><b>Edited</b>: ~Mon Jul 8 15:49:33 2002 (GMT),
by [footpad]:<br />Replaced typed brackets with numeric entities in sample data </small></p>