-- =========================================================== -- Copyright (C) 2009 by HUAWEI TECHNOLOGIES. All rights reserved. -- -- Description: HUAWEI-NAT-EXT-MIB -- Reference: -- Version: 1.0 -- History: -- =========================================================== HUAWEI-NAT-EXT-MIB DEFINITIONS ::= BEGIN IMPORTS hwDatacomm FROM HUAWEI-MIB ifIndex FROM IF-MIB OBJECT-GROUP, MODULE-COMPLIANCE, NOTIFICATION-GROUP FROM SNMPv2-CONF TimeTicks, IpAddress, Integer32, Unsigned32, Gauge32, Counter32, OBJECT-TYPE, MODULE-IDENTITY, NOTIFICATION-TYPE FROM SNMPv2-SMI DisplayString, TEXTUAL-CONVENTION FROM SNMPv2-TC; -- November 02, 2009 at 20:30 GMT hwNatExtMIB MODULE-IDENTITY LAST-UPDATED "200911022030Z" -- November 02, 2009 at 20:30 GMT ORGANIZATION "Huawei Technologies Co., Ltd. " CONTACT-INFO " NanJing Institute,Huawei Technologies Co.,Ltd. HuiHong Mansion,No.91 BaiXia Rd. NanJing, P.R. of China Zipcode:210001 Http://www.huawei.com E-mail:support@huawei.com " DESCRIPTION "The MIB contains objects of S9300 NAT features , referencing the RFC4004." ::= { hwDatacomm 226 } -- -- Textual conventions -- NATProtocolType ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "A list of protocols that are affected by NAT. Inclusion of values is not intended to imply that those protocols need be supported." SYNTAX INTEGER { other(1), icmp(2), udp(3), tcp(4) } -- -- Node definitions -- hwNatExtMIBNotifications OBJECT IDENTIFIER ::= { hwNatExtMIB 1 } hwNatPacketDiscard NOTIFICATION-TYPE OBJECTS { hwNatExtIfName } STATUS current DESCRIPTION "This notification is generated when IP packets are discarded by the NAT function; e.g., due to lack of mapping space when NAT is out of addresses or ports." ::= { hwNatExtMIBNotifications 1 } hwNatExtMIBObjects OBJECT IDENTIFIER ::= { hwNatExtMIB 2 } hwNatBind OBJECT IDENTIFIER ::= { hwNatExtMIBObjects 1 } hwNatAddrBindNumberOfEntries OBJECT-TYPE SYNTAX Gauge32 MAX-ACCESS read-only STATUS current DESCRIPTION "This object maintains a count of the number of entries that currently exist in the hwNatAddrBindTable." ::= { hwNatBind 1 } hwNatAddrBindTable OBJECT-TYPE SYNTAX SEQUENCE OF HwNatAddrBindEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table holds information about the currently active NAT BINDs." ::= { hwNatBind 2 } hwNatAddrBindEntry OBJECT-TYPE SYNTAX HwNatAddrBindEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Each entry in the NAT BIND table holds information about a NAT BIND that is currently active." INDEX { ifIndex, hwNatAddrBindQueryVrfName, hwNatAddrBindQueryAddr, hwNatAddrBindType} ::= { hwNatAddrBindTable 1 } HwNatAddrBindEntry ::= SEQUENCE { hwNatAddrBindQueryVrfName DisplayString, hwNatAddrBindQueryAddr IpAddress, hwNatAddrBindType INTEGER, hwNatAddrBindMappedVrfName DisplayString, hwNatAddrBindMappedAddr IpAddress, hwNatAddrBindId Unsigned32, hwNatAddrBindSessionCount Gauge32, hwNatAddrBindCurrentIdleTime TimeTicks, hwNatAddrBindInTranslate Counter32, hwNatAddrBindOutTranslate Counter32 } hwNatAddrBindQueryVrfName OBJECT-TYPE SYNTAX DisplayString (SIZE (1..31)) MAX-ACCESS not-accessible STATUS current DESCRIPTION "Vrf name for the hwNatAddrQueryAddr." ::= { hwNatAddrBindEntry 1 } hwNatAddrBindQueryAddr OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object represents the query ip address, which can be local address or global address, depending on the value of hwNatAddrBindType." ::= { hwNatAddrBindEntry 2 } hwNatAddrBindType OBJECT-TYPE SYNTAX INTEGER { natOutbound(1), natServer(2), staticNatLocalToGlobal(3), staticNatGlobalToLocal(4) } MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object represents the type of the BIND." ::= { hwNatAddrBindEntry 3 } hwNatAddrBindMappedVrfName OBJECT-TYPE SYNTAX DisplayString (SIZE (1..31)) MAX-ACCESS read-only STATUS current DESCRIPTION "Vrf name for the hwNatAddrBindMappedAddr." ::= { hwNatAddrBindEntry 4 } hwNatAddrBindMappedAddr OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION "This object represents the ip address that maps to the hwNatAddrBindQueryAddr." ::= { hwNatAddrBindEntry 5 } hwNatAddrBindId OBJECT-TYPE SYNTAX Unsigned32 MAX-ACCESS read-only STATUS current DESCRIPTION "This object represents a BIND id that is dynamically assigned to each BIND by a NAT enabled device. Each BIND is represented by a unique BIND id across both, the Address Bind and Address-Port Bind tables." ::= { hwNatAddrBindEntry 8 } hwNatAddrBindSessionCount OBJECT-TYPE SYNTAX Gauge32 MAX-ACCESS read-only STATUS current DESCRIPTION "Number of sessions currently using this BIND." ::= { hwNatAddrBindEntry 9 } hwNatAddrBindCurrentIdleTime OBJECT-TYPE SYNTAX TimeTicks MAX-ACCESS read-only STATUS current DESCRIPTION "At any given instance of time, this object indicates the time that this BIND has been idle with no sessions attached to it. The value represented by this object is of relevance only when the value of Maximum Idle time (hwNatConfMaxBindIdleTime) is non-zero." ::= { hwNatAddrBindEntry 10 } hwNatAddrBindInTranslate OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of inbound packets that were translated as per this BIND entry." ::= { hwNatAddrBindEntry 11 } hwNatAddrBindOutTranslate OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of outbound packets that were translated as per this BIND entry." ::= { hwNatAddrBindEntry 12 } hwNatAddrPortBindNumberOfEntries OBJECT-TYPE SYNTAX Gauge32 MAX-ACCESS read-only STATUS current DESCRIPTION "This object maintains a count of the number of entries that currently exist in the hwNatAddrPortBindTable." ::= { hwNatBind 3 } hwNatAddrPortBindTable OBJECT-TYPE SYNTAX SEQUENCE OF HwNatAddrPortBindEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table holds information about the currently active NAPT BINDs." ::= { hwNatBind 4 } hwNatAddrPortBindEntry OBJECT-TYPE SYNTAX HwNatAddrPortBindEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Each entry in the this table holds information a NAPT BIND that is currently active." INDEX { ifIndex, hwNatAddrPortBindQueryVrfName, hwNatAddrPortBindQueryAddr, hwNatAddrPortBindQueryProtocol, hwNatAddrPortBindQueryPort, hwNatAddrPortBindType} ::= { hwNatAddrPortBindTable 1 } HwNatAddrPortBindEntry ::= SEQUENCE { hwNatAddrPortBindQueryVrfName DisplayString, hwNatAddrPortBindQueryAddr IpAddress, hwNatAddrPortBindQueryProtocol Integer32, hwNatAddrPortBindQueryPort Integer32, hwNatAddrPortBindType INTEGER, hwNatAddrPortBindMappedVrfName DisplayString, hwNatAddrPortBindMappedAddr IpAddress, hwNatAddrPortBindMappedPort Integer32, hwNatAddrPortBindId Unsigned32, hwNatAddrPortBindSessionCount Gauge32, hwNatAddrPortBindCurrentIdleTime TimeTicks, hwNatAddrPortBindInTranslate Counter32, hwNatAddrPortBindOutTranslate Counter32 } hwNatAddrPortBindQueryVrfName OBJECT-TYPE SYNTAX DisplayString (SIZE (1..31)) MAX-ACCESS not-accessible STATUS current DESCRIPTION "Vrf name for the hwNatAddrPortBindQueryAddr." ::= { hwNatAddrPortBindEntry 1 } hwNatAddrPortBindQueryAddr OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object represents the query ip address, which can be local address or global address, depending on the value of hwNatAddrBindType." ::= { hwNatAddrPortBindEntry 2 } hwNatAddrPortBindQueryProtocol OBJECT-TYPE SYNTAX Integer32 (1..255) MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object specifies a protocol identifier." ::= { hwNatAddrPortBindEntry 3 } hwNatAddrPortBindQueryPort OBJECT-TYPE SYNTAX Integer32 (0..65535) MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object represents the query port number, which can be local port number or global port number, depending on the value of hwNatAddrPortBindType.." ::= { hwNatAddrPortBindEntry 4 } hwNatAddrPortBindType OBJECT-TYPE SYNTAX INTEGER { natOutbound(1), natServer(2), staticPatLocalToGlobal(3), staticPatGlobalToLocal(4) } MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object represents the type of the BIND. " ::= { hwNatAddrPortBindEntry 5 } hwNatAddrPortBindMappedVrfName OBJECT-TYPE SYNTAX DisplayString (SIZE (1..31)) MAX-ACCESS read-only STATUS current DESCRIPTION "Vrf name for the hwNatAddrPortBindMappedAddr." ::= { hwNatAddrPortBindEntry 6 } hwNatAddrPortBindMappedAddr OBJECT-TYPE SYNTAX IpAddress MAX-ACCESS read-only STATUS current DESCRIPTION "This object represents the address maps to the hwNatAddrPortBindQueryAddr." ::= { hwNatAddrPortBindEntry 7 } hwNatAddrPortBindMappedPort OBJECT-TYPE SYNTAX Integer32 (0..65535) MAX-ACCESS read-only STATUS current DESCRIPTION "This object represents the port number that, in conjunction with hwNatAddrPortBindMappedAddr, maps to the hwNatAddrPortBindQueryPort ." ::= { hwNatAddrPortBindEntry 8 } hwNatAddrPortBindId OBJECT-TYPE SYNTAX Unsigned32 MAX-ACCESS read-only STATUS current DESCRIPTION "This object represents a BIND id that is dynamically assigned to each BIND by a NAT enabled device. Each BIND is represented by a unique BIND id across both, the Address Bind and Address-Port Bind tables." ::= { hwNatAddrPortBindEntry 10 } hwNatAddrPortBindSessionCount OBJECT-TYPE SYNTAX Gauge32 MAX-ACCESS read-only STATUS current DESCRIPTION "Number of sessions currently using this BIND." ::= { hwNatAddrPortBindEntry 12 } hwNatAddrPortBindCurrentIdleTime OBJECT-TYPE SYNTAX TimeTicks MAX-ACCESS read-only STATUS current DESCRIPTION "At any given instance of time, this object indicates the time that this BIND has been idle with no sessions attached to it. The value represented by this object is of relevance only when the value of Maximum Idle time (hwNatConfMaxBindIdleTime) is non-zero." ::= { hwNatAddrPortBindEntry 13 } hwNatAddrPortBindInTranslate OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of inbound packets that were translated as per this BIND entry." ::= { hwNatAddrPortBindEntry 14 } hwNatAddrPortBindOutTranslate OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of outbound packets that were translated as per this BIND entry." ::= { hwNatAddrPortBindEntry 15 } hwNatExtIfTable OBJECT-TYPE SYNTAX SEQUENCE OF HwNatExtIfEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table holds information about the currently active interfaces." ::= { hwNatBind 5 } hwNatExtIfEntry OBJECT-TYPE SYNTAX HwNatExtIfEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Each entry in the this table holds information about an interface that is currently active." INDEX { hwNatExtIfName } ::= { hwNatExtIfTable 1 } HwNatExtIfEntry ::= SEQUENCE { hwNatExtIfName OCTET STRING } hwNatExtIfName OBJECT-TYPE SYNTAX OCTET STRING (SIZE (1..47)) MAX-ACCESS read-only STATUS current DESCRIPTION "This object represents the name of an interface." ::= { hwNatExtIfEntry 1 } hwNatStatistics OBJECT IDENTIFIER ::= { hwNatExtMIBObjects 2 } hwNatProtocolStatsTable OBJECT-TYPE SYNTAX SEQUENCE OF HwNatProtocolStatsEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "The (conceptual) table containing per protocol NAT statistics." ::= { hwNatStatistics 1 } hwNatProtocolStatsEntry OBJECT-TYPE SYNTAX HwNatProtocolStatsEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "An entry (conceptual row) containing NAT statistics pertaining to a particular protocol." INDEX { hwNatProtocolStatsName } ::= { hwNatProtocolStatsTable 1 } HwNatProtocolStatsEntry ::= SEQUENCE { hwNatProtocolStatsName NATProtocolType, hwNatProtocolStatsInTranslate Counter32, hwNatProtocolStatsOutTranslate Counter32, hwNatProtocolStatsRejectCount Counter32 } hwNatProtocolStatsName OBJECT-TYPE SYNTAX NATProtocolType MAX-ACCESS not-accessible STATUS current DESCRIPTION "This object represents the protocol pertaining to which statistics are reported." ::= { hwNatProtocolStatsEntry 1 } hwNatProtocolStatsInTranslate OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of inbound packets, pertaining to the protocol identified by hwNatProtocolStatsName, that underwent NAT." ::= { hwNatProtocolStatsEntry 2 } hwNatProtocolStatsOutTranslate OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of outbound packets, pertaining to the protocol identified by hwNatProtocolStatsName, that underwent NAT." ::= { hwNatProtocolStatsEntry 3 } hwNatProtocolStatsRejectCount OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "The number of packets, pertaining to the protocol identified by hwNatProtocolStatsName, that had to be rejected/dropped due to lack of resources. These rejections could be due to session timeout, resource unavailability etc." ::= { hwNatProtocolStatsEntry 4 } hwNatInterfaceStatsTable OBJECT-TYPE SYNTAX SEQUENCE OF HwNatInterfaceStatsEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "This table augments the hwNatInterfaceTable and provides statistics information pertaining to the specified interface." ::= { hwNatStatistics 2 } hwNatInterfaceStatsEntry OBJECT-TYPE SYNTAX HwNatInterfaceStatsEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Each entry of the hwNatInterfaceStatsTable represents stats pertaining to one interface, which is identified by its InterfaceIndex." INDEX { ifIndex } ::= { hwNatInterfaceStatsTable 1 } HwNatInterfaceStatsEntry ::= SEQUENCE { hwNatInterfacePktsIn Counter32, hwNatInterfacePktsOut Counter32 } hwNatInterfacePktsIn OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "Number of packets received on this interface that were translated." ::= { hwNatInterfaceStatsEntry 1 } hwNatInterfacePktsOut OBJECT-TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION "Number of translated packets that were sent out this interface." ::= { hwNatInterfaceStatsEntry 2 } hwNATSessionCntTable OBJECT-TYPE SYNTAX SEQUENCE OF HwNATSessionCntEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A table for showing nat session table number." ::= { hwNatStatistics 3 } hwNATSessionCntEntry OBJECT-TYPE SYNTAX HwNATSessionCntEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A entry for showing nat session table number." INDEX { hwNATSlotIndex } ::= { hwNATSessionCntTable 1 } HwNATSessionCntEntry ::= SEQUENCE { hwNATSlotIndex INTEGER, hwNATSessionCnt Unsigned32 } hwNATSlotIndex OBJECT-TYPE SYNTAX INTEGER (0..32) MAX-ACCESS read-only STATUS current DESCRIPTION " Slot index that identifies the physical position of a spu board that support NAT. " ::= { hwNATSessionCntEntry 1 } hwNATSessionCnt OBJECT-TYPE SYNTAX Unsigned32 MAX-ACCESS read-only STATUS current DESCRIPTION "NAT session number of the selected slot" ::= { hwNATSessionCntEntry 2 } -- Conformance information hwNatExtMIBConformance OBJECT IDENTIFIER ::= { hwNatExtMIB 4 } hwNatExtMIBCompliances OBJECT IDENTIFIER ::= { hwNatExtMIBConformance 1 } -- this module hwNatExtMIBCompliance MODULE-COMPLIANCE STATUS current DESCRIPTION "The compliance statement for devices running NAT." MODULE -- this module MANDATORY-GROUPS { hwNatBindGroup } ::= { hwNatExtMIBCompliances 1 } hwNatExtMIBGroups OBJECT IDENTIFIER ::= { hwNatExtMIBConformance 2 } hwNatNotificationGroup NOTIFICATION-GROUP NOTIFICATIONS { hwNatPacketDiscard } STATUS current DESCRIPTION "A collection of notifications generated by devices supporting this MIB." ::= { hwNatExtMIBGroups 1 } hwNatBindGroup OBJECT-GROUP OBJECTS { hwNatAddrBindNumberOfEntries, hwNatAddrBindId, hwNatAddrBindSessionCount, hwNatAddrBindCurrentIdleTime, hwNatAddrBindInTranslate, hwNatAddrBindOutTranslate, hwNatAddrPortBindNumberOfEntries, hwNatAddrPortBindId, hwNatAddrPortBindSessionCount, hwNatAddrPortBindCurrentIdleTime, hwNatAddrPortBindInTranslate, hwNatAddrPortBindOutTranslate, hwNatAddrBindMappedAddr, hwNatAddrBindMappedVrfName, hwNatAddrPortBindMappedPort, hwNatAddrPortBindMappedAddr, hwNatAddrPortBindMappedVrfName } STATUS current DESCRIPTION "A collection of BIND-related objects required to support management of devices supporting NAT." ::= { hwNatExtMIBGroups 2 } hwNatStatsGroup OBJECT-GROUP OBJECTS { hwNatProtocolStatsInTranslate, hwNatProtocolStatsOutTranslate, hwNatProtocolStatsRejectCount, hwNatInterfacePktsIn, hwNatInterfacePktsOut } STATUS current DESCRIPTION "A collection of NAT statistics related objects required to support troubleshooting/monitoring NAT operation." ::= { hwNatExtMIBGroups 3 } hwNatExtIfGroup OBJECT-GROUP OBJECTS { hwNatExtIfName } STATUS current DESCRIPTION "Description." ::= { hwNatExtMIBGroups 4 } END -- -- HUAWEI-NAT-EXT-MIB.mib --