[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-558818 ] snmpset arguments on daemon is incorrect
From:       noreply () sourceforge ! net
Date:       2002-05-21 19:27:51
[Download RAW message or body]

Bugs item #558818, was opened at 2002-05-21 12:27
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=112694&aid=558818&group_id=12694

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: snmpset arguments on daemon is incorrect

Initial Comment:
Agent: v5.0.0
Daemon: v4.2.3

When I do a snmpset as follows on the agent
snmpset 192.168.0.100 .1.3.6.1.4.1...... string 1

the daemon executes (obtained from debugger)
ucd-snmp/pass: pass-
running:  /usr/bin/perl /usr/local/share/snmp/passcript/int
erfaces.pl -s .1.3.6.1.4.1.9885.1.9.1.0 string "1"

However the perl script obtains this as ARGV[3]
print $ARGV[3];
> 1
print length $ARGV[3];
> 3
print ($ARGV eq "1");
> 
print ($ARGV =~ /1/);
> 1

So from here I summarize there are 3 bytes so I split 
them up and here are byte 1 and byte 3 converted to 
binary
"00000000000000000000000000000000"
Clearly the null byte doesn't belong there - I'm not sure 
where it came from.




----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=112694&aid=558818&group_id=12694

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic