Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of object defined for indexed table

Status
Not open for further replies.

jvh75021

Programmer
May 23, 2009
4
0
0
US
Environment: SMIv2, SNMPv2c/SNMPv3

If an INTEGER OBJECT-TYPE is defined in an indexed table may it be
used as a standalone scalar? Seems it would be OK as the table copy is
in each row so cannot be the same object.
For instance, in the snippet below can table1Int1 be used as a scalar
that is sent with a trap or would a separate object be required?
Thanks,
jh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bbTable OBJECT-IDENTITY
STATUS current
DESCRIPTION
"Top node for tables."
::= { mvbb 200}
table1 OBJECT-TYPE
SYNTAX SEQUENCE OF Table1Entry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
""
::= {bbTable 1}
table1Entry OBJECT-TYPE
SYNTAX Table1Entry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Required table syntax."
INDEX {table1Index}
::= {table1 1}
Table1Entry ::=
SEQUENCE {
table1Index Integer32,
table1Int1 Integer32
}
table1Index OBJECT-TYPE
SYNTAX Integer32(1..65535)
UNITS "Hex numbers"
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= {table1Entry 1}
table1Int1 OBJECT-TYPE
SYNTAX Integer32(1..65535)
UNITS "Hex numbers"
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= {table1Entry 2}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top