Re: Create VLAN using Q-BRIDGE-MIB
"m. kh " <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, look #* snmpset -v 2c -c private 192.168.2.241 Q-BRIDGE-MIB::dot1qVlanStaticRowStatus = createAndGo Q-BRIDGE-MIB::dot1qVlanStaticName = vlan6* *Error in packet. Reason: resourceUnavailable (This is likely a out-of-memory failure within the agent) Failed object: Q-BRIDGE-MIB::dot1qVlanStaticRowStatus* and when i use snmpwalk: *# snmpwalk -v 2c -c private 192.168.2.241 Q-BRIDGE-MIB::dot1qVlan* Q-BRIDGE-MIB::dot1qVlanNumDeletes.0 = Counter32: 0 Q-BRIDGE-MIB::dot1qVlanFdbId.0.1 = Gauge32: 1 Q-BRIDGE-MIB::dot1qVlanFdbId.0.10 = Gauge32: 10 Q-BRIDGE-MIB::dot1qVlanCurrentEgressPorts.0.1 = Hex-STRING: FF FF FF FF FF FF FF F0 Q-BRIDGE-MIB::dot1qVlanCurrentEgressPorts.0.10 = Hex-STRING: 00 00 00 00 00 00 00 00 Q-BRIDGE-MIB::dot1qVlanCurrentUntaggedPorts.0.1 = Hex-STRING: FF FF FF FF FF FF FF F0 Q-BRIDGE-MIB::dot1qVlanCurrentUntaggedPorts.0.10 = Hex-STRING: 00 00 00 00 00 00 00 00 Q-BRIDGE-MIB::dot1qVlanStatus.0.1 = INTEGER: other(1) Q-BRIDGE-MIB::dot1qVlanStatus.0.10 = INTEGER: permanent(2) Q-BRIDGE-MIB::dot1qVlanCreationTime.0.1 = Timeticks: (5100) 0:00:51.00 Q-BRIDGE-MIB::dot1qVlanCreationTime.0.10 = Timeticks: (1825700) 5:04:17.00 Q-BRIDGE-MIB::dot1qVlanStaticName.10 = STRING: vlan10 Q-BRIDGE-MIB::dot1qVlanStaticEgressPorts.10 = Hex-STRING: 00 00 00 00 00 00 00 00 Q-BRIDGE-MIB::dot1qVlanForbiddenEgressPorts.10 = Hex-STRING: 00 00 00 00 00 00 00 00 Q-BRIDGE-MIB::dot1qVlanStaticUntaggedPorts.10 = Hex-STRING: 00 00 00 00 00 00 00 00 Q-BRIDGE-MIB::dot1qVlanStaticRowStatus.10 = INTEGER: active(1) Q-BRIDGE-MIB::dot1qPvid.1 = Gauge32: 1 Q-BRIDGE-MIB::dot1qPvid.2 = Gauge32: 1 Q-BRIDGE-MIB::dot1qPvid.3 = Gauge32: 1 ...... help ! On Thu, May 21, 2009 at 2:00 PM, Vincent Bernat <[email protected]> wrote: > OoO Pendant le temps de midi du jeudi 21 mai 2009, vers 12:37, "m. kh " > <[email protected]> disait : > > > i use Q-BRIDGE-MIB to create vlan in switch ,the request to create vlan > is : > > # snmpset -v2c -c private 192.168.2.241 1.3.6.1.2.1.17.7.1.4.3.1.1.6 s > vlan6 > > > but the result is : > > Error in packet. > > Reason: inconsistentValue (The set value is illegal or unsupported in > some way) > > Failed object: SNMPv2-SMI::mib-2.17.7.1.4.3.1.1.6 > > This is not the way to create a new row in a table. You should try: > > snmpset -v 2c -c private 192.168.2.241 \ > Q-BRIDGE-MIB::dot1qVlanStaticRowStatus = createAndGo \ > Q-BRIDGE-MIB::dot1qVlanStaticName = vlan6 > > Or : > > snmpset -v 2c -c private 192.168.2.241 \ > Q-BRIDGE-MIB::dot1qVlanStaticRowStatus = createAndWait > snmpset -v 2c -c private 192.168.2.241 \ > Q-BRIDGE-MIB::dot1qVlanStaticName = vlan6 > snmpset -v 2c -c private 192.168.2.241 \ > Q-BRIDGE-MIB::dot1qVlanStaticRowStatus = createAndGo > > The first last is less eager to work but if it works, it will give you > more tips on what can go wrong at each step. > > All this depends on the implementation on the switch. Some does not even > accept to create VLAN this way. The failures can be logged with some > useful tips. > -- > I WAS NOT TOLD TO DO THIS > I WAS NOT TOLD TO DO THIS > I WAS NOT TOLD TO DO THIS > -+- Bart Simpson on chalkboard in episode 5F13 > ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users