Blame mibs/NET-SNMP-EXTEND-MIB.txt

Packit fcad23
NET-SNMP-EXTEND-MIB DEFINITIONS ::= BEGIN
Packit fcad23
Packit fcad23
--
Packit fcad23
-- Defines a framework for scripted extensions
Packit fcad23
--
Packit fcad23
Packit fcad23
IMPORTS
Packit fcad23
    nsExtensions FROM NET-SNMP-AGENT-MIB
Packit fcad23
Packit fcad23
    OBJECT-TYPE, NOTIFICATION-TYPE, MODULE-IDENTITY, Integer32
Packit fcad23
        FROM SNMPv2-SMI
Packit fcad23
Packit fcad23
    OBJECT-GROUP, NOTIFICATION-GROUP
Packit fcad23
	FROM SNMPv2-CONF
Packit fcad23
Packit fcad23
    DisplayString, RowStatus, StorageType FROM SNMPv2-TC;
Packit fcad23
Packit fcad23
Packit fcad23
netSnmpExtendMIB MODULE-IDENTITY
Packit fcad23
    LAST-UPDATED "201003170000Z"
Packit fcad23
    ORGANIZATION "www.net-snmp.org"
Packit fcad23
    CONTACT-INFO    
Packit fcad23
	 "postal:   Wes Hardaker
Packit fcad23
                    P.O. Box 382
Packit fcad23
                    Davis CA  95617
Packit fcad23
Packit fcad23
          email:    net-snmp-coders@lists.sourceforge.net"
Packit fcad23
    DESCRIPTION
Packit fcad23
	 "Defines a framework for scripted extensions for the Net-SNMP agent."
Packit fcad23
    REVISION     "201003170000Z"
Packit fcad23
    DESCRIPTION
Packit fcad23
         "Fixed inconsistencies in the definition of nsExtendConfigTable."
Packit fcad23
    REVISION     "200405080000Z"
Packit fcad23
    DESCRIPTION
Packit fcad23
	"First revision."
Packit fcad23
    ::= { nsExtensions 1 }
Packit fcad23
Packit fcad23
nsExtendObjects  OBJECT IDENTIFIER ::= { nsExtensions 2}
Packit fcad23
nsExtendGroups   OBJECT IDENTIFIER ::= { nsExtensions 3}
Packit fcad23
Packit fcad23
nsExtendNumEntries OBJECT-TYPE
Packit fcad23
    SYNTAX      INTEGER
Packit fcad23
    MAX-ACCESS  read-only
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The number of rows in the nsExtendConfigTable"
Packit fcad23
    ::= { nsExtendObjects 1 }
Packit fcad23
Packit fcad23
nsExtendConfigTable     OBJECT-TYPE
Packit fcad23
    SYNTAX      SEQUENCE OF NsExtendConfigEntry
Packit fcad23
    MAX-ACCESS  not-accessible
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "A table of scripted extensions - configuration and (basic) output."
Packit fcad23
    ::= { nsExtendObjects 2 }
Packit fcad23
Packit fcad23
nsExtendConfigEntry     OBJECT-TYPE
Packit fcad23
    SYNTAX      NsExtendConfigEntry
Packit fcad23
    MAX-ACCESS  not-accessible
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "A conceptual row within the extension table."
Packit fcad23
    INDEX       { nsExtendToken }
Packit fcad23
    ::= { nsExtendConfigTable 1 }
Packit fcad23
Packit fcad23
NsExtendConfigEntry ::= SEQUENCE {
Packit fcad23
    nsExtendToken       DisplayString,
Packit fcad23
    nsExtendCommand     DisplayString,
Packit fcad23
    nsExtendArgs        DisplayString,
Packit fcad23
    nsExtendInput       DisplayString,
Packit fcad23
    nsExtendCacheTime   INTEGER,
Packit fcad23
    nsExtendExecType    INTEGER,
Packit fcad23
    nsExtendRunType     INTEGER,
Packit fcad23
Packit fcad23
    nsExtendStorage     StorageType,
Packit fcad23
    nsExtendStatus      RowStatus
Packit fcad23
}
Packit fcad23
Packit fcad23
    --
Packit fcad23
    --  The configuration of an extension command
Packit fcad23
    --
Packit fcad23
Packit fcad23
nsExtendToken   OBJECT-TYPE
Packit fcad23
    SYNTAX      DisplayString
Packit fcad23
    MAX-ACCESS  not-accessible
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "An arbitrary token to identify this extension entry"
Packit fcad23
    ::= { nsExtendConfigEntry 1 }
Packit fcad23
Packit fcad23
nsExtendCommand OBJECT-TYPE
Packit fcad23
    SYNTAX      DisplayString
Packit fcad23
    MAX-ACCESS  read-create
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The full path of the command binary (or script) to run"
Packit fcad23
    ::= { nsExtendConfigEntry 2 }
Packit fcad23
Packit fcad23
nsExtendArgs    OBJECT-TYPE
Packit fcad23
    SYNTAX      DisplayString
