--==================================================================
-- Copyright (C) 2021 by  HUAWEI TECHNOLOGIES. All rights reserved.
--
-- Description: HUAWEI OPEN APPLICATION SYSTEM MIB
-- Reference:
-- Version: V2.00
-- History:
-- <author>,  <date>,  <contents>
-- dpl       2021-04-29
-- ==================================================================

-- ==================================================================
--
-- Varibles and types are imported
--
-- ==================================================================
    HUAWEI-OPEN-APPLICATION-SYSTEM-MIB DEFINITIONS ::= BEGIN

        IMPORTS
            hwDatacomm
                FROM HUAWEI-MIB
            OBJECT-GROUP, MODULE-COMPLIANCE, NOTIFICATION-GROUP
                FROM SNMPv2-CONF
            Unsigned32, Integer32, OBJECT-TYPE, MODULE-IDENTITY,
            NOTIFICATION-TYPE
                FROM SNMPv2-SMI;

        hwOAS MODULE-IDENTITY
            LAST-UPDATED "202104290000Z"
            ORGANIZATION
                "Huawei Technologies Co.,Ltd."
            CONTACT-INFO
                "Huawei Industrial Base
                  Bantian, Longgang
                   Shenzhen 518129
                   People's Republic of China
                   Website: http://www.huawei.com
                   Email: support@huawei.com
                 "
            DESCRIPTION
                "The mib file includes the information of device.hwDatacomm(25).hwOASMIB"
         
         REVISION "202104290000Z"
         DESCRIPTION
            "Modify the data type of hwOASEnableFaultReason."
         REVISION "202011050000Z"
         DESCRIPTION
            "Describe trap messages."

            ::= { hwDatacomm 362 }



--
-- Node definitions
--

--  ==================================================================
--
-- ======================= definition begin =========================
--
-- ==================================================================
        -- 1.3.6.1.4.1.2011.5.25.362.1
        hwOASMibObjects OBJECT IDENTIFIER ::= { hwOAS 1 }

        -- 1.3.6.1.4.1.2011.5.25.362.1.1
        hwOASApplicationTable OBJECT-TYPE
            SYNTAX SEQUENCE OF HwOASApplicationEntry
            MAX-ACCESS not-accessible
            STATUS current
            DESCRIPTION
                "This table describes application trap parameters."
            ::= { hwOASMibObjects 1 }

        -- 1.3.6.1.4.1.2011.5.25.362.1.1.1
        hwOASApplicationEntry OBJECT-TYPE
            SYNTAX HwOASApplicationEntry
            MAX-ACCESS not-accessible
            STATUS current
            DESCRIPTION
                "Application entry."
            INDEX { hwOASName, hwOASSlot, hwOASCpuID }
            ::= { hwOASApplicationTable 1 }

        HwOASApplicationEntry ::=
            SEQUENCE {
                hwOASName
                    OCTET STRING,
                hwOASSlot
                    OCTET STRING,
                hwOASCpuID
                    Gauge32,
                hwOASEnableFaultReason
                    OCTET STRING
            }

        hwOASName OBJECT-TYPE
            SYNTAX OCTET STRING
            MAX-ACCESS accessible-for-notify
            STATUS current
            DESCRIPTION
                "Application name."
            ::= { hwOASApplicationEntry 1 }

        hwOASSlot OBJECT-TYPE
            SYNTAX OCTET STRING
            MAX-ACCESS accessible-for-notify
            STATUS current
            DESCRIPTION
                "The slot."
            ::= { hwOASApplicationEntry 2 }

        hwOASCpuID OBJECT-TYPE
            SYNTAX Gauge32
            MAX-ACCESS accessible-for-notify
            STATUS current
            DESCRIPTION
                "CPU ID."
            ::= { hwOASApplicationEntry 3 }

        hwOASEnableFaultReason OBJECT-TYPE
            SYNTAX OCTET STRING
            MAX-ACCESS accessible-for-notify
            STATUS current
            DESCRIPTION
                "This variable indicates the reason why the application fails to start. It has the following values:
                1. oasApplicationStartFault indicating that the application fails to be started.
                2. oasApplicationRunFault indicating that the application is restarted due to a running fault."
            ::= { hwOASApplicationEntry 4 }

        -- 1.3.6.1.4.1.2011.5.25.362.2
        hwOASNotifications OBJECT IDENTIFIER ::= { hwOAS 2 }

        -- 1.3.6.1.4.1.2011.5.25.362.2.1
        hwOASApplicationFault NOTIFICATION-TYPE
            OBJECTS { hwOASName, hwOASSlot, hwOASCpuID, hwOASEnableFaultReason }
            STATUS current
            DESCRIPTION
                "The application fails to be started or is restarted due to a running fault."
            ::= { hwOASNotifications 1 }

        -- 1.3.6.1.4.1.2011.5.25.362.2.1
        hwOASApplicationFaultResume NOTIFICATION-TYPE
            OBJECTS { hwOASName, hwOASSlot, hwOASCpuID, hwOASEnableFaultReason }
            STATUS current
            DESCRIPTION
                "The application is restored after being restarted due to a startup failure or a running fault."
            ::= { hwOASNotifications 2 }

        -- 1.3.6.1.4.1.2011.5.25.362.3
        hwOASConformance OBJECT IDENTIFIER ::= { hwOAS 3 }

        -- 1.3.6.1.4.1.2011.5.25.362.3.1
        hwOASCompliances OBJECT IDENTIFIER ::= { hwOASConformance 1 }

        -- 1.3.6.1.4.1.2011.5.25.362.3.1.1
        hwOASCompliance MODULE-COMPLIANCE
            STATUS current
            DESCRIPTION
                "The compliance statement for systems supporting
                the HUAWEI-OPEN-APPLICATION-SYSTEM-MIB."
            MODULE -- this module
                MANDATORY-GROUPS { hwOASNotificationGroup, hwOASGroup }
            ::= { hwOASCompliances 1 }

        -- 1.3.6.1.4.1.2011.5.25.362.3.2
        hwOASGroups OBJECT IDENTIFIER ::= { hwOASConformance 2 }

        -- 1.3.6.1.4.1.2011.5.25.362.3.2.1
        hwOASGroup OBJECT-GROUP
            OBJECTS { hwOASName, hwOASSlot, hwOASCpuID, hwOASEnableFaultReason }
            STATUS current
            DESCRIPTION
                "A collection of the application."
            ::= { hwOASGroups 1 }

        -- 1.3.6.1.4.1.2011.5.25.362.3.2.2
        hwOASNotificationGroup NOTIFICATION-GROUP
            NOTIFICATIONS { hwOASApplicationFault, hwOASApplicationFaultResume }
            STATUS current
            DESCRIPTION
                "A collection of notification about application failures."
            ::= { hwOASGroups 2 }

    END

--
-- HUAWEI-OPEN-APPLICATION-SYSTEM-MIB.mib
--
