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 that device supports Q-BRIDGE-MIB for setting VLAN.
So what I am trying, is to set VLAN configuration through Q-BRIDGE-MIB.
CISCO-VTP-MIB will not help in my case.
I am using different switches available at this time to test my code.
As I said earlier, CISCO Catalyst 2960 doesn't support Q-BRIDGE-MIB.
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 trying to create a new entry gives noCreation Error
[root@localhost ~]# snmpset . . . dot1qVlanStaticRowStatus.0.4 i 4
dot1qVlanStaticName.0.4 s vlan4
Error in packet.
Reason: noCreation (That table does not support row creation or that
object can not ever be created)
Failed object: Q-BRIDGE-MIB::dot1qVlanStaticRowStatus.0.4
So I tried a different approach.
We have an eServer running RHEL 5.4 with 2 n/w interfaces.
I have installed Net-SNMP 5.7 in it and run the snmpd and tried to set
VLAN on these interfaces using same command.
[root@localhost ~]# snmpset . . . dot1qVlanStaticRowStatus.0.4 i 4
dot1qVlanStaticName.0.4 s vlan4
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: Q-BRIDGE-MIB::dot1qVlanStaticRowStatus.0.4
My queries.
1. Is this command correct?
I.e. the portion after dot1qVlanStaticRowStatus should be 0.4 or just .4
If it is wrong, can you show an example.
2. Is it affirmative that noCreation error means it can't be
created by any means.
3. Can VLAN be configured in 2800 router as it supports
Q-BRIDGE-MIB
4. Why the snmpd replies notWritable while the fields have
read-write access.
5. Can anyone please shed some light on notWritable error and how
to make it writable.
Thanks and Regards,
Basil Joseph.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders