adding a file to MIB issue..

vijendra agarwal <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello to all,

I am trying to add the attached MIB file to net-snmp.

I am doing the following steps.

1. copy the attached file to ./mibs/ dir.
2. env MIBS="+EMP-MIB" mib2c empMIB
this steps is giving error that 
"You didn't give mib2c a valid OID to start with" 

can anybody please give me any clue on this problem?

Please go thorugh the mib file attached with this
mail.

If there is any error in MIB file then also please let
me know. 


Waiting for your reply.

Thanks in advance

Vijendra.



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs
EMP-MIB.txt (text/plain, 2.4 KB)
EMP-MIB DEFINITIONS ::= BEGIN

IMPORTS
		MODULE-IDENTITY, OBJECT-TYPE, mib-2
	        FROM SNMPv2-SMI
---		MODULE-COMPLIANCE, OBJECT-GROUP    
---		FROM SNMPv2-CONF;


---
---	module definition
---
empMIB 	MODULE-IDENTITY
    		LAST-UPDATED "200006140000Z"
		ORGANIZATION "IETF Interfaces MIB Working Group"
		CONTACT-INFO
	            "   Keith McCloghrie
		        Cisco Systems, Inc.
			170 West Tasman Drive
	                San Jose, CA  95134-1706
		        US  408-526-5260
	                [email protected]"
		DESCRIPTION
			"The MIB module to describe generic objects for network
		          interface sub-layers.  This MIB is an updated version of
		          MIB-II's ifTable, and incorporates the extensions defined in
		          RFC 1229."
                                                                                                                                               
		REVISION      "200006140000Z"
		DESCRIPTION
        		    "Clarifications agreed upon by the Interfaces MIB WG, and
				published as RFC 2863."
		REVISION      "199602282155Z"
		DESCRIPTION
        			"Revisions made by the Interfaces MIB WG, and published in
				RFC 2233."
		REVISION      "199311082155Z"
		DESCRIPTION
        			"Initial revision, published as part of RFC 1573."
		::= { mib-2 4800 }
                                                                                                                                               
---
---	Node Definitions
---

	empInfo OBJECT IDENTIFIER ::= { empMIB 1 }


	nameTable OBJECT-TYPE
		SYNTAX SEQUENCE OF  NameEntry
		MAX-ACCESS not-accessible
		STATUS current
		::= { empInfo 1 }

	nameEntry OBJECT-TYPE
		SYNTAX	NameEntry
		MAX-ACCESS	not-accessible
		STATUS	current
		INDEX	{ rollno }
		::= { nameTable 1 }

	NameEntry ::=
		SEQUENCE {
				rollno		INTEGER,
				surname	OCTET STRING,
				firstname	OCTET STRING,
				lastname	OCTET STRING,
			}

	rollno	 OBJECT-TYPE
		SYNTAX INTEGER ( 1..65535 )
		MAX-ACCESS	read-write
		STATUS	current
		DESCRIPTION "rollno::"
		::= { nameEntry 1 }

	surname OBJECT-TYPE
		SYNTAX OCTET STRING
		MAX-ACCESS read-only
		STATUS current
		DESCRIPTION "surname ::"
		::= { nameEntry 2 }

	firstname OBJECT-TYPE
		SYNTAX OCTET STRING
		MAX-ACCESS read-only
		STATUS current
		DESCRIPTION "firstname::"
		::= { nameEntry 3 }

	lastname OBJECT-TYPE
		SYNTAX OCTET STRING
		MAX-ACCESS read-only
		STATUS current
		DESCRIPTION "lastname::"
		::= { nameEntry 4 }
	END
--
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.