From Harmless Crane, 1 Year ago, written in Plain Text.
Embed
  1. -- SmartOptics Enterprise Specific Port MIB.
  2. --
  3. -- Copyright (c) 2014, SmartOptics
  4. -- All rights reserved
  5. --
  6.  
  7. MSERIES-PORT-MIB DEFINITIONS ::= BEGIN
  8.  
  9. IMPORTS
  10.     MODULE-IDENTITY, OBJECT-TYPE, Unsigned32, Integer32
  11.     FROM SNMPv2-SMI
  12.     DisplayString
  13.     FROM SNMPv2-TC
  14.     OBJECT-GROUP, MODULE-COMPLIANCE
  15.     FROM SNMPv2-CONF
  16.     PortType, PortStatus, PortMode
  17.     FROM MSERIES-TC
  18.     mseries
  19.     FROM MSERIES-MIB;
  20.  
  21. smartPort     MODULE-IDENTITY
  22.                 LAST-UPDATED    "201402121344Z"
  23.                 ORGANIZATION    "SmartOptics"
  24.                 CONTACT-INFO    "http://www.smartoptics.com"
  25.                 DESCRIPTION
  26.                                 "This is the enterprise specific Port MIB for SmartOptics M-Series."
  27.                 REVISION        "201402121344Z"
  28.                 DESCRIPTION
  29.                                 "The initial revision of the MSERIES Port MIB."
  30.  
  31.                 ::=  { mseries 3 }
  32.  
  33.         smartPortObjects   OBJECT IDENTIFIER
  34.                 ::= { smartPort 1 }
  35.  
  36.         smartPortGeneral   OBJECT IDENTIFIER
  37.                 ::=  { smartPortObjects  1}
  38.  
  39.         smartPortList   OBJECT IDENTIFIER
  40.                 ::=  { smartPortObjects  2}
  41.  
  42.         smartPortMIBConformance   OBJECT IDENTIFIER
  43.                 ::=  { smartPort  2}
  44.  
  45.         smartPortGroups   OBJECT IDENTIFIER
  46.                 ::=  { smartPortMIBConformance  1}
  47.  
  48.         smartPortCompliances   OBJECT IDENTIFIER
  49.                 ::=  { smartPortMIBConformance  2}
  50.  
  51.  
  52. --
  53. -- General
  54. --
  55.  
  56. --
  57. -- The Port Table
  58. --
  59.  
  60. smartPortTable  OBJECT-TYPE
  61.     SYNTAX      SEQUENCE OF SmartPortEntry
  62.     MAX-ACCESS  not-accessible
  63.     STATUS      current
  64.     DESCRIPTION
  65.         "A port table."
  66.     ::= { smartPortList 1 }
  67.  
  68. smartPortEntry OBJECT-TYPE
  69.     SYNTAX      SmartPortEntry
  70.     MAX-ACCESS  not-accessible
  71.     STATUS      current
  72.     DESCRIPTION
  73.         "An entry in the port list."
  74.     INDEX { smartPortIndex }
  75.     ::= { smartPortTable 1 }
  76.  
  77. SmartPortEntry ::=
  78.     SEQUENCE {
  79.         smartPortIndex                     Unsigned32,
  80.         smartPortName                      DisplayString,
  81.         smartPortAlias                     DisplayString,
  82.         smartPortType                      PortType,
  83.         smartPortPower                     Integer32,
  84.         smartPortStatus                    PortStatus,
  85.         smartPortMode                      PortMode,
  86.         smartPortHighPowerAlarmThreshold   Integer32,
  87.         smartPortLowPowerAlarmThreshold    Integer32
  88. }
  89.  
  90. smartPortIndex OBJECT-TYPE
  91.     SYNTAX      Unsigned32 (1..2147483647)
  92.     MAX-ACCESS  read-only
  93.     STATUS      current
  94.     DESCRIPTION
  95.         "A unique index for each port that corresponds to the index in the interface table"
  96.     ::= { smartPortEntry 1 }
  97.  
  98. smartPortName OBJECT-TYPE
  99.     SYNTAX      DisplayString
  100.     MAX-ACCESS  read-only
  101.     STATUS      current
  102.     DESCRIPTION
  103.         "The name of the port."
  104.     ::= { smartPortEntry 2 }
  105.  
  106. smartPortAlias OBJECT-TYPE
  107.     SYNTAX      DisplayString
  108.     MAX-ACCESS  read-write
  109.     STATUS      current
  110.     DESCRIPTION
  111.         "User configurable Port Alias for the port.
  112.  
  113.          Not writeable in SmartOS v2.3"
  114.     ::= { smartPortEntry 3 }
  115.  
  116. smartPortType OBJECT-TYPE
  117.     SYNTAX      PortType
  118.     MAX-ACCESS  read-only
  119.     STATUS      current
  120.     DESCRIPTION
  121.         "The type of port.
  122.  
  123.          rx(1) - Receiving port.
  124.  
  125.          tx(2) - Transmitting port.
  126.  
  127.          biDi(3) - Bidirectional port."
  128.     ::= { smartPortEntry 4 }
  129.  
  130. smartPortPower OBJECT-TYPE
  131.     SYNTAX      Integer32
  132.     MAX-ACCESS  read-only
  133.     STATUS      current
  134.     DESCRIPTION
  135.         "The power level in units of 0.1 dBm."
  136.     ::= { smartPortEntry 5 }
  137.  
  138. smartPortStatus OBJECT-TYPE
  139.     SYNTAX      PortStatus
  140.     MAX-ACCESS  read-only
  141.     STATUS      current
  142.     DESCRIPTION
  143.         "The operational state for a port.
  144.  
  145.         idle(1) - The port is not activated
  146.  
  147.         down(2) - The port traffic is lost.
  148.  
  149.         up(3) - There is traffic on the port.
  150.  
  151.         high(4) - The port got to high power.
  152.  
  153.         low(5) - The port got to low power.
  154.  
  155.         eyeSafety(6) - The Line Tx port is in Eye Safety Mode.
  156.         This means that either the connector on the
  157.         Line Tx port is not inserted or that you have
  158.         too strong reflection from the line fiber.
  159.  
  160.         cd(7) - Channel detected.
  161.  
  162.         ncd(8) - No channel detected."
  163.     ::= { smartPortEntry 6 }
  164.  
  165. smartPortMode OBJECT-TYPE
  166.     SYNTAX      PortMode
  167.     MAX-ACCESS  read-write
  168.     STATUS      current
  169.     DESCRIPTION
  170.         "The Mode of the Port.
  171.  
  172.          normal (1) - The port is active. No alarms
  173.          are beeing suppressed.
  174.  
  175.          service (2) . The port is in service mode
  176.          and alarms are beeing suppressed. When service
  177.          is ready smartPortMode  should be set to
  178.          'normal' again.
  179.  
  180.          Not writeable in SmartOS v2.3"
  181.     ::= { smartPortEntry 7 }
  182.  
  183. smartPortHighPowerAlarmThreshold OBJECT-TYPE
  184.     SYNTAX      Integer32
  185.     MAX-ACCESS  read-write
  186.     STATUS      current
  187.     DESCRIPTION
  188.         "The threshold for the High Power alarm.
  189.  
  190.          Not writeable in SmartOS v2.3"
  191.     ::= { smartPortEntry 8 }
  192.  
  193. smartPortLowPowerAlarmThreshold OBJECT-TYPE
  194.     SYNTAX      Integer32
  195.     MAX-ACCESS  read-write
  196.     STATUS      current
  197.     DESCRIPTION
  198.         "The threshold for the Low Power alarm.
  199.  
  200.          Not writeable in SmartOS v2.3"
  201.     ::= { smartPortEntry 9 }
  202.  
  203.  
  204. -- ----------------------------------------------------
  205. -- Conformance
  206. -- ----------------------------------------------------
  207.  
  208.  
  209. -- ----------------------------------------------------
  210. -- Object and event groups
  211. -- ----------------------------------------------------
  212.  
  213. smartPortListGroupV1 OBJECT-GROUP
  214.     OBJECTS {
  215.         smartPortIndex,
  216.         smartPortName,
  217.         smartPortAlias,
  218.         smartPortType,
  219.         smartPortPower,
  220.         smartPortStatus,
  221.         smartPortMode,
  222.         smartPortHighPowerAlarmThreshold,
  223.         smartPortLowPowerAlarmThreshold }
  224.     STATUS      current
  225.     DESCRIPTION
  226.         "The Port List MIB objects v1."
  227.     ::= { smartPortGroups 1 }
  228.  
  229. -- ----------------------------------------------------
  230. -- Compliance
  231. -- ----------------------------------------------------
  232.  
  233. smartPortBasicComplV1 MODULE-COMPLIANCE
  234.     STATUS      current
  235.     DESCRIPTION
  236.         "Basic implementation requirements for the port MIB V1."
  237.     MODULE
  238.         MANDATORY-GROUPS {
  239.             smartPortListGroupV1 }
  240.     ::= { smartPortCompliances 1 }
  241.  
  242. END