Packit fcad23
    MAX-ACCESS  read-create
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "Any command-line arguments for the command"
Packit fcad23
    DEFVAL      { ''H }   -- the empty string
Packit fcad23
    ::= { nsExtendConfigEntry 3 }
Packit fcad23
Packit fcad23
nsExtendInput   OBJECT-TYPE
Packit fcad23
    SYNTAX      DisplayString
Packit fcad23
    MAX-ACCESS  read-create
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The standard input for the command"
Packit fcad23
    DEFVAL      { ''H }   -- the empty string
Packit fcad23
    ::= { nsExtendConfigEntry 4 }
Packit fcad23
Packit fcad23
nsExtendCacheTime OBJECT-TYPE
Packit fcad23
    SYNTAX      INTEGER
Packit fcad23
    MAX-ACCESS  read-create
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The length of time for which the output of
Packit fcad23
       this command will be cached.  During this time,
Packit fcad23
       retrieving the output-related values will not
Packit fcad23
       reinvoke the command.
Packit fcad23
       A value of -1 indicates that the output results
Packit fcad23
       should not be cached at all, and retrieving each
Packit fcad23
       individual output-related value will invoke the
Packit fcad23
       command afresh." 
Packit fcad23
    DEFVAL      { 5 }
Packit fcad23
    ::= { nsExtendConfigEntry 5 }
Packit fcad23
Packit fcad23
nsExtendExecType OBJECT-TYPE
Packit fcad23
    SYNTAX      INTEGER
Packit fcad23
               { exec  (1), -- 'fork-and-exec'
Packit fcad23
                 shell (2)  -- run via a sub-shell
Packit fcad23
               }
Packit fcad23
    MAX-ACCESS  read-create
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The mechanism used to invoke the command."
Packit fcad23
    DEFVAL      { exec }
Packit fcad23
    ::= { nsExtendConfigEntry 6 }
Packit fcad23
Packit fcad23
nsExtendRunType OBJECT-TYPE
Packit fcad23
    SYNTAX      INTEGER
Packit fcad23
               { run-on-read (1),
Packit fcad23
                 run-on-set  (2),
Packit fcad23
                 run-command (3)
Packit fcad23
               }
Packit fcad23
    MAX-ACCESS  read-create
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "Used to implement 'push-button' command invocation.
Packit fcad23
       The command for a 'run-on-read' entry will be invoked
Packit fcad23
       whenever one of the corresponding output-related
Packit fcad23
       instances is requested (and assuming the cached value
Packit fcad23
       is not still current).
Packit fcad23
       The command for a 'run-on-set' entry will only be invoked
Packit fcad23
       on receipt of a SET assignment for this object with the
Packit fcad23
       value 'run-command'.
Packit fcad23
       Reading an instance of this object will always return either
Packit fcad23
       'run-on-read' or 'run-on-set'.
Packit fcad23
      "
Packit fcad23
    DEFVAL      { run-on-read }
Packit fcad23
    ::= { nsExtendConfigEntry 7 }
Packit fcad23
Packit fcad23
    --
Packit fcad23
    --  Standard table-manipulation objects
Packit fcad23
    --
Packit fcad23
Packit fcad23
nsExtendStorage OBJECT-TYPE
Packit fcad23
    SYNTAX      StorageType
Packit fcad23
    MAX-ACCESS  read-create
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The storage type for this conceptual row."
Packit fcad23
    DEFVAL      { volatile }
Packit fcad23
    ::= { nsExtendConfigEntry 20 }
Packit fcad23
Packit fcad23
nsExtendStatus  OBJECT-TYPE
Packit fcad23
    SYNTAX      RowStatus
Packit fcad23
    MAX-ACCESS  read-create
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "Used to create new rows in the table, in the standard manner.
Packit fcad23
       Note that is valid for an instance to be left with the value
Packit fcad23
       notInService(2) indefinitely - i.e. the meaning of 'abnormally
Packit fcad23
       long' (see RFC 2579, RowStatus) for this table is infinite."
Packit fcad23
    ::= { nsExtendConfigEntry 21 }
Packit fcad23
Packit fcad23
Packit fcad23
    --
Packit fcad23
    --  The results of running the extension command
Packit fcad23
    --
Packit fcad23
Packit fcad23
nsExtendOutput1Table     OBJECT-TYPE
Packit fcad23
    SYNTAX      SEQUENCE OF NsExtendOutput1Entry
Packit fcad23
    MAX-ACCESS  not-accessible
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "A table of scripted extensions - configuration and (basic) output."
Packit fcad23
    ::= { nsExtendObjects 3 }
Packit fcad23
Packit fcad23
nsExtendOutput1Entry     OBJECT-TYPE
Packit fcad23
    SYNTAX      NsExtendOutput1Entry
Packit fcad23
    MAX-ACCESS  not-accessible
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "A conceptual row within the extension table."
Packit fcad23
    AUGMENTS    { nsExtendConfigEntry }
Packit fcad23
    ::= { nsExtendOutput1Table 1 }
Packit fcad23
Packit fcad23
NsExtendOutput1Entry ::= SEQUENCE {
Packit fcad23
    nsExtendOutput1Line DisplayString,
Packit fcad23
    nsExtendOutputFull  DisplayString,
Packit fcad23
    nsExtendOutNumLines Integer32,
Packit fcad23
    nsExtendResult      Integer32
Packit fcad23
}
Packit fcad23
Packit fcad23
nsExtendOutput1Line OBJECT-TYPE
Packit fcad23
    SYNTAX      DisplayString
Packit fcad23
    MAX-ACCESS  read-only
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The first line of output from the command"
Packit fcad23
    ::= { nsExtendOutput1Entry 1 }
Packit fcad23
Packit fcad23
nsExtendOutputFull  OBJECT-TYPE
Packit fcad23
    SYNTAX      DisplayString
Packit fcad23
    MAX-ACCESS  read-only
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The full output from the command, as a single string"
Packit fcad23
    ::= { nsExtendOutput1Entry 2 }
Packit fcad23
Packit fcad23
nsExtendOutNumLines OBJECT-TYPE
Packit fcad23
    SYNTAX      Integer32
Packit fcad23
    MAX-ACCESS  read-only
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The number of lines of output (and hence
Packit fcad23
       the number of rows in nsExtendOutputTable
Packit fcad23
       relating to this particular entry)."
Packit fcad23
    ::= { nsExtendOutput1Entry 3 }
Packit fcad23
Packit fcad23
nsExtendResult  OBJECT-TYPE
Packit fcad23
    SYNTAX      Integer32
Packit fcad23
    MAX-ACCESS  read-only
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The return value of the command."
Packit fcad23
    ::= { nsExtendOutput1Entry 4 }
Packit fcad23
Packit fcad23
Packit fcad23
    --
Packit fcad23
    --  The line-based output table
Packit fcad23
    --
Packit fcad23
Packit fcad23
nsExtendOutput2Table     OBJECT-TYPE
Packit fcad23
    SYNTAX      SEQUENCE OF NsExtendOutput2Entry
Packit fcad23
    MAX-ACCESS  not-accessible
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "A table of (line-based) output from scripted extensions."
Packit fcad23
    ::= { nsExtendObjects 4 }
Packit fcad23
Packit fcad23
nsExtendOutput2Entry     OBJECT-TYPE
Packit fcad23
    SYNTAX      NsExtendOutput2Entry
Packit fcad23
    MAX-ACCESS  not-accessible
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "A conceptual row within the line-based output table."
Packit fcad23
    INDEX       { nsExtendToken, nsExtendLineIndex }
Packit fcad23
    ::= { nsExtendOutput2Table 1 }
Packit fcad23
Packit fcad23
NsExtendOutput2Entry ::= SEQUENCE {
Packit fcad23
    nsExtendLineIndex INTEGER,
Packit fcad23
    nsExtendOutLine   DisplayString
Packit fcad23
}
Packit fcad23
Packit fcad23
nsExtendLineIndex OBJECT-TYPE
Packit fcad23
    SYNTAX      INTEGER(1..1024)
Packit fcad23
    MAX-ACCESS  not-accessible
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "The index of this line of output.
Packit fcad23
       For a given nsExtendToken, this will run from
Packit fcad23
       1 to the corresponding value of nsExtendNumLines."
Packit fcad23
    ::= { nsExtendOutput2Entry 1 }
Packit fcad23
Packit fcad23
nsExtendOutLine OBJECT-TYPE
Packit fcad23
    SYNTAX      DisplayString
Packit fcad23
    MAX-ACCESS  read-only
Packit fcad23
    STATUS      current
Packit fcad23
    DESCRIPTION
Packit fcad23
      "A single line of output from the extension command."
Packit fcad23
    ::= { nsExtendOutput2Entry 2 }
Packit fcad23
Packit fcad23
--
Packit fcad23
-- Conformance-related definitions
Packit fcad23
--
Packit fcad23
Packit fcad23
nsExtendConfigGroup  OBJECT-GROUP
Packit fcad23
    OBJECTS {
Packit fcad23
        nsExtendCommand,   nsExtendArgs,     nsExtendInput,
Packit fcad23
        nsExtendCacheTime, nsExtendExecType, nsExtendRunType,
Packit fcad23
        nsExtendStorage,   nsExtendStatus,   nsExtendNumEntries
Packit fcad23
    }
Packit fcad23
    STATUS	current
Packit fcad23
    DESCRIPTION
Packit fcad23
	"Objects relating to the configuration of extension commands."
Packit fcad23
    ::= { nsExtendGroups 1 }
Packit fcad23
Packit fcad23
nsExtendOutputGroup  OBJECT-GROUP
Packit fcad23
    OBJECTS {
Packit fcad23
        nsExtendOutNumLines, nsExtendResult,
Packit fcad23
        nsExtendOutLine,   nsExtendOutput1Line, nsExtendOutputFull
Packit fcad23
    }
Packit fcad23
    STATUS	current
Packit fcad23
    DESCRIPTION
Packit fcad23
	"Objects relating to the output of extension commands."
Packit fcad23
    ::= { nsExtendGroups 2 }
Packit fcad23
Packit fcad23
END