-- ==================================================================
-- Copyright (C) 2002 by  HUAWEI TECHNOLOGIES. All rights reserved.
--
-- Description: This file describes the huawei mib implementation of ndec
-- Reference:  
-- Version: V1.0
-- History: 
-- 
--     	
-- ==================================================================


HW-NDEC-MIB DEFINITIONS ::= BEGIN

IMPORTS  
    IpAddress, Counter32, Gauge32, Integer32 ,Unsigned32 ,BITS ,NOTIFICATION-TYPE
            FROM SNMPv2-SMI  
    Counter
           FROM RFC1155-SMI        
    OBJECT-TYPE
            FROM RFC-1212
    TRAP-TYPE
            FROM RFC-1215
--    DisplayString, TruthValue
--            FROM SNMPv2-TC
    enterprises
		    FROM RFC1155-SMI;
--	HW-NDEC-MIB defination

huawei			OBJECT IDENTIFIER ::= { enterprises 2011 }

hwLocal         OBJECT IDENTIFIER ::= { huawei 1 }
products		OBJECT IDENTIFIER ::= { huawei 2 }
mlsr		    OBJECT IDENTIFIER ::= { products 33 }

huaweiNDEC OBJECT IDENTIFIER 
--         LAST-UPDATED "200203120100Z"
--         ORGANIZATION "HuaWei Corporation"
--         CONTACT-INFO
--              "HuaWei Corporation
--               Phone:  +86 10 8288xxxx
--               Fax:    +86 10 8288xxxx
--               Web:    http://www.huawei.com/
--               E-Mail: huawei@huawei.com"
--         DESCRIPTION
--               "HuaWei NDEC Root"
         ::= { mlsr 2 }      --需要公司进行统一

   
DisplayString ::= OCTET STRING(SIZE(0..255))


TruthValue ::= INTEGER {
        true(1),
        false(2)
        }


IPSIpAddress ::= IpAddress 
   
 
HIKESALifetime ::= Gauge  --(60..4294967295)
-- TEXTUAL-CONVENTION  cicso:120..86400       
--  Status
--    mandatory
--  Descr        
--    Value in units of seconds
--  default
--    86400 seconds 

HIpsecSALifetime ::= Gauge  --(30..4294967295)
-- TEXTUAL-CONVENTION  cicso:120..86400       
--  Status       
--    mandatory
--  Descr
--    Value in units of seconds
--  default
--       3600 seconds

HIpsecSALifesize ::= Gauge --(256..4194303)
-- TEXTUAL-CONVENTION
--  Status
--    mandatory               
--  Descr
--    Value in units of kilobytes
--  default
--    1843200 KB


IPSProtocol ::= INTEGER {
                    ipsec_esp(50),
                    ipsec_ah(51)
                    }

--transform         Set authentication/encryption method
--#trans ?
--    ah-esp-new             AH+ESP using RFC2402/2406
--    ah-new                 Only AH using RFC2402
--    esp-new                Only ESP using RFC2406 (Default)    
--    #define IPSEC_TRANSFORM_AH_NEW                0
--    #define IPSEC_TRANSFORM_AH_ESP_NEW            1
--    #define IPSEC_TRANSFORM_AH_ESP_OLD            2
--    #define IPSEC_TRANSFORM_AH_OLD                3
--    #define IPSEC_TRANSFORM_ESP_NEW               4
--    #define IPSEC_TRANSFORM_ESP_AH_NEW            5
--    #define IPSEC_TRANSFORM_ESP_AH_OLD            6
--    #define IPSEC_TRANSFORM_ESP_OLD               7
--    #define IPSEC_TRANSFORM_DEFAULT               IPSEC_TRANSFORM_ESP_NEW

IKEStatus ::= DisplayString
		
IKEPhase ::= INTEGER{
    	unkown(1), 
    	phase1(2), 
    	phase2(3) 
    	}  
	
IKESaDomain ::= INTEGER{
    	unkown(1), 
    	ipsec(2) 
    	}

IkeEncryptAlgo ::= INTEGER {
        ike_encrypt_none(1),     
		ike_encrypt_des_cbc(2),
		ike_encrypt_idea_cbc(3),
		ike_encrypt_blowfish_cbc(4),
		ike_encrypt_rc5_r16_b64_cbc(5),
		ike_encrypt_3des_cbc(6),
		ike_encrypt_cast_cbc(7)
        }

IkeHashAlgo ::= INTEGER {
        ike_hash_none(1),
        ike_hash_md5(2),
        ike_hash_sha(3),
        ike_hash_tiger(4)
        }                

IkeAuthMethod ::= INTEGER {
        ike_auth_pre_none(1),
        ike_auth_pre_shared(2) ,
        ike_auth_dss(3),
        ike_auth_rsa_sig(4),
        ike_auth_rsa_enc(5),
        ike_auth_rsa_enc_rev(6)
        } 

DiffHellmanGrp ::= INTEGER {
        none(1),
        dhGroup1(2),
        dhGroup2(3)
        }
                   
  
ECStatus ::= INTEGER{
	ec_state_invalid(1),  --状态异常 
	ec_state_ready(2),    -- 加密卡状态正常 
	ec_state_resetting(3) ,   -- 加密卡正在复位
	ec_state_program_updating(4),   --加密卡正在加载 
	ec_state_disable(5)         -- 加密卡被禁用
	}

CardOperator ::= INTEGER {
        cardClearStatic(1),
        cardReset(2),
        cardSynTime(3),
        cardSysLogOn(4),
        cardSysLogOff(5),
        cardSysLogClear(6)        
        }

SysLogStatus ::= INTEGER {
        enabled(1),
        disabled(2)
        }
-- TEXTUAL-CONVENTION
--  Status
--    mandatory
--  Descr
--    The administrative status for syslog.


CryptomapType ::= INTEGER {
		none(1),
        isakmp(2),  
        manual(3)
       }

TransFormMode ::= INTEGER {
        tunnel(1),
        transport(2)
        }

--  #define SADB_EALG_NONE          0
--  #define SADB_EALG_DESCBC        1
--  #define SADB_EALG_3DESCBC       2
--  #define SADB_EALG_X_BLF         3
--  #define SADB_EALG_X_CAST        4
--  #define SADB_EALG_X_SKIPJACK    5
--  #ifdef  _VRP_MODULE_ENCRYPT_CARD_ENABLE_
--  #define SADB_EALG_X_AES         6
--  #define SADB_EALG_X_QC5         7

EncryptAlgo ::= INTEGER {
        ealg_none(1),       
        ealg_des_cbc(2),
        ealg_3des_cbc(3),
        ealg_x_blf(4),
        ealg_x_cast(5),
        ealg_x_skipjack(6),
        ealg_x_aes(7),
        ealg_x_qc5(8)
        }
--esp- enc ?    The encrypt algorithm used by ESP
--    3des                Using triple DES
--    blowfish            Using blowfish
--    cast                Using cast
--    des                 Using DES
--    skipjack            Using skipjack
                 

-- #define SADB_AALG_NONE               0
-- #define SADB_AALG_MD5HMAC            1
-- #define SADB_AALG_SHA1HMAC           2
-- #define SADB_AALG_MD5HMAC96          3
-- #define SADB_AALG_SHA1HMAC96         4
-- #define SADB_AALG_X_RIPEMD160HMAC96  5
-- #define SADB_AALG_X_MD5              6
-- #define SADB_AALG_X_SHA1             7
-- #define SADB_AALG_MAX                7
AuthAlgo ::= INTEGER {
        aalg_none(1),
        aalg_md5_hmac(2),
        aalg_sha1_hmac(3),
        aalg_md5_hmac96(4),
        aalg_sha1_hmac96(5),
        aalg_x_ripe_md160_hmac96(6),
        aalg_x_md5(7),
        aalg_x_sha1(8)
       }
--ah- hash ?    The hash algorithm used by AH
--    md5-hmac-96   Using HMAC-MD5 algorithm
--    sha1-hmac-96  Using HMAC-SHA1 algorithm             
--esp- hash ?      The hash algorithm used by ESP
--    md5-hmac-96   Using HMAC-MD5 algorithm
--    sha1-hmac-96  Using HMAC-SHA1 algorithm

   
 
 
 

hipsNDECSAListTable OBJECT-TYPE
    SYNTAX SEQUENCE OF HipsNDECSAListEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "The table containing the list of all
        SA entries configured on NDEC by the operator."
    ::= { huaweiNDEC 1 }

