PMP> Several indexes need ranges according to SMICng

PMP> Several indexes need ranges according to SMICng

Tom Hastings hastings at cp10.es.xerox.com
Wed Jul 30 12:11:47 EDT 1997


At 05:27 07/30/97 PDT, lpyoung at lexmark.com wrote:
>
>My original plan was to publish all final changes to the printer
>MIB by today. However Tom's note (below) may delay that slightly.
>
>Tom,
>This is a new error message to me so I do not know exactly
>what it means. Did the compiler tell you anything other than
>what you have below? Was this a warning or an error? I am not
>really sure what the phrase "Index item must be defined with
>syntax that includes a range" really means.


You need a range, like: (1..32767) or (1..2147483647) for
a 16-bit or a 32-bit index (not using the sign bit in either).


You need to put the range on both the SEQUENCE and the SYNTAX.


Here is an example from the Job Mon MIB if a 16-bit index:


jmGeneralEntry  OBJECT-TYPE
SYNTAX      JmGeneralEntry
MAX-ACCESS  not-accessible
STATUS      current
DESCRIPTION
"Information about a job set (queue).


An entry SHALL exist in this table for each job set."
INDEX  { jmGeneralJobSetIndex }
::= { jmGeneralTable 1 }


JmGeneralEntry ::= SEQUENCE {
jmGeneralJobSetIndex	Integer32(1..32767),
jmGeneralNumberOfActiveJobs	Integer32(0..2147483647),
jmGeneralOldestActiveJobIndex	Integer32(0..2147483647),
jmGeneralNewestActiveJobIndex	Integer32(0..2147483647),
jmGeneralJobPersistence	Integer32(15..2147483647),
jmGeneralAttributePersistence	Integer32(15..2147483647),
jmGeneralJobSetName	OCTET STRING(SIZE(0..63))
}


jmGeneralJobSetIndex OBJECT-TYPE
SYNTAX      Integer32(1..32767)
MAX-ACCESS  not-accessible
STATUS      current
DESCRIPTION
"A unique value for each job set in this MIB.  The jmJobTable and
jmAttributeTable tables have this same index as their primary index.  


>
>Lloyd
>
>--- Forwarded by Lloyd Young on 07/30/97 07:14 AM ---
>
>From: hastings%cp10.es.xerox.com at interlock.lexmark.com
>07/29/97 01:04 PM
>To:  pmp%pwg.org at interlock.lexmark.com
>cc:   (bcc: Lloyd Young)
>Subject:  PMP> Several indexes need ranges according to SMICng compiler
>
>
>
>The new version of SMICng notes errors in the Printer MIB for "Index item
>must be defined with syntax that includes a range."
>
>The particular index objects that give this error are prtOutputIndex,
>PrtChannelIndex, prtInterpreterIndex and prtAlertIndex.
>
>
>
>



More information about the Pmp mailing list