Hello!
I'm using Net-SNMP ver. 5.3.1 and i'm adding support for some WiMax mibs.
I have a problem in setting and getting values from a table with two
indexes,
an integer ID and a Mac Address. This table is part of the wmanIfMib. Here
is description:
wmanIfBsSsProvisionedForSfTable OBJECT-TYPE
SYNTAX SEQUENCE OF WmanIfBsSsProvisionedForSfEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table maps the MAC addresses of SSs to the service
flows provisioned in wmanIfBsProvisionedSfTable."
REFERENCE
"Subclause 6.3.14 in IEEE Std 802.16-2004"
::= { wmanIfBsPacketCs 2 }
wmanIfBsSsProvisionedForSfEntry OBJECT-TYPE
SYNTAX WmanIfBsSsProvisionedForSfEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"This table is indexed by wmanIfBsSsProvMacAddress and
wmanIfBsProvSfId."
INDEX { wmanIfBsSsProvMacAddress, wmanIfBsProvSfId }
::= { wmanIfBsSsProvisionedForSfTable 1 }
WmanIfBsSsProvisionedForSfEntry ::= SEQUENCE {
wmanIfBsSsProvMacAddress MacAddress,
wmanIfBsProvSfId Unsigned32,
wmanIfBsSsProvisionedForSfRowStatus RowStatus}
wmanIfBsSsProvMacAddress OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The MAC address of the SS, the service flow is created
with."
::= { wmanIfBsSsProvisionedForSfEntry 1 }
wmanIfBsProvSfId OBJECT-TYPE
SYNTAX Unsigned32 (1 .. 4294967295)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A 32 bit quantity that uniquely identifies a service flow.
The value of this object can be used by BS to index the
wmanBsProvisionedSfTable."
::= { wmanIfBsSsProvisionedForSfEntry 2 }
wmanIfBsSsProvisionedForSfRowStatus OBJECT-TYPE
SYNTAX RowStatus
MAX-ACCESS read-create
STATUS current
DESCRIPTION
"This object is used to ensure that the write, create,
delete operation to multiple columns is guaranteed to
be treated as atomic operation by agent."
::= { wmanIfBsSsProvisionedForSfEntry 3 }
-----------------------
wmanIfBsSsProvMacAddress in the agent is a fixed length string (length = 6).
In other tables where MAC Address is a normal column (not index), it works
well in set and get operations. For those tables all is OK, but in this case
a strange
thing happens...
The rows of this table are stored in an extern DB, and in my tests
the relative table from DB contains an active row with wmanIfBsProvSfId = 1
and wmanIfBsSsProvMacAddress = "abcdef". When I give this command from
console:
snmpwalk -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfTable
I obtain this response:
WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'.abcde'.102.1 = INTEGER:
active(1)
that is right except for indexes values. A "." appears as first character of
index and the "f"
appears as .102. Does anybody know why?
In set operations (to create new rows) I don't know how to correctly specify
the new index.
I try with:
snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.abcdef.2 i 4
but I obtain this negative response:
wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier
(Index out of range: abcdef (wmanIfBsSsProvMacAddress))
Other requests I try are:
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.abcdef.2 i 4
wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier
(Index out of range: abcdef (wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2 i 4
wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier
(Index out of range: abcdef (wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus."abcdef".2 i 4
wmanIfBsSsProvisionedForSfRowStatus.abcdef.2: Unknown Object Identifier
(Index out of range: abcdef (wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.6.a.b.c.d.e.f.2 i 4
wmanIfBsSsProvisionedForSfRowStatus.6.a.b.c.d.e.f.2: Unknown Object
Identifier (Index out of range: a (wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.6.'a'.'b'.'c'.'d'.'e'.'f'.2 i 4
wmanIfBsSsProvisionedForSfRowStatus.6.a.b.c.d.e.f.2: Unknown Object
Identifier (Index out of range: a (wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.6.'a'.'b'.'c'.'d'.'e'.'f'.1.2 i 4
wmanIfBsSsProvisionedForSfRowStatus.6.a.b.c.d.e.f.1.2: Unknown Object
Identifier (Index out of range: a (wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus."00:15:F2:3F:E3:15".2 i 4
wmanIfBsSsProvisionedForSfRowStatus.00:15:F2:3F:E3:15.2: Unknown Object
Identifier (Index out of range: 00:15:F2:3F:E3:15
(wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.\"00:15:F2:3F:E3:15\".2 i 4
wmanIfBsSsProvisionedForSfRowStatus."00:15:F2:3F:E3:15".2: Unknown Object
Identifier ("-quote is for variable length strings)
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.'00:15:F2:3F:E3:15'.2 i 4
wmanIfBsSsProvisionedForSfRowStatus.00:15:F2:3F:E3:15.2: Unknown Object
Identifier (Index out of range: 00:15:F2:3F:E3:15
(wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.\'00:15:F2:3F:E3:15\'.2 i 4
Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'...?..'.2
snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.'00:15:F2:3F:E3:15'.2 i 4
wmanIfBsSsProvisionedForSfRowStatus.00:15:F2:3F:E3:15.2: Unknown Object
Identifier (Index out of range: 00:15:F2:3F:E3:15
(wmanIfBsSsProvMacAddress))
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.97.98.99.100.101.102.2 i 4
Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'abcdef'.2
97.98.99.100.101.102 are the ASCII for a.b.c.d.e.f
$ snmpset -v2c -c RW_community -m ALL localhost
wmanIfBsSsProvisionedForSfRowStatus.6.97.98.99.100.101.102.2 i 4
Error in packet.
Reason: inconsistentValue (The set value is illegal or unsupported in some
way)
Failed object:
WMAN-IF-MIB::wmanIfBsSsProvisionedForSfRowStatus.'.abcde'.102.2
In the last response indication of indexes is similar to the one obtained
with the snmpwalk
that I report in the first part of this mail...
What can I do?
Sorry for all these words, but I had to explain... :-)
Thank you
Ynjo
--
And then one day you find
ten years have got behind you.
No one told you when to run
You missed the starting gun
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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