-- *****************************************************************
-- NETGEAR's CUSTOM ROUTER MIB: MIB with custom objects for NETGEAR
--   
-- September 12, 2013 Sameer Dubey
--   
-- Copyright (c) 2013 by NETGEAR
--
-- All rights reserved.
--
-- TODO: Use standard template defined for MIBs
--   
-- ****************************************************************


NETGEAR-CUSTOM-ROUTER-MIB DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY,
    OBJECT-IDENTITY,
	NOTIFICATION-TYPE,
	Counter32,
    enterprises,
	IpAddress,
	TimeTicks
		FROM SNMPv2-SMI
	RowStatus,
	DisplayString, 
	PhysAddress
		FROM SNMPv2-TC;

netgear      OBJECT IDENTIFIER ::= { enterprises 4526 }
Router       OBJECT IDENTIFIER ::= { netgear 2 }

netgear-custom-router MODULE-IDENTITY
    LAST-UPDATED    "201309120000Z"
    ORGANIZATION    "SIFY"
    CONTACT-INFO
        "Shakir Hussain

         E-mail: shussain@netgear.com."
    DESCRIPTION
        "MIB with custom objects of NETGEAR. 
         TODO 1: Need a better definition - Can I say these objects are for 
                 Numericable.
         TODO 2: Replace 999 with a custom router name. Is this specific to
                 a single router SKU?. We can change the name."
    ::= { Router 9999 }



--
-- Define the groups
--

ngCWireless OBJECT-IDENTITY
    STATUS          current
    DESCRIPTION
        "This is the parent object to store all 
         wireless related objects."
    ::= { netgear-custom-router 1 }


ngCMobileConfig OBJECT-IDENTITY
    STATUS          current
    DESCRIPTION
        "This is the parent object to store all 
         Mobile related objects."
    ::= { netgear-custom-router 2 }


ngC3GMobileStats OBJECT-IDENTITY
    STATUS          current
    DESCRIPTION
        "This is the parent object to store all 
         Mobile related objects."
    ::= { netgear-custom-router 3 }


ngCLTEStats OBJECT-IDENTITY
    STATUS          current
    DESCRIPTION
        "This is the parent object to store all 
         Mobile related objects."
    ::= { netgear-custom-router 4 }




-- ************************************************************
-- ************************************************************
--
-- Custom group of wireless-related objects
--
-- ************************************************************
-- ************************************************************

ngCWTable OBJECT-TYPE
	SYNTAX			  SEQUENCE OF NgCWTEntry
	MAX-ACCESS		not-accessible
	STATUS			  current
	DESCRIPTION
		"Hardware serial number of the device. This table has only
     three rows: row 0 is for the primary network and row 1 is
     for 5G network and row 2 for Guest Network. The rows cannot be deleted or added.
     Rows could be modified."
	::= { ngCWireless 1 }

ngCWTEntry OBJECT-TYPE
	SYNTAX			  NgCWTEntry
	MAX-ACCESS		not-accessible
	STATUS			  current
	DESCRIPTION
		"An entry in custom wireless objects table."
	INDEX			{ ngCWTIndex }
	::= { ngCWTable 1 }


NgCWTEntry ::= SEQUENCE {
		ngCWTIndex     			INTEGER,
    ngCWTSSID           DisplayString,
    ngCWTSecurityMode   INTEGER,
    ngCWTSecurityKey    DisplayString,
    ngCWTClosedStatus   INTEGER,
    ngCWTAdminStatus    INTEGER,
    ngCWTOperStatus     INTEGER,
		}


ngCWTIndex OBJECT-TYPE
	SYNTAX			  INTEGER
	MAX-ACCESS		not-accessible
	STATUS			  current
	DESCRIPTION
		"The index of an entry in custom wireless table."
	::= { ngCWTEntry 1 }


ngCWTSSID OBJECT-TYPE
	SYNTAX			  DisplayString
	MAX-ACCESS		read-write
	STATUS			  current
	DESCRIPTION
		"SSID of a wireless network."
	::= { ngCWTEntry 2 }


ngCWTSecurityMode OBJECT-TYPE
	SYNTAX			  INTEGER {
                  none(1),
                  wep(2),
                  wpa-psk-tkip(3),
                  wpa-wpa2-enterprise(4),
                  wpa2-psk-aes(5),
                  wpa-psk-tkip-wpa2-psk-aes(6)
                }
	MAX-ACCESS		read-write
	STATUS			  current
	DESCRIPTION
		"Security mode of wireless network.
     TODO: Please check enumerations for completeness and 
           that names match what has been implemented in the
           router."
	::= { ngCWTEntry 3 }


ngCWTSsecurityKey OBJECT-TYPE
	SYNTAX			  DisplayString
	MAX-ACCESS		read-write
	STATUS			  current
	DESCRIPTION
		"Security key of the wireless network. This key will
     be in plain-text. In case the security mode is none,
     this key would be an empty string."
	::= { ngCWTEntry 4 }


ngCWTClosedStatus OBJECT-TYPE
	SYNTAX			  INTEGER {
                  open(0),
                  closed(1)
                }
	MAX-ACCESS		read-write
	STATUS			  current
	DESCRIPTION
		"Whether the wireless network's SSID can be viewed by
     all, or no one."
	::= { ngCWTEntry 5 }


ngCWTAdminStatus OBJECT-TYPE
	SYNTAX			  INTEGER {
                  disabled(0),
                  enabled(1)
                }
	MAX-ACCESS		read-write
	STATUS			  current
	DESCRIPTION
		"This object is used to change the desired
     state of this network."
	::= { ngCWTEntry 6 }


ngCWTOperStatus OBJECT-TYPE
	SYNTAX			  INTEGER {
                  disabled(0),
                  enabled(1)
                }
	MAX-ACCESS		read-only
	STATUS			  current
	DESCRIPTION
		"This object is used to read the current
     state of this network."
	::= { ngCWTEntry 7 }




-- ************************************************************
-- ************************************************************
--
-- Mobile Module related commands
--
-- ************************************************************
-- ************************************************************


ngCMNetworkMode OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-write
        STATUS                    current
        DESCRIPTION
                "It is the Network Mode to be selected by the user
                 Like 0 for Automatic or 1 for LTE or 2 for 3G for  Mobile Modem."
        ::= { ngCMobileConfig 1 }


ngCMRoamingMode OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-write
        STATUS                    current
        DESCRIPTION
                "It is the Roaming Mode needs to be selected
		when ever the user enters the roaming area and the value 
		needs to be entered as 0 for Sprint Only networ, 1 for 
		Domestic roaming and 2 for All networks."
        ::= { ngCMobileConfig 2 }


ngCMDomesticRoamingGuard OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-write
        STATUS                    current
        DESCRIPTION
                "It is the Value needs to be entered 0 for disabling the 
		Domestic Roaming Guard and 1 for enabling it."
        ::= { ngCMobileConfig 3 }


ngCMIntRoamingGuard OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-write
        STATUS                    current
        DESCRIPTION
                "It is the Value needs to be entered 0 for disabling the 
                International Roaming Guard and 1 for enabling it."
        ::= { ngCMobileConfig 4 }


ngCM3GStatus OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the status of the Mobile 3G connection."
        ::= { ngC3GMobileStats 1 }


ngCM3GPSServiceType OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the 3G PS service type like CDMA 1x or HRPD or eHRPD
		 of the Mobile Network connected."
        ::= { ngC3GMobileStats 2 }


ngCM3GIPAdress OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the IP Address of the Mobile 3G connection."
        ::= { ngC3GMobileStats 3 }


ngCM1x_RSSI OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the 1x RSSI value of the Mobile Network connected."
        ::= { ngC3GMobileStats 4 }


ngCM1x_Ec_Io OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the 3G 1x EC/Io value of the Mobile Network connected."
        ::= { ngC3GMobileStats 5 }


ngCMEVDO_RSSI OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the EVDO RSSI value of the Mobile Network connected."
        ::= { ngC3GMobileStats 6 }


ngCMEVDO_Ec_Io OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the 3G EVDO Ec/Io value of the Mobile Network connected."
        ::= { ngC3GMobileStats 7 }


ngCMMDN OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the 3G MDN value of the Mobile Network connected."
        ::= { ngC3GMobileStats 8 }


ngCMMSID OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the MSID value of the Mobile Network connected."
        ::= { ngC3GMobileStats 9 }


ngCMDRC_Cover OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the 3G DRC Cover value of the Mobile Network connected."
        ::= { ngC3GMobileStats 10 }


ngCMDRC_Value OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the DRC value of the Mobile Network connected."
        ::= { ngC3GMobileStats 11 }


ngCMChannel OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the 3G Channel value of the Mobile Network connected."
        ::= { ngC3GMobileStats 12 }


ngCMRoamingStatus OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Raoming status value of the Mobile Network connected
		like Domestic-160 or International-228."
        ::= { ngC3GMobileStats 13 }


ngCMPRL_Version OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the PRL Version value of the Mobile Network connected."
        ::= { ngC3GMobileStats 14 }


ngCM1xRTTN_PN OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the 1x RTTN PN value of the Mobile Network connected."
        ::= { ngC3GMobileStats 15 }


ngCMEVDO_PN OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the EVDO PN Band value of the Mobile Network connected."
        ::= { ngC3GMobileStats 16 }


ngCMPRev OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the PRev value of the Mobile Network connected."
        ::= { ngC3GMobileStats 17 }


ngCMRx_Power OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the RX Power value of the Mobile Network connected."
        ::= { ngC3GMobileStats 18 }


ngCMServing_SID OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Serving SID value of the Mobile Network connected."
        ::= { ngC3GMobileStats 19 }


ngCMNID OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the NID value of the Mobile Network connected."
        ::= { ngC3GMobileStats 20 }


ngCMPacketZoneID OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It gives the Packet Zone ID value of the Mobile Network connected."
        ::= { ngC3GMobileStats 21 }


ngCMFrameErrorRate OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It gives the Frame Error Rate value of the Mobile Network connected."
        ::= { ngC3GMobileStats 22 }


ngCMSubnetColorCode OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Subnet Color Code value of the Mobile Network connected."
        ::= { ngC3GMobileStats 23 }


ngCMAN_AAA OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the AN_AAA value of the Mobile Network connected."
        ::= { ngC3GMobileStats 24 }


ngCMPacketErrorRate OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It gives the Packet Error rate of the Mobile Network connected."
        ::= { ngC3GMobileStats 25 }


ngCMMIPErrorCode OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It displays the MIP Error code value occured on the Mobile Network connected."
        ::= { ngC3GMobileStats 26 }


ngCMLTEStatus OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Connectivity status of the LTE network to the
		router."
        ::= { ngCLTEStats 1 }


ngCMLTE_PSServiceType OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the LTE PS Service Type of the Mobile Network connected."
        ::= { ngCLTEStats 2 }


ngCMRSRP OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the RSRP value of the Mobile LTE Network connected."
        ::= { ngCLTEStats 3 }


ngCMRSRQ OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the RSRQ of the Mobile LTE Network connected."
        ::= { ngCLTEStats 4 }


ngCMRS_SINR OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the RS-SINR of the Mobile LTE Network connected."
        ::= { ngCLTEStats 5 }


ngCMPLMN OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the PLMN ID value the Mobile LTE Network connected."
        ::= { ngCLTEStats 6 }


ngCMServingCell OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Serving cell Id value the Mobile LTE Network connected."
        ::= { ngCLTEStats 7 }


ngCMTx_Power OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Tx Power value the Mobile LTE Network connected."
        ::= { ngCLTEStats 8 }


ngCMIPAddress OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the IPaddress value the Mobile LTE Network connected."
        ::= { ngCLTEStats 9 }


ngCMChannelUL OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Channel UL value the Mobile LTE Network connected."
        ::= { ngCLTEStats 10 }


ngCMChannelDL OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Channel DL value the Mobile LTE Network connected."
        ::= { ngCLTEStats 11 }


ngCMIMSI OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the IMSI value the Mobile LTE Network connected."
        ::= { ngCLTEStats 12 }


ngCMBand OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Band value the Mobile LTE Network connected."
        ::= { ngCLTEStats 13 }


ngCMLastErrorCode OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the Last Error Code value the Mobile LTE Network connected."
        ::= { ngCLTEStats 14 }


ngCMICCID OBJECT-TYPE
        SYNTAX                    DisplayString
        MAX-ACCESS              read-only
        STATUS                    current
        DESCRIPTION
                "It is the ICCI ID value the Mobile LTE Network connected."
        ::= { ngCLTEStats 15 }


END

