Re:Re: var_len != sizeof(var.string)

2011-12-19 Thread 雷哲
Thanks! I'm sorry. There is a mistake in the last email. In fact, I means that when the length of an string is 6 or 7, requests->requestvb->val.val_len != strlen(requests->requestvb->val.string). 在 2011-12-19 23:20:38,"Dave Shield" 写道: >2011/12/19 雷哲 : >> I find that var_len != sizeof(var.

Re: MIB for Dummies

2011-12-19 Thread Robert Story
[moved to coders list] On Thu, Dec 15, 2011 at 11:29 AM, Simon Chamlian wrote: > > schamlian@ubuntu:/usr/local/share/snmp/mibs$ env MIBS="+MPBC-RMH-MIB" mib2c > -c ../mib2c.mfd.conf  mpbcRMH-AlarmTable > Defaults for mpbcRMH-AlarmTable... > Warning: something's wrong at /usr/local/bin/mib2c line

Re: how to make net-snmp agent only be responsive to a certain management station

2011-12-19 Thread Bill Fenner
On Sun, Dec 18, 2011 at 10:04 PM, 梅亮 wrote: > Hi Net-SNMP coders, > > Would you please help me out with the following question? > > If I want my net-snmp agent only be responsive to a snmp packet from a > certain management station with a fixed IP address, what is the most > efficient way to do th

Re: var_len != sizeof(var.string)

2011-12-19 Thread Dave Shield
2011/12/19 雷哲 : > I find that var_len != sizeof(var.string) when var_len==6 or var_len==7, > I think that is a bug. Is it? No. var.string is a pointer to char - so will always be either 4 or 8 bytes (depending on whether this is a 32-bit or 64-bit systems). 'var_len' is the *length* of the st

var_len != sizeof(var.string)

2011-12-19 Thread 雷哲
Hello, I find that var_len != sizeof(var.string) when var_len==6 or var_len==7, I think that is a bug. Is it?-- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training e

Re: noCreation Error when trying to set VLAN on a switch

2011-12-19 Thread Lee
On 12/19/11, [email protected] wrote: > Hi, > > I was trying to set the VLAN configuration on a switch [.. snip ..] > The switch is of Cisco Catalyst 2960 series. > > >From this website, > ftp://ftp.cisco.com/pub/mibs/supportlists/cat2960/cat2960-supportlist.html [.. snip ..] I'm not at

Re: noCreation Error when trying to set VLAN on a switch

2011-12-19 Thread Dave Shield
On 19 December 2011 14:24, wrote: > I was trying to set the VLAN configuration on a switch > The switch is of Cisco Catalyst 2960 series. > I have learned that this switch doesn’t have Q-BRIDGE-MIB, but supports only > BRIDGE-MIB. > > Can we have this functionality from BRIDGE-MIB? The BRIDGE M

noCreation Error when trying to set VLAN on a switch

2011-12-19 Thread basil.joseph
Hi, I was trying to set the VLAN configuration on a switch But I am getting a noCreation Error. [root@localhost ~]# snmpset . . . dot1qVlanStaticName.2 s vlan2 dot1qVlanStaticRowStatus.2 i 4 Error in packet. Reason: noCreation (That table does not support row creation or that object can