how to configure and use 'context'?

2009-04-29 Thread Kang Chen
Hi, all I try to use the function of 'context', but failed. In snmpd.conf, I configure as following: access Groupv3 "interface"usm auth exact if2 if2 if2 and the command list as following: snmpget -v3 -u leelin -n "interface" -l authNoPriv -a MD5 -A authpass 172.18.100.148 sysD

Re: Regarding MacAddress usage in net-snmp

2009-04-29 Thread Dave Shield
2009/4/29 Sasikumar : > Please let me know anything is workng with this implementation. Well, something is obviously wrong, since you're getting the wrong answer. But you haven't bothered to show us the full code that you are using, so it's impossible for us to tell *what* might be wrong. Dave -

Re: snmpd.conf

2009-04-29 Thread Wes Hardaker
> On Wed, 29 Apr 2009 18:39:42 +0530, sanjaykumar > said: s> So, Could let me know which are function I suppose to "Comment out" at s> time of "initialization" s> and while snmp is up ? To do what? Stop reading the config files all together? If you do that parts of the agent (eg, SNMP

Re: Regarding MacAddress usage in net-snmp

2009-04-29 Thread Wes Hardaker
> On Wed, 29 Apr 2009 20:14:10 +0530 (IST), Sasikumar > said: S> MAC_ADDR-MIB::MacAddress.11.1 = STRING: 11:22:33:44 Did you set the output length properly after filling the data? -- Wes Hardaker Please mail all replies to [email protected]

Regarding MacAddress usage in net-snmp

2009-04-29 Thread Sasikumar
Hi, I have implemented a MIB with one attribute whose data type is MacAddress in the *.c files are generated using mib2c and data type is mentioned as ASN_OCTET_STR hence I am filling the unsigned char ucMacAddr[6] with hex values but when i do snmp get I am getting the following value as the

snmpd.conf

2009-04-29 Thread sanjaykumar
Hi,   I am running the netsnmp 5.4.2.1 as thread. I am providing the all the required configuration using a data structure, I am not providing any config  through "snmpd.conf" So, Could let me know which are function I suppose to "Comment out" at time of "initialization" and while snmp is

Re: what's the difference between read-write and read-create?

2009-04-29 Thread Dave Shield
2009/4/29 Kang Chen : > When define a mib table, some mib node’s access property > are read-write and some are read-create. Not in the same table, I hope! Within a single table, you should use *either* read-write, *or* read-create, but you can't mix the two. (See RFC 2578, section 7.3, paragra