-- *****************************************************************
-- mpIPsec.mib:  Maipu enterprise device IPsec MIB file
--
-- version 1.0.0.1, Mar 2, 2006 wang wenyu
--
-- Copyright (c)  by Maipu Communication Inc.
-- All rights reserved.
-- 
-- *****************************************************************

	
MAIPU-SECURITY-CONFIG-MIB DEFINITIONS ::= BEGIN

IMPORTS
        MODULE-IDENTITY, OBJECT-TYPE, Counter32,
       	IpAddress, Unsigned32		FROM SNMPv2-SMI
       	RowStatus			FROM SNMPv2-TC
       	mpSecurity			FROM MAIPU-SMI;
       
mpSecurityRouter 	MODULE-IDENTITY
        LAST-UPDATED "200603020932Z"      -- Thu Mar 2 09:32:35 PDT 2006
        ORGANIZATION "Maipu Communication"
        CONTACT-INFO
          	"       Wang wenyu
          	Postal: Maipu Inc
                  Tel: (028)85148048
          	E-Mail: office@maipu.com "
          
        DESCRIPTION
	 	"The MIB module describes the downlaod configuration file. "          
        ::= { mpSecurity 3 }

-- *****************************************************************

ConfigFileModule	OBJECT IDENTIFIER ::= { mpSecurityRouter 3 }

ConfigFileGroup	OBJECT IDENTIFIER ::= { ConfigFileModule 1 }

-- *****************************************************************

-- *****************************************************************
ConfigInitTraps		OBJECT IDENTIFIER ::= { ConfigFileGroup 0 }

ConfigReqTrap		NOTIFICATION-TYPE
	OBJECTS {
		cnUserID,
		cnVersion,
		cnHostName,
		cnOther,
		estabSaTrapRemoteAddress		
		}	
	STATUS current
    	DESCRIPTION
		"TRAP."
    	::={ ConfigInitTraps 1 }
    	
EmbranceInitConfigTrap		NOTIFICATION-TYPE
	OBJECTS {
		cnUserID
		}	
	STATUS current
    	DESCRIPTION
		"֧豸SNMPóɹTRAP."
    	::={ ConfigInitTraps 2 }

PreKeyReqTrap				NOTIFICATION-TYPE
	OBJECTS {
		cnUserID,
		cnHostName
		}	
	STATUS current
    	DESCRIPTION
		"ԤԿTRAP."
    	::={ ConfigInitTraps 3 }
    	
-- *****************************************************************
    	
-- *****************************************************************
-- Config Node Table

ConfigFileTable		OBJECT-TYPE
    	SYNTAX SEQUENCE OF ConfigFileEntry
    	MAX-ACCESS not-accessible
    	STATUS current
    	DESCRIPTION
		"The table contains all the configuration of ca identity."
    	::={ ConfigFileGroup 1 }
    
ConfigFileEntry	OBJECT-TYPE
    	SYNTAX ConfigFileEntry
    	MAX-ACCESS not-accessible
    	STATUS current
    	DESCRIPTION
		"Each entry contains the attributes associated with configuration file.
		ļ"
    	INDEX { UserID, FragNum }
    	::= { ConfigFileTable 1 }
    
ConfigFileEntry	::=
	SEQUENCE {
		cfUserID		OCTET STRING,
		cfFragNum		INTEGER,
		cfFragLen		INTEGER,
		cfConfigNode		OCTET STRING,
		cfConfigFileRowStatus	RowStatus
		}	

cfUserID			OBJECT-TYPE
	SYNTAX	OCTET STRING
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the user name or identity.
		ûƻID"
	::= { ConfigFileEntry 1 }

cfFragNum			OBJECT-TYPE
	SYNTAX	INTEGER
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the fragment number of current configuration file.
		ضļеķƬ"
	::= { ConfigFileEntry 2 }

cfFragLen			OBJECT-TYPE
	SYNTAX	INTEGER
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the fragment length of current configuration file.
		ضļеķƬ"
	::= { ConfigFileEntry 3 }
	
cfConfigNode		OBJECT-TYPE
	SYNTAX	OCTET STRING(SIZE(0..1024))
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the first node.
		ýڵ"
	::= { ConfigFileEntry 4 }
	
cfConfigFileRowStatus	OBJECT-TYPE
	SYNTAX		RowStatus
	MAX-ACCESS 	read-create
	STATUS 		current
    	DESCRIPTION
    		"The object defines the status of the table entry."
	::= { ConfigFileEntry 5 }
	
-- *****************************************************************

-- *****************************************************************
ConfigNotifyGroup		OBJECT IDENTIFIER ::= { ConfigFileGroup 2 }

cnUserID			OBJECT-TYPE
	SYNTAX	OCTET STRING
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the user name or identity.
		ûƻID"
	::= { ConfigNotifyGroup 1 }	
	
cnFragCount		OBJECT-TYPE
	SYNTAX	INTEGER
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the fragment count.
		Ƭ"
	::= { ConfigNotifyGroup 2 }	

cnVersion		OBJECT-TYPE
	SYNTAX	INTEGER
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the version of configuration file.
		ļİ汾"
	::= { ConfigNotifyGroup 3 }	

cnHostName		OBJECT-TYPE
	SYNTAX	INTEGER
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the hostname of router.
		豸"
	::= { ConfigNotifyGroup 4 }		
	
cnOther		OBJECT-TYPE
	SYNTAX	OCTET STRING
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the informations used for bind vrc to hardware.
		ӲϢ"
	::= { ConfigNotifyGroup 5 }		
		
-- *****************************************************************		

-- *****************************************************************
-- Config Pre-Shared Key Node Table

ConfigPreKeyTable		OBJECT-TYPE
    	SYNTAX SEQUENCE OF ConfigPreKeyEntry
    	MAX-ACCESS not-accessible
    	STATUS current
    	DESCRIPTION
		"The table contains pre-shared key of ike id."
    	::={ ConfigFileGroup 3 }
    
ConfigPreKeyEntry	OBJECT-TYPE
    	SYNTAX ConfigPreKeyEntry
    	MAX-ACCESS not-accessible
    	STATUS current
    	DESCRIPTION
		"Each entry contains the pre-shared key of specified ike id."
    	INDEX { cfUserID }
    	::= { ConfigPreKeyTable 1 }
    
ConfigPreKeyEntry	::=
	SEQUENCE {
		cfUserID		OCTET STRING,
		cfPreKey		OCTET STRING,
		cfConfigPreKeyRowStatus	RowStatus
		}	

cfUserID			OBJECT-TYPE
	SYNTAX	OCTET STRING
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the user name or ike id."
	::= { ConfigPreKeyEntry 1 }

cfPreKey			OBJECT-TYPE
	SYNTAX	OCTET STRING
	MAX-ACCESS	read-write
	STATUS	current
	DESCRIPTION
		"This object defines the pre-shared key of ike id."
	::= { ConfigPreKeyEntry 2 }

cfConfigPreKeyRowStatus	OBJECT-TYPE
	SYNTAX		RowStatus
	MAX-ACCESS 	read-create
	STATUS 		current
    	DESCRIPTION
    		"The object defines the status of the table entry."
	::= { ConfigPreKeyEntry 3 }
	
END