hipsNDECSAListEntry OBJECT-TYPE
    SYNTAX HipsNDECSAListEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "Each entry contains the attributes 
        associated with a single NDEC'S SA entry."
    INDEX { hipsPeerIpAddr, hipsProtocol, hipsSPI  }
    ::= { hipsNDECSAListTable 1 }

HipsNDECSAListEntry ::= SEQUENCE {
    hipsPeerIpAddr 		IPSIpAddress,
    hipsProtocol 		IPSProtocol,
    hipsSPI 			Gauge,
    hipsEncAlgorithm 		EncryptAlgo,
    hipsAuthAlgorithm 		AuthAlgo,
    hipsLocalIpAddr 		IPSIpAddress,
    hipsSaLifeKBytes 		HIpsecSALifesize,
    hipsSaLifeSecond 		HIpsecSALifetime,
    hipsByCard 			TruthValue,
    hipsNegotiateSaMode 	CryptomapType,
    hipsExp_bytes 		Gauge,
    hipsSoft_bytes 		Gauge,
    hipsExp_timeout 		Gauge,
    hipsSoft_timeout 		Gauge     
    }


hipsPeerIpAddr OBJECT-TYPE
    SYNTAX IPSIpAddress 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The peer IP address of this SA entry.
        "
    ::= { hipsNDECSAListEntry 1 }

hipsProtocol OBJECT-TYPE
    SYNTAX IPSProtocol 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The Protocol of this SA entry.
        "
    ::= { hipsNDECSAListEntry 2 }

hipsSPI OBJECT-TYPE
    SYNTAX Gauge(256..4294967295) 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The SPI of this SA entry.
        "
    ::= { hipsNDECSAListEntry 3}

hipsEncAlgorithm OBJECT-TYPE
    SYNTAX EncryptAlgo 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The encrypt algorithm of this SA entry.
        "
    ::= { hipsNDECSAListEntry 4 }

hipsAuthAlgorithm OBJECT-TYPE
    SYNTAX AuthAlgo 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The authentication algorithm of this SA entry.
        "
    ::= { hipsNDECSAListEntry 5 }

hipsLocalIpAddr OBJECT-TYPE
    SYNTAX IPSIpAddress 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The local IP address of this SA entry.
        "
    ::= { hipsNDECSAListEntry 6 }

hipsSaLifeKBytes OBJECT-TYPE
    SYNTAX HIpsecSALifesize  
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The lifetime of this SA entry in bytes.
        "
    ::= { hipsNDECSAListEntry 7 }

hipsSaLifeSecond OBJECT-TYPE
    SYNTAX HIpsecSALifetime 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The lifetime of this SA entry in seconds.
        "
    ::= { hipsNDECSAListEntry 8 }

hipsByCard OBJECT-TYPE
    SYNTAX TruthValue 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The flag of this SA on NDEC or not.
        "
    ::= { hipsNDECSAListEntry 9 }


hipsNegotiateSaMode OBJECT-TYPE
    SYNTAX CryptomapType  
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The type of key used by the IPsec Phase-2 Tunnel.
        "
    ::= { hipsNDECSAListEntry 10 }

hipsExp_bytes OBJECT-TYPE
    SYNTAX Gauge 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object specifies the lifetime in bytes
        of the tunnels generated using this 
        policy specification."
    ::= { hipsNDECSAListEntry 11 }

hipsSoft_bytes OBJECT-TYPE
    SYNTAX Gauge 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object specifies the lifetime in bytes
        of the tunnels generated using this 
        policy specification."
    ::= { hipsNDECSAListEntry 12 }

hipsExp_timeout OBJECT-TYPE
    SYNTAX Gauge 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object specifies the lifetime in seconds
        of the tunnels generated using this 
        policy specification."
    ::= { hipsNDECSAListEntry 13 }

hipsSoft_timeout OBJECT-TYPE
    SYNTAX Gauge 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object specifies the lifetime in seconds
        of the tunnels generated using this 
        policy specification."
    ::= { hipsNDECSAListEntry 14 }

   
     



 hikeSATable OBJECT-TYPE
    SYNTAX SEQUENCE OF HikeSAEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "The table containing IKE SA entities 
        configured on NDEC by the operator.
        "
        
    ::= { huaweiNDEC 2 }

