components/net-snmp/sun/sdk/demo/demo_module_8/SDK-DEMO1-MIB.txt
changeset 252 ee0fb1eabcbf
equal deleted inserted replaced
251:f527656d334f 252:ee0fb1eabcbf
       
     1 --
       
     2 -- 
       
     3 -- Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
       
     4 --
       
     5 -- U.S. Government Rights - Commercial software. Government users are
       
     6 -- subject
       
     7 -- to the Sun Microsystems, Inc. standard license agreement and applicable
       
     8 -- provisions of the FAR and its supplements.
       
     9 --
       
    10 --
       
    11 -- This distribution may include materials developed by third parties. Sun,
       
    12 -- Sun Microsystems, the Sun logo and Solaris are trademarks or registered
       
    13 -- trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
       
    14  
       
    15 
       
    16 ----------------------------------------------------------
       
    17 -- Systems Management Agent (SMA) SDK module DEMO-1 MIB
       
    18 ----------------------------------------------------------
       
    19 
       
    20 SDK-DEMO1-MIB DEFINITIONS ::= BEGIN
       
    21 
       
    22   IMPORTS
       
    23         enterprises, MODULE-IDENTITY, OBJECT-TYPE, Counter64, Integer32, Unsigned32
       
    24                 FROM SNMPv2-SMI
       
    25          OBJECT-GROUP
       
    26                 FROM SNMPv2-CONF
       
    27          DisplayString
       
    28                FROM SNMPv2-TC;
       
    29 
       
    30 sdkDemo1MIB MODULE-IDENTITY
       
    31     LAST-UPDATED "0009181435Z"
       
    32     ORGANIZATION "Sun Microsystems Inc."
       
    33     CONTACT-INFO
       
    34         " Sun Microsystems Inc
       
    35           4150 Network Circle
       
    36           Santa Clara, CA 95054
       
    37           e-mail: [email protected]"
       
    38     DESCRIPTION
       
    39 	" SMA SDK MIB DEMO-1. This MIB will be used to demonstrate the
       
    40 	  implementation of modules and various module features in SMA agent."
       
    41     ::= { demo 1 }
       
    42 
       
    43 sun           OBJECT IDENTIFIER ::= { enterprises 42 }
       
    44 products      OBJECT IDENTIFIER ::= { sun 2 }
       
    45 management    OBJECT IDENTIFIER ::= { products 2 }
       
    46 sma           OBJECT IDENTIFIER ::= { management 4 }
       
    47 demo          OBJECT IDENTIFIER ::= { sma 4 }
       
    48 
       
    49 --
       
    50 -- There are currently 2 Groups in the example.
       
    51 -- The "Load" group contains information about system load
       
    52 -- The "File" group contains information about some files on the system
       
    53 --
       
    54 
       
    55 me1LoadGroup OBJECT-GROUP
       
    56         OBJECTS {  me1SystemLoadAvg1min, me1SystemLoadAvg5min, 
       
    57 		me1SystemLoadAvg15min }
       
    58         STATUS current
       
    59         DESCRIPTION
       
    60         "Load related statistics."
       
    61         ::= { sdkDemo1MIB 1 }
       
    62 
       
    63 me1FileGroup OBJECT-GROUP
       
    64         OBJECTS { me1FileIndex, me1FileName, me1FileSize, me1FilePerm
       
    65                 }
       
    66         STATUS current
       
    67         DESCRIPTION
       
    68         "File related statistics."
       
    69         ::= { sdkDemo1MIB 2 }
       
    70 
       
    71 -- 
       
    72 -- Properties in the "Load" group
       
    73 --
       
    74 
       
    75 me1SystemLoadAvg1min OBJECT-TYPE
       
    76     SYNTAX      DisplayString
       
    77     UNITS       "Jobs"
       
    78     MAX-ACCESS  read-only
       
    79     STATUS      current
       
    80     DESCRIPTION
       
    81                 "Load average of the system over the last 1 minute."
       
    82     ::= { me1LoadGroup 1 }
       
    83 
       
    84 me1SystemLoadAvg5min OBJECT-TYPE
       
    85     SYNTAX      DisplayString
       
    86     UNITS       "Jobs"
       
    87     MAX-ACCESS  read-only
       
    88     STATUS      current
       
    89     DESCRIPTION
       
    90                 "Load average of the system over the last 5 minutes."
       
    91     ::= { me1LoadGroup 2 }
       
    92 
       
    93 me1SystemLoadAvg15min OBJECT-TYPE
       
    94     SYNTAX      DisplayString
       
    95     UNITS       "Jobs"
       
    96     MAX-ACCESS  read-only
       
    97     STATUS      current
       
    98     DESCRIPTION
       
    99                 "Load average of the system over the last 15 minutes."
       
   100     ::= { me1LoadGroup 3 }
       
   101 
       
   102 --
       
   103 -- Objects in the "File" group
       
   104 --
       
   105 
       
   106 me1FileTable OBJECT-TYPE
       
   107     SYNTAX      SEQUENCE OF Me1FileEntry
       
   108     MAX-ACCESS  not-accessible
       
   109     STATUS      current
       
   110     DESCRIPTION
       
   111                 "Table containing information of some files on the system."
       
   112     ::= { me1FileGroup 1 }
       
   113 
       
   114 me1FileEntry OBJECT-TYPE
       
   115     SYNTAX      Me1FileEntry
       
   116     MAX-ACCESS  not-accessible
       
   117     STATUS      current
       
   118     DESCRIPTION
       
   119                 "Information about one file on the system."
       
   120     INDEX   { me1FileIndex }
       
   121     ::= { me1FileTable 1 }
       
   122 
       
   123 Me1FileEntry ::=
       
   124     SEQUENCE {
       
   125 	me1FileIndex
       
   126 		Unsigned32,
       
   127 	me1FileName
       
   128 		DisplayString,
       
   129 	me1FileSize
       
   130 		Unsigned32,
       
   131 	me1FilePerm
       
   132 		DisplayString
       
   133     }
       
   134 
       
   135 me1FileIndex OBJECT-TYPE
       
   136     SYNTAX      Unsigned32
       
   137     MAX-ACCESS  read-only
       
   138     STATUS      current
       
   139     DESCRIPTION
       
   140                 "Index of the file."
       
   141     ::= { me1FileEntry 1 }
       
   142 
       
   143 me1FileName OBJECT-TYPE
       
   144     SYNTAX      DisplayString
       
   145     MAX-ACCESS  read-create
       
   146     STATUS      current
       
   147     DESCRIPTION
       
   148                 "Name of the file"
       
   149     ::= { me1FileEntry 2 }
       
   150 
       
   151 me1FileSize OBJECT-TYPE
       
   152     SYNTAX      Unsigned32
       
   153     MAX-ACCESS  read-only
       
   154     STATUS      current
       
   155     DESCRIPTION
       
   156                 "Size of the file in kb"
       
   157     ::= { me1FileEntry 3 }
       
   158 
       
   159 me1FilePerm OBJECT-TYPE
       
   160     SYNTAX      DisplayString
       
   161     MAX-ACCESS  read-only
       
   162     STATUS      current
       
   163     DESCRIPTION
       
   164                 "Permissions on this file. example, 0755 "
       
   165     ::= { me1FileEntry 4 }
       
   166 
       
   167 
       
   168 -- General table:
       
   169 
       
   170 
       
   171 me1ContactInfoTable OBJECT-TYPE
       
   172         SYNTAX  SEQUENCE OF Me1ContactInfoEntry
       
   173         MAX-ACCESS  not-accessible
       
   174         STATUS  mandatory
       
   175         DESCRIPTION
       
   176           "The contact information table."
       
   177         ::= { sdkDemo1MIB 3 }
       
   178 
       
   179 
       
   180 
       
   181 me1ContactInfoEntry  OBJECT-TYPE
       
   182         SYNTAX  Me1ContactInfoEntry
       
   183         MAX-ACCESS  not-accessible
       
   184         STATUS  mandatory
       
   185         DESCRIPTION
       
   186           "An entry in the contact info  table."
       
   187         INDEX   { me1FloorNumber, me1RoomNumber }
       
   188         ::= { me1ContactInfoTable 1 }
       
   189 
       
   190 
       
   191 
       
   192 Me1ContactInfoEntry ::=
       
   193         SEQUENCE {
       
   194            me1FloorNumber
       
   195                 INTEGER,
       
   196            me1RoomNumber
       
   197                 INTEGER,
       
   198            me1Name
       
   199                 DisplayString,
       
   200            me1Extension 
       
   201                  INTEGER
       
   202         }
       
   203 
       
   204 me1FloorNumber OBJECT-TYPE
       
   205         SYNTAX  INTEGER (1..3)
       
   206         MAX-ACCESS  read-only
       
   207         STATUS  current
       
   208         DESCRIPTION
       
   209           "This object combines with me1RoomNumber are
       
   210            the identifier of the table." 
       
   211         ::= { me1ContactInfoEntry 1 }
       
   212 
       
   213 
       
   214 me1RoomNumber OBJECT-TYPE
       
   215         SYNTAX  INTEGER (1..100)
       
   216         MAX-ACCESS  read-only
       
   217         STATUS  current
       
   218         DESCRIPTION
       
   219           "This object combines with me1FloorNumber are
       
   220            the identifier of the table." 
       
   221         ::= { me1ContactInfoEntry 2 }
       
   222 
       
   223 me1Name OBJECT-TYPE
       
   224         SYNTAX  DisplayString 
       
   225         MAX-ACCESS  read-only
       
   226         STATUS  current
       
   227         DESCRIPTION
       
   228           " The person loacted in the room."
       
   229         ::= { me1ContactInfoEntry 3 }
       
   230         
       
   231 me1Extension OBJECT-TYPE
       
   232         SYNTAX  INTEGER 
       
   233         MAX-ACCESS  read-only
       
   234         STATUS  current
       
   235         DESCRIPTION
       
   236           "The phone number of the office."
       
   237         ::= { me1ContactInfoEntry 4 }
       
   238 
       
   239 
       
   240 END
       
   241