components/net-snmp/sun/sdk/demo/demo_module_5/SDK-DEMO5-MIB.txt
changeset 252 ee0fb1eabcbf
equal deleted inserted replaced
251:f527656d334f 252:ee0fb1eabcbf
       
     1 -------------------------------------------------------
       
     2 -- Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
       
     3 --
       
     4 -- U.S. Government Rights - Commercial software. Government users are
       
     5 -- subject
       
     6 -- to the Sun Microsystems, Inc. standard license agreement and applicable
       
     7 -- provisions of the FAR and its supplements.
       
     8 --
       
     9 --
       
    10 -- This distribution may include materials developed by third parties. Sun,
       
    11 -- Sun Microsystems, the Sun logo and Solaris are trademarks or registered
       
    12 -- trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
       
    13 --
       
    14 ----------------------------------------------------------
       
    15 -- Systems Management Agent (SMA) SDK module example-5 MIB
       
    16 ----------------------------------------------------------
       
    17 
       
    18 SDK-DEMO5-MIB DEFINITIONS ::= BEGIN
       
    19 
       
    20   IMPORTS
       
    21         enterprises, MODULE-IDENTITY, OBJECT-TYPE, Counter64, Integer32, Unsigned32
       
    22                 FROM SNMPv2-SMI
       
    23          OBJECT-GROUP
       
    24                 FROM SNMPv2-CONF
       
    25          DisplayString
       
    26                FROM SNMPv2-TC;
       
    27 
       
    28 sdkDemo5MIB MODULE-IDENTITY
       
    29     LAST-UPDATED "0009181435Z"
       
    30     ORGANIZATION "Sun Microsystems Inc."
       
    31     CONTACT-INFO
       
    32         " Sun Microsystems Inc
       
    33           4150 Network Circle
       
    34           Santa Clara, CA 95054
       
    35           e-mail: [email protected]"
       
    36     DESCRIPTION
       
    37 	" SMA SDK MIB example-5. This MIB will be used to demonstrate the
       
    38 	  implementation of modules and various module features in SMA agent."
       
    39     ::= { demo 5 }
       
    40 
       
    41 sun           OBJECT IDENTIFIER ::= { enterprises 42 }
       
    42 products      OBJECT IDENTIFIER ::= { sun 2 }
       
    43 management    OBJECT IDENTIFIER ::= { products 2 }
       
    44 sma           OBJECT IDENTIFIER ::= { management 4 }
       
    45 demo          OBJECT IDENTIFIER ::= { sma 4 }
       
    46 
       
    47 --
       
    48 -- There are currently 1 Groups in the example.
       
    49 -- The "File" group contains information about some files on the system
       
    50 --
       
    51 
       
    52 me5FileGroup OBJECT-GROUP
       
    53         OBJECTS { me5FileIndex, me5FileName, me5FileSize, me5FilePerm
       
    54                 }
       
    55         STATUS current
       
    56         DESCRIPTION
       
    57         "File related statistics."
       
    58         ::= { sdkDemo5MIB 2 }
       
    59 
       
    60 --
       
    61 -- Objects in the "File" group
       
    62 --
       
    63 
       
    64 me5FileTable OBJECT-TYPE
       
    65     SYNTAX      SEQUENCE OF Me1FileEntry
       
    66     MAX-ACCESS  not-accessible
       
    67     STATUS      current
       
    68     DESCRIPTION
       
    69                 "Table containing information of some files on the system."
       
    70     ::= { me5FileGroup 1 }
       
    71 
       
    72 me5FileEntry OBJECT-TYPE
       
    73     SYNTAX      Me1FileEntry
       
    74     MAX-ACCESS  not-accessible
       
    75     STATUS      current
       
    76     DESCRIPTION
       
    77                 "Information about one file on the system."
       
    78     INDEX   { me5FileIndex }
       
    79     ::= { me5FileTable 1 }
       
    80 
       
    81 Me1FileEntry ::=
       
    82     SEQUENCE {
       
    83 	me5FileIndex
       
    84 		Unsigned32,
       
    85 	me5FileName
       
    86 		DisplayString,
       
    87 	me5FileSize
       
    88 		Unsigned32,
       
    89 	me5FilePerm
       
    90 		DisplayString
       
    91     }
       
    92 
       
    93 me5FileIndex OBJECT-TYPE
       
    94     SYNTAX      Unsigned32
       
    95     MAX-ACCESS  read-only
       
    96     STATUS      current
       
    97     DESCRIPTION
       
    98                 "Index of the file."
       
    99     ::= { me5FileEntry 1 }
       
   100 
       
   101 me5FileName OBJECT-TYPE
       
   102     SYNTAX      DisplayString
       
   103     MAX-ACCESS  read-create
       
   104     STATUS      current
       
   105     DESCRIPTION
       
   106                 "Name of the file"
       
   107     ::= { me5FileEntry 2 }
       
   108 
       
   109 me5FileSize OBJECT-TYPE
       
   110     SYNTAX      Unsigned32
       
   111     MAX-ACCESS  read-only
       
   112     STATUS      current
       
   113     DESCRIPTION
       
   114                 "Size of the file in kb"
       
   115     ::= { me5FileEntry 3 }
       
   116 
       
   117 me5FilePerm OBJECT-TYPE
       
   118     SYNTAX      DisplayString
       
   119     MAX-ACCESS  read-only
       
   120     STATUS      current
       
   121     DESCRIPTION
       
   122                 "Permissions on this file. example, 0755 "
       
   123     ::= { me5FileEntry 4 }
       
   124 
       
   125 END
       
   126