I have got it.
ifType is a macro defined in ifTable_defs.h. It is a good programming skill.
Forwarding messages
From: "雷哲"
Date: 2011-12-20 16:56:51
To: net-snmp-coders
Subject: The definition of ifTable_data
Hi,
In the definition codes of ifTable_data in the ifTable.h file
Hi All,
I have an unsigned object defined in mib as given below.
testObj OBJECT-TYPE
SYNTAX Unsigned32 (1..4294967295)
MAX-ACCESS read-create
STATUS current
DESCRIPTION " "
When I perform set operation on this with a value beyond its range
it
On 12/20/11, Dave Shield wrote:
> On 20 December 2011 11:41, wrote:
>> [root@localhost ~]# snmpset . . . dot1qVlanStaticName.4 s vlan4
>> dot1qVlanStaticRowStatus.4 i 4
>>
>> Error in packet.
>> Reason: commitFailed
>> Failed object: Q-BRIDGE-MIB::dot1qVlanStaticName.4
>>
>>
>> Does thi
I think, before create a new row you need to get a valid index with:
dot1qNextFreeLocalVlanIndex
--- On Tue, 12/20/11, Dave Shield wrote:
> From: Dave Shield
> Subject: Re: noCreation Error when trying to set VLAN on a switch
> To: [email protected]
> Cc: [email protected]
On Tue, Dec 20, 2011 at 03:01:34PM +0800, 雷哲 wrote:
> In fact, I means that when the length of an string is 6 or 7,i
> requests->requestvb->val.val_len != strlen(requests->requestvb->val.string).
Don't use strlen here. There is no guarantee that an SNMP octet string
is zero-terminated, or does not
On 20 December 2011 11:41, wrote:
> When I tried an snmpwalk on CISCO 2800, l got this.
>
> [root@localhost ~]# snmpwalk . . . dot1qVlanCurrentTable
> Q-BRIDGE-MIB::dot1qVlanFdbId.0.1 = Gauge32: 0
> Q-BRIDGE-MIB::dot1qVlanFdbId.0.2 = Gauge32: 0
> Q-BRIDGE-MIB::dot1qVlanFdbId.0.28 = Gauge32: 0
T
Hi,
>Can you successfully SET other values on that box, using the same
authentication values? (e.g. sysLocation.0)
Yes, I can set the sysLocation.0 to any desired value
>The dot1qVlanStaticTable is indexed by 'dot1qVlanIndex' - a single
integer.
>So I think you ought to be using dot1qVl
On 20 December 2011 09:40, wrote:
> But I have a CISCO 2800 series router which supports Q-BRIDGE-MIB.
>
> I can walk the VLAN details from Q-BRIDGE-MIB ::dot1qVlanCurrentTable of
> this 2800 router.
>
> The values are correct also.
> But the Q-BRIDGE-MIB:: dot1qVlanStaticTable is empty.
> And tr
Hi,
Thanks for the response.
> CISCO-VTP-MIB is a likely candidate:
I think I should explain my motive behind setting VLAN on a switch.
I am coding for a switch-like n/w component; which will be delivered in
the next month.
I don't have physical access to that component, for now.
But th
Hi,
In the definition codes of ifTable_data in the ifTable.h file, there is no
ifType field, but in the function of ifType_get, I find the usage:
rowreq_ctx->data.ifType, and the data type of rowreq_ctx->data is ifTable_data!
I cannot understand these codes, could you help me?
Thank you!
10 matches
Mail list logo