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}
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}