[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

3688.0. "MIB definition with var lenght index?" by VCSESU::WADE (Bill Wade, VAXc Systems & Support Eng) Thu Sep 03 1992 17:39

    
    I'm not sure if this is a DECmcc issue or not.
    
    In a MIB definition does DECmcc support the use of a variable length 
    string as an index into a table.  I've only seen an integer used as an
    index but I'd like to use a user input character string.  Example:
                                                              
    -------------
     
    MatrixNameTable OBJECT-TYPE
	SYNTAX	SEQUENCE OF MatrixNameEntry
	ACCESS	not-accessible
	STATUS	mandatory
	DESCRIPTION ""
	::= { one 1 }

    MatrixNameEntry OBJECT-TYPE
	SYNTAX	MatrixNameEntry
	ACCESS	not-accessible
	STATUS	mandatory
	DESCRIPTION "### check on variable length index capabilities."
	INDEX { MatrixName }
	::= { MatrixNameTable 1 }

    MatrixNameEntry ::=
	SEQUENCE {
		MatrixName	DisplayString,
		MatrixValue	DisplayString,
		MatrixStatus	INTEGER
	}

    MatrixName OBJECT-TYPE
	SYNTAX	DisplayString
	ACCESS	read-write
	STATUS	mandatory
	DESCRIPTION "Whatever the user likes."
	::= { MatrixNameEntry 1 }

    .
    .
    .

    Thanks,
    Bill
        
T.RTitleUserPersonal
Name
DateLines
3688.1Cross posted in the SNMP notes conf.VCSESU::WADEBill Wade, VAXc Systems & Support EngThu Sep 03 1992 17:471
    
3688.2Yes it is supported.YAHEY::BOSEFri Sep 04 1992 10:086
	DECmcc SNMP AM V1.2 does support variable length indices. Use of
	such types of indices are perfectly valid and in conformance with 
	RFCs 1155 (SMI) and 1212 (concise Mib definitions).

	/rb
3688.3VCSESU::WADEBill Wade, VAXc Systems & Support EngFri Oct 09 1992 17:194
    Works great!
    
    Thanks