hikeSAEntry OBJECT-TYPE
    SYNTAX HikeSAEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "Each entry contains the attributes 
        associated with a single IKE SA entity."
    INDEX { hikeConn_id }
    ::= { hikeSATable 1 }

HikeSAEntry ::= SEQUENCE {
    hikeConn_id 	Integer32,
    hikePeerIpAddr 	IPSIpAddress,
    hikeFlag 		IKEStatus,
    hikePhase 		IKEPhase,
    hikeDoi 		IKESaDomain,
    hikeClearSA		TruthValue
     }

hikeConn_id OBJECT-TYPE
    SYNTAX Integer32(0..65535) 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The identify of IKE SA connection .
        This is also the index of this table."
    ::= { hikeSAEntry 1 }

hikePeerIpAddr OBJECT-TYPE
    SYNTAX IPSIpAddress 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The peer IP address of this IKE SA.
        "
    ::= { hikeSAEntry 2 }

hikeFlag OBJECT-TYPE
    SYNTAX IKEStatus
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The status of this IKE SA.
        "
    ::= { hikeSAEntry 3 }

hikePhase OBJECT-TYPE
    SYNTAX IKEPhase 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The phase of this IKE SA.
        "
    ::= { hikeSAEntry 4 }

hikeDoi OBJECT-TYPE
    SYNTAX IKESaDomain 
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The domain of this IKE SA
        "
    ::= { hikeSAEntry 5 }

hikeClearSA OBJECT-TYPE
    SYNTAX TruthValue 
    ACCESS read-write
    STATUS mandatory
    DESCRIPTION
        "Clear this IKE SA or not.
        "
    ::= { hikeSAEntry 6 }







hipsIKEPolicyTable OBJECT-TYPE
    SYNTAX SEQUENCE OF HipsIKEPolicyEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "The table containing the list of all
        ISAKMP policy entries configured by the operator."
    ::= { huaweiNDEC 3 }

hipsIKEPolicyEntry OBJECT-TYPE
    SYNTAX HipsIKEPolicyEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "Each entry contains the attributes 
        associated with a single ISAKMP
        Policy entry."
    INDEX { hipsIsakmpPolPriority }
    ::= { hipsIKEPolicyTable 1 }

HipsIKEPolicyEntry ::= SEQUENCE {
    hipsIsakmpPolPriority 	Integer32(0..65535),
    hipsIsakmpPolEncr 		IkeEncryptAlgo,
    hipsIsakmpPolHash 		IkeHashAlgo,
    hipsIsakmpPolAuth 		IkeAuthMethod,
    hipsIsakmpPolGroup 		DiffHellmanGrp,
    hipsIsakmpPolLifetime 	Gauge --HIKESALifetime
    }

hipsIsakmpPolPriority OBJECT-TYPE
    SYNTAX Integer32(0..65535)
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The priotity of this ISAKMP Policy entry.
        This is also the index of this table."
    ::= { hipsIKEPolicyEntry 1 }

hipsIsakmpPolEncr OBJECT-TYPE
    SYNTAX IkeEncryptAlgo
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The encryption transform specified by this 
        ISAKMP policy specification. The Internet Key Exchange
        (IKE) tunnels setup using this policy item would
        use the specified encryption transform to protect the
        ISAKMP PDUs."
    ::= { hipsIKEPolicyEntry 2 }

hipsIsakmpPolHash OBJECT-TYPE
    SYNTAX IkeHashAlgo
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The hash transform specified by this 
        ISAKMP policy specification. The IKE tunnels
        setup using this policy item would use the 
        specified hash transform to protect the
        ISAKMP PDUs."
    ::= { hipsIKEPolicyEntry 3 }

hipsIsakmpPolAuth OBJECT-TYPE
    SYNTAX IkeAuthMethod   
--    Rsyntax INTEGER {
--        none(1),
--        preSharedKey(2),
--        }
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The peer authentication mthod specified by
        this ISAKMP policy specification. If this policy
        entity is selected for negotiation with a peer,
        the local entity would authenticate the peer using 
        the method specified by this object."
    ::= { hipsIKEPolicyEntry 4 }

hipsIsakmpPolGroup OBJECT-TYPE
    SYNTAX DiffHellmanGrp
--    Rsyntax INTEGER {
--        none(1),
--        dhGroup1(2),
--        dhGroup2(3)
--        }
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object specifies the Oakley group used 
        for Diffie Hellman exchange in the Main Mode. 
        If this policy item is selected to negotiate
        Main Mode with an IKE peer, the local entity 
        chooses the group specified by this object to
        perform Diffie Hellman exchange with the
        peer."
    ::= { hipsIKEPolicyEntry 5 }

hipsIsakmpPolLifetime OBJECT-TYPE
    SYNTAX Gauge  --HIKESALifetime
--  Units
--    seconds
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object specifies the lifetime in seconds
        of the IKE tunnels generated using this 
        policy specification."
    ::= { hipsIKEPolicyEntry 6 }





hipsStaticCryptomapTable OBJECT-TYPE
    SYNTAX SEQUENCE OF HipsStaticCryptomapEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "The table is listing the member cryptomaps
        of the cryptomap sets that are configured
        on the managed entity."
    ::= { huaweiNDEC 4 }

hipsStaticCryptomapEntry OBJECT-TYPE
    SYNTAX HipsStaticCryptomapEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "Each entry contains the attributes 
        associated with a single static 
        (fully specified) cryptomap entry.
        This table does not include the members 
        of dynamic cryptomap sets that may be
        linked with the parent static cryptomap set."
    INDEX { hipsStaticCryptomapName,hipsStaticCryptomapSN }
    ::= { hipsStaticCryptomapTable 1 }

HipsStaticCryptomapEntry ::= SEQUENCE {   
    hipsStaticCryptomapName  		DisplayString,
    hipsStaticCryptomapSN 		Integer32(0..10000),
    hipsStaticCryptomapNegMode 		CryptomapType,
    hipsStaticCryptomapMatchAddr 	INTEGER(1..199),
    hipsStaticCryptomapPeerIpAddr 	IPSIpAddress,
    hipsStaticCryptomapTransforName 	DisplayString,  
    hipsStaticCryptomapLifetime 	HIpsecSALifetime,
    hipsStaticCryptomapLifesize 	HIpsecSALifesize,
    hipsStaticCryptomapLocalIpAddr 	IPSIpAddress, 
    hipsIfNameUsed  			DisplayString,
    hipsInAHSPI  			Gauge,
    hipsInESPSPI  			Gauge,
    hipsOutAHSPI  			Gauge,
    hipsOutESPSPI  			Gauge,
    hipsInAhHexKeyString  		DisplayString,
    hipsInEspCipherHexKeyString  	DisplayString,
    hipsInEspAuthenHexKeyString  	DisplayString,
    hipsInAhStringKeyString  		DisplayString,
    hipsInEspStringKeyString  		DisplayString,
    hipsOutAhHexKeyString  		DisplayString,
    hipsOutEspCipherHexKeyString  	DisplayString,
    hipsOutEspAuthenHexKeyString  	DisplayString,
    hipsOutAhStringKeyString  		DisplayString,
    hipsOutEspStringKeyString  		DisplayString
    }



hipsStaticCryptomapName OBJECT-TYPE
    SYNTAX DisplayString  
    --    Rsyntax OCTET STRING(SIZE(0..255))
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The name of the cryptomap entry in the 
        cryptomap set. This is the first index 
        component of this table."
    ::= { hipsStaticCryptomapEntry 1 }

hipsStaticCryptomapSN OBJECT-TYPE
    SYNTAX Integer32(0..65535)
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The sequence number of the cryptomap entry in the 
        cryptomap set. This is the second index component
        of this table."
    ::= { hipsStaticCryptomapEntry 2 }

hipsStaticCryptomapNegMode OBJECT-TYPE
    SYNTAX CryptomapType
--    Rsyntax INTEGER {
--        cryptomapTypeNONE(0),
--        cryptomapTypeMANUAL(1),
--        cryptomapTypeISAKMP(2),
--        }
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The type of the cryptomap entry. This can be an ISAKMP
        cryptomap or manual. "
    ::= { hipsStaticCryptomapEntry 3 }

hipsStaticCryptomapMatchAddr OBJECT-TYPE
    SYNTAX INTEGER(1..199)
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The access list number entered by the operatoir
        while creating this cryptomap. "
    ::= { hipsStaticCryptomapEntry 4 }

hipsStaticCryptomapPeerIpAddr OBJECT-TYPE
    SYNTAX IPSIpAddress
--    Rsyntax OCTET STRING(SIZE(4 ))
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The IP address of the current peer associated with 
        this IPSec policy item. Traffic that is protected by
        this cryptomap is protected by a tunnel that terminates
        at the device whose IP address is specified by this
        object."
    ::= { hipsStaticCryptomapEntry 5 }

hipsStaticCryptomapTransforName OBJECT-TYPE
    SYNTAX DisplayString
      --    Rsyntax OCTET STRING(SIZE(0..255))  
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The transform associated with this cryptomap 
         entry. "
    ::= { hipsStaticCryptomapEntry 6 }

hipsStaticCryptomapLifetime OBJECT-TYPE
    SYNTAX HIpsecSALifetime
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the lifetime of the IPSec
        Security Associations (SA) created using this IPSec policy
        entry. "
    ::= { hipsStaticCryptomapEntry 7 }

hipsStaticCryptomapLifesize OBJECT-TYPE
    SYNTAX HIpsecSALifesize
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the lifesize (maximum traffic
        in bytes that may be carried) of the IPSec SAs
        created using this IPSec policy entry. 
        "
    ::= { hipsStaticCryptomapEntry 8 }

hipsStaticCryptomapLocalIpAddr OBJECT-TYPE
    SYNTAX IPSIpAddress
--    Rsyntax  OCTET STRING(SIZE(4 | 16))
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the local IP address of the
        IPSec SAs created using this IPSec policy entry. 
        "
    ::= { hipsStaticCryptomapEntry 9 }
   
   
   hipsIfNameUsed OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the name of the
        interface  using this IPSec policy entry. 
        "
    ::= { hipsStaticCryptomapEntry 10 }


hipsInAHSPI OBJECT-TYPE
    SYNTAX Gauge
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the inbound AH SPI
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 11 }

hipsInESPSPI OBJECT-TYPE
    SYNTAX Gauge
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the inbound ESP SPI
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 12 }

hipsOutAHSPI OBJECT-TYPE
    SYNTAX Gauge
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the outbound AH SPI
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 13 }

hipsOutESPSPI OBJECT-TYPE
    SYNTAX Gauge
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the outbound ESP SPI
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 14 }

hipsInAhHexKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the inbound AH authentication key in hex
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 15 }

 hipsInEspCipherHexKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the inbound ESP authentication key in hex
       IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 16 }

 hipsInEspAuthenHexKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the inbound ESP authentication key in hex
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 17 }

  
 hipsInAhStringKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the inbound ESP authentication key in string
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 18 }
 hipsInEspStringKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the inbound ESP authentication key in string
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 19 }
 hipsOutAhHexKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the outbound AH authentication key in hex
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 20 }
 hipsOutEspCipherHexKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the outbound ESP authentication key in hex
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 21 }
 hipsOutEspAuthenHexKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the outbound ESP authentication key in hex
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 22 }
 hipsOutAhStringKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the outbound AH authentication key in string
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 23 }
   
  hipsOutEspStringKeyString OBJECT-TYPE
    SYNTAX DisplayString
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the outbound ESP authentication key in string
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsStaticCryptomapEntry 24 }
 
   
   



hipsTransformNameSetTable OBJECT-TYPE
    SYNTAX SEQUENCE OF HipsTransformNameSetEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "The table is transform set."
    ::= { huaweiNDEC 5 }

hipsTransformNameSetEntry OBJECT-TYPE
    SYNTAX HipsTransformNameSetEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "Each entry contains the attributes of each transform.
        "
    INDEX { hipsTransformName }
    ::= { hipsTransformNameSetTable 1 }

HipsTransformNameSetEntry ::= SEQUENCE {  
    hipsTransformName  		DisplayString,
    hipsTransformMode 		TransFormMode,
    hipsTransformProtocol 	INTEGER,
    hipsAH 			AuthAlgo, 
    hipsEesp_en  		EncryptAlgo,
    hipsEsp_au 			AuthAlgo,
    hipsIsCardTransform  	TruthValue
    }


hipsTransformName OBJECT-TYPE
    SYNTAX DisplayString  
    --    Rsyntax OCTET STRING(SIZE(0..255))
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The name of the transform entry . 
        "
    ::= { hipsTransformNameSetEntry 1 }

hipsTransformMode OBJECT-TYPE
    SYNTAX TransFormMode
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The mode of the transform entry ."
    ::= { hipsTransformNameSetEntry 2 }

hipsTransformProtocol OBJECT-TYPE
    SYNTAX INTEGER {
                    ipsec_none(1),
                    ipsec_ah_new(2),
                    ipsec_ah_esp_new(3),
                    ipsec_ah_esp_old(4),	
                    ipsec_ah_old(5),	
                    ipsec_esp_new(6),	
                    ipsec_esp_ah_new(7),	
                    ipsec_esp_ah_old(8),	
                    ipsec_esp_old(9)
                    }
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "Transform protocol . "
    ::= { hipsTransformNameSetEntry 3 }

hipsAH OBJECT-TYPE
    SYNTAX AuthAlgo
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "Algorithm of AH protocol . "
    ::= { hipsTransformNameSetEntry 4 }


hipsEesp_en OBJECT-TYPE
    SYNTAX EncryptAlgo 
	--Rsyntax ::= INTEGER {
        --none(1),       
        --des(2),
        --3des(3),
        --blowfish(4),
        --cast(5),
        --skipjack(6),
        --}    
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The encryption algorithm of ESP protocol . "
    ::= { hipsTransformNameSetEntry 5 }

hipsEsp_au OBJECT-TYPE
    SYNTAX AuthAlgo
      --    Rsyntax  INTEGER {
       --      none(1),
         --    hmacMd5(2),
         --    hmacSha(3),
         --    hash(4)
        --    }  
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The authentication algorithm  of ESP protocol . "
    ::= { hipsTransformNameSetEntry 6 }


hipsIsCardTransform OBJECT-TYPE
    SYNTAX TruthValue
--    Rsyntax INTEGER {
--        true(1),  
--        false(2)  
--        }
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "This object identifies the flag  of the NDEC is used for
        IPSec SAs created using this IPSec policy entry. 
       "
    ::= { hipsTransformNameSetEntry 7}


 




hipsNDECInfoTable OBJECT-TYPE
    SYNTAX SEQUENCE OF HipsNDECInfoEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "The table is NDEC set."
    ::= { huaweiNDEC 6 }

hipsNDECInfoEntry OBJECT-TYPE
    SYNTAX HipsNDECInfoEntry
    ACCESS not-accessible
    STATUS mandatory
    DESCRIPTION
        "Each entry contains the attributes of each NDEC.
        "
    INDEX { hipsCardSlot }
    ::= { hipsNDECInfoTable 1 }

HipsNDECInfoEntry ::= SEQUENCE {   
    hipsCardSlot 		INTEGER(0..7),
    hipsInPac 			Gauge,
    hipsOutPac 			Gauge, 
    hipsInByte  		Gauge,
    hipsOutByte 		Gauge,
    hipsDropPac  		Gauge,
    hipsCardStatus      	ECStatus,
    hipsCardHardVer     	DisplayString,
    hipsCardSoftVer     	DisplayString,
    hipsCardCPLDVer     	DisplayString,
    hipsCardOperate     	CardOperator,
    hipsDropPacInUnitTime  	Gauge    
    }


hipsCardSlot OBJECT-TYPE
    SYNTAX INTEGER(0..7)
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The slot number of NDEC ."
    ::= { hipsNDECInfoEntry 1 }

hipsInPac OBJECT-TYPE
    SYNTAX Gauge
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The total packets of the NDEC has recieved."
    ::= { hipsNDECInfoEntry 2 }

hipsOutPac OBJECT-TYPE
    SYNTAX Gauge
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The total packets of the NDEC has sent."
    ::= { hipsNDECInfoEntry 3 }

hipsInByte OBJECT-TYPE
    SYNTAX Gauge
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The total bytes of the NDEC has sent."
    ::= { hipsNDECInfoEntry 4 }

hipsOutByte OBJECT-TYPE
    SYNTAX Gauge
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The total bytes of the NDEC has sent."
    ::= { hipsNDECInfoEntry 5 }

hipsDropPac OBJECT-TYPE
    SYNTAX Gauge
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The total packets of the NDEC has droped ."
    ::= { hipsNDECInfoEntry 6 }

hipsCardStatus OBJECT-TYPE
    SYNTAX ECStatus
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The state of the NDEC ."
    ::= { hipsNDECInfoEntry 7 }

hipsCardHardVer OBJECT-TYPE
    SYNTAX DisplayString
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The version of the NDEC's  hardware."
    ::= { hipsNDECInfoEntry 8 }

hipsCardSoftVer OBJECT-TYPE
    SYNTAX DisplayString
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The version of the NDEC's  software."
    ::= { hipsNDECInfoEntry 9 }

hipsCardCPLDVer OBJECT-TYPE
    SYNTAX DisplayString
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The version of the NDEC's CPLD."
    ::= { hipsNDECInfoEntry 10 }
hipsCardOperate OBJECT-TYPE
    SYNTAX CardOperator
--  Units
--    Integral Units
    ACCESS read-write
    STATUS mandatory
    DESCRIPTION
        "The version of the NDEC's CPLD.
        cardClearStatic(1)： 加密卡统计信息的清除
		cardReset(2)： 加密卡复位
		cardSynTime(3)： 同步加密卡的时钟
		cardSysLogOn(4)：打开加密卡日志
		cardSysLogOff(5)：关闭加密卡日志
		cardSysLogClear(6)：清楚加密卡日志"
    ::= { hipsNDECInfoEntry 11 }

hipsDropPacInUnitTime OBJECT-TYPE
    SYNTAX Gauge
--  Units
--    Integral Units
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The total packets of the NDEC has droped in Unit time."
    ::= { hipsNDECInfoEntry 12 }




hipsNDECLeaf OBJECT IDENTIFIER ::= { huaweiNDEC 7 }  

hipsNDECConnections OBJECT-TYPE
    SYNTAX INTEGER
    ACCESS read-only
    STATUS mandatory
    DESCRIPTION
        "The total connections of the system has now."
    ::= { hipsNDECLeaf 1 }

hipsNDECBackup OBJECT-TYPE
    SYNTAX INTEGER
    ACCESS read-write
    STATUS mandatory
    DESCRIPTION
        "The flag that NDEC using backup ."
    ::= { hipsNDECLeaf 2 }
                              
                             
                             
 
hipsTraps OBJECT IDENTIFIER ::= { huaweiNDEC 8 }

hipsNDECNormaResetTrap NOTIFICATION-TYPE
     OBJECTS { hipsCardSlot,hipsCardHardVer,
     hipsCardSoftVer,hipsCardCPLDVer      }
     STATUS  current
     DESCRIPTION
	"This trap is generated when a NDEC card's state changed."
    ::= { hipsTraps 1 }

hipsNDECStateChangeTrap NOTIFICATION-TYPE
     OBJECTS { hipsCardSlot,hipsCardStatus       }
     STATUS  current
     DESCRIPTION
	"This trap is generated when a NDEC card reset ."
    ::= { hipsTraps 2 }

hipsNDECFlowTrap NOTIFICATION-TYPE
     OBJECTS { hipsCardSlot,hipsDropPacInUnitTime   }
     STATUS  current
     DESCRIPTION
	"This trap is generated when a NDEC card is overloaded ."
    ::= { hipsTraps 3 }

--hipsNDECNormaResetTrap TRAP-TYPE
-- NDEC'S STATE CHANGE trap
--    ENTERPRISE hipsTrapGroup
--    VARIABLES {
--        hipsNDECSlotNum }
--  Status
--    mandatory
--    DESCRIPTION
--        "This trap is generated when a NDEC card's state changed.
--       "
--    ::= 1

--hipsNDECStateChangeTrap TRAP-TYPE
-- NDEC reset  trap
--    ENTERPRISE hipsTrapGroup
--    VARIABLES {
--        hipsNDECSlotNum,hipsCardStatus }
--  Status
--    mandatory
--    DESCRIPTION
--        "This trap is generated when a NDEC card reset .
--       "
--    ::= 1


END

