2009/1/15 venkatgiri <venkatgir...@globaledgesoft.com>: > my questions is what value i need to give if i want to set > 1. sunday
snmpset .... xyz b sunday or snmpset .... xyz b 0 > 2. sunday, monday snmpset .... xyz b sunday,monday or snmpset .... xyz b 0,1 > 3. sunday, monday,wednesday. snmpset .... xyz b sunday,monday,wednesday or snmpset .... xyz b 0,1,3 > when i tried to the manager is behaving like this. > i want to set 1st bit 00000001 = 01 > snmpset -c private -v 2c 172.16.8.60:161 .1.3.6.1.4.1.3.4.0 b 01 ---------> > the manager is encoding like this 40(h) ->1000000(b) That looks correct. >From RFC1906 - section 8: (3) When encoding an object whose syntax is described using the BITS construct, the value is encoded as an OCTET STRING, in which all the named bits in (the definition of) the bitstring, commencing with the first bit and proceeding to the last bit, are placed in bits 8 to 1 of the first octet, followed by bits 8 to 1 of each subsequent octet in turn, followed by as many bits as are needed of the final subsequent octet, commencing with bit 8. i.e the BITS type is encoded in big-endian form. Which is what you are seeing. Dave ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users