Table MIB

"yogesh marathe" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
snmptranslate is working for objects in this mib
  
i'm getting inconsistent name error when i try to set values of columinar objects. (same for status column)

i could not create row. plz help me out.

MIB is

TABLE-MIB DEFINITIONS ::= BEGIN

IMPORTS
	Integer32,enterprises		      FROM SNMPv2-SMI,
	MODULE-IDENTITY,OBJECT-TYPE           FROM SNMPv2-SMI,
	RowStatus FROM SNMPv2-TC,
	MODULE-COMPLIANCE, OBJECT-GROUP       FROM SNMPv2-CONF;

tableMIB MODULE-IDENTITY
    LAST-UPDATED "9911030000Z"            -- 30 Aug 1999, midnight
    ORGANIZATION "VIT+Symantec"
    CONTACT-INFO "
                  Author:     Ghante Anirudha,Yogesh Marathe
					at VIT
                 "
    DESCRIPTION  "A simple mib for leaf demonstration purposes.
                 "
    ::= { enterprises 2000 }

hostsTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF HostsEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
	""
    ::= { tableMIB 1 }

hostsEntry OBJECT-TYPE
    SYNTAX      HostsEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
	""
    INDEX       { hostsIndex }
    ::= { hostsTable 1 }

	
HostsEntry ::= SEQUENCE { 
			  hostIndex Integer32,
			  hostsIP OCTECT STRING,
			  hostsName OCTECT STRING,
                          hostsStatus RowStatus }

hostsIndex OBJECT-TYPE
    SYNTAX      Integer32
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
	""
    DEFVAL { 10 }
    ::= { hostsEntry 1 }

hostsIP OBJECT-TYPE
    SYNTAX      OCTET STRING
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
	""
    DEFVAL { 127.0.0.1 }
    ::= { hostsEntry 2 }

hostsName OBJECT-TYPE
    SYNTAX      OCTET STRING
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
	""
    DEFVAL { localhost }
    ::= { hostsEntry 3 }

hostsStatus OBJECT-TYPE
    SYNTAX      RowStatus
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
	""
    ::= { hostsEntry 4 }

END

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.