On środa, 12 września 2007, Dave Shield wrote:
>
> Remember that you can control the line length for hex output.
> Try
>         snmpwalk --hexOutputLength=1024 .....
>

Thanks for the info, I haven`t noticed that option.

>
> Hmmm....   what is the exact type/value being returned by this
> request?    (A raw packet dump or -Ddump output might be useful).
>
> Trying this with a string-valued object seems to work as expected:
>
>     $ snmpset -v 2c -c RWcommunity  localhost sysContact.0 s ""
>     SNMPv2-MIB::sysContact.0 = STRING:
>     $ snmpget -v 2c -c ROcommunity localhost sysContact.0
>     SNMPv2-MIB::sysContact.0 = STRING:
>

Here`s the dump:

[EMAIL PROTECTED] ~/shared/praca/konrad-dump$ snmpget -Ddump -v 1 -c 
public 10.10.20.176 SNMPv2-SMI::enterprises.637.61.1.57.4.0
No log handling enabled - turning on stderr logging
registered debug token dump, 1
dumph_send: GET
dumph_send:   VarBind
dumph_send:     Value
dumpx_send:      05 00
dumpv_send:        NULL
dumph_send:     Name
dumpx_send:      06 0C 2B 06 01 04 01 84 7D 3D 01 39 04 00
dumpv_send:        ObjID: SNMPv2-SMI::enterprises.637.61.1.57.4.0
dumph_send: error index
dumpx_send:  02 01 00
dumpv_send:    Integer: 0 (0x00)
dumph_send: error status
dumpx_send:  02 01 00
dumpv_send:    Integer: 0 (0x00)
dumph_send: request_id
dumpx_send:  02 04 09 1C 83 98
dumpv_send:    Integer: 152863640 (0x91C8398)
dumph_send: Community String
dumpx_send:  04 06 70 75 62 6C 69 63
dumpv_send:    String:  public
dumph_send: SNMP Version Number
dumpx_send:  02 01 00
dumpv_send:    Integer: 0 (0x00)
dumph_send: SNMPv1 Message
dumph_recv: SNMPv1 message

dumph_recv:   SNMP version
dumpx_recv:    02 01 00
dumpv_recv:      Integer:       0 (0x00)
dumph_recv:   community string
dumpx_recv:    04 06 70 75 62 6C 69 63
dumpv_recv:      String:        public
dumph_recv:   PDU
dumpv_recv:     Command RESPONSE
dumph_recv:     request_id
dumpx_recv:      02 04 09 1C 83 98
dumpv_recv:        Integer:     152863640 (0x91C8398)
dumph_recv:     error status
dumpx_recv:      02 01 00
dumpv_recv:        Integer:     0 (0x00)
dumph_recv:     error index
dumpx_recv:      02 01 00
dumpv_recv:        Integer:     0 (0x00)
dumph_recv:     VarBindList
dumph_recv:       VarBind
dumph_recv:         Name
dumpx_recv:          06 0C 2B 06 01 04 01 84 7D 3D 01 39 04 00
dumpv_recv:            ObjID: SNMPv2-SMI::enterprises.637.61.1.57.4.0
dumph_recv:         Value
dumpx_recv:          04 00
dumpv_recv:            String:
SNMPv2-SMI::enterprises.637.61.1.57.4.0 = ""

-- 
Maciej Grela

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to