Re: Help! Convert OCTET string to READABLE string

2013-12-16 Thread Bill Fenner
This is a limitation in the execute / pass / pass_persist infrastructure: the truncation happens when creating the output to send to the script. setPass() sets up the command string and the arguments into passthru-command, which is a statically allocated buffer. setPassPersist() has the same

Re: Help! Convert OCTET string to READABLE string

2013-12-13 Thread namgmail
On 12/13/2013 1:52 PM, Niels Baggesen wrote: On Thu, Dec 05, 2013 at 06:04:22PM +0800, namgmail wrote: Hi Niels, This is my full command: Sender: update=a1 a1 a2 a3 ...a400 #long string count from a1 to a400 snmpset -v1 -c private 192.168.4.113 *.1.3.6.1.4.1.5*

Re: Help! Convert OCTET string to READABLE string

2013-12-12 Thread Niels Baggesen
On Thu, Dec 05, 2013 at 06:04:22PM +0800, namgmail wrote: Hi Niels, This is my full command: Sender: update=a1 a1 a2 a3 ...a400 #long string count from a1 to a400 snmpset -v1 -c private 192.168.4.113 *.1.3.6.1.4.1.5* *s* ${update} I would like to see

Re: Help! Convert OCTET string to READABLE string

2013-12-05 Thread namgmail
Hi Niels, This is my full command: Sender: update=a1 a1 a2 a3 ...a400 #long string count from a1 to a400 snmpset -v1 -c private 192.168.4.113 *.1.3.6.1.4.1.5* *s* ${update} Receiver: +Added 1 more line in '/'/etc/snmp/snmpd.conf/ *pass*

Re: Help! Convert OCTET string to READABLE string

2013-12-03 Thread Magnus Fromreide
On Tue, 2013-12-03 at 10:22 +0800, namgmail wrote: Hi pro, I have a problem with SNMPSET ,this is my command: snmpset -v1 -c private 192.168.x.x.1.3.6.1.4.1.426.8.1.20.5.1.1 sSTRING If it's short string it work fine but with long string it automatic convert to

Re: Help! Convert OCTET string to READABLE string

2013-12-03 Thread namgmail
On 12/4/2013 6:55 AM, Magnus Fromreide wrote: Hi Magnus Fromreide, Thank you so much for your valuable suggestions. Now it work if i add -Oa or-OT in the snmpset command.I can see readable string . But it shows only half of string not full string... Thanks, Have a nice working day! Nam.

Re: Help! Convert OCTET string to READABLE string

2013-12-03 Thread Niels Baggesen
Den 04-12-2013 07:09, namgmail skrev: Now it work if i add -Oa or-OT in the snmpset command.I can see readable string . But it shows only half of string not full string... Are you it isn't the agent that truncates the string? Try adding -d to the snmpset command to see the packets crossing

Help! Convert OCTET string to READABLE string

2013-12-02 Thread namgmail
Hi pro, I have a problem with SNMPSET ,this is my command: snmpset -v1 -c private 192.168.x.x .1.3.6.1.4.1.426.8.1.20.5.1.1 *s * STRING If it's short string it work fine but with long string it automatic convert to *octet* string.Here is what i got from receiver: -s