⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 disman-script-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 5 页
字号:
    SYNTAX      StorageType    MAX-ACCESS  read-create    STATUS      current    DESCRIPTION        "This object defines if this row is kept in volatile storage         and lost upon reboot or if this row is backed up by stable         storage.         The value of smLaunchStorageType is only meaningful if the         value of the corresponding RowStatus object is active.         If smLaunchStorageType has the value permanent(4), then all         objects whose MAX-ACCESS value is read-create must be         writable, with the exception of the smLaunchStorageType and         smLaunchRowStatus objects, which shall be read-only."    DEFVAL { volatile }    ::= { smLaunchEntry 15 }smLaunchRowStatus OBJECT-TYPE    SYNTAX      RowStatus    MAX-ACCESS  read-create    STATUS      current    DESCRIPTION        "A control that allows entries to be added and removed from         this table.         Attempts to `destroy' a row or to set a row `notInService'         while the smLaunchOperStatus is `enabled' will result in         an inconsistentValue error.         Attempts to `destroy' a row or to set a row `notInService'         where the value of the smLaunchStorageType object is         `permanent' or `readOnly' will result in an         inconsistentValue error.         The value of this object has no effect on whether other         objects in this conceptual row can be modified."    ::= { smLaunchEntry 16 }smLaunchError OBJECT-TYPE    SYNTAX      SnmpAdminString    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "This object contains a descriptive error message if an         attempt to launch a script fails. Implementations must reset         the error message to a zero-length string when a new attempt         to launch a script is started."    DEFVAL { ''H }    ::= { smLaunchEntry 17 }smLaunchLastChange OBJECT-TYPE    SYNTAX      DateAndTime    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "The date and time when this launch table entry was last         modified. The value '0000000000000000'H is returned if         the launch table entry has not yet been modified.         Note that a change of smLaunchStart, smLaunchControl,         smLaunchRunIndexNext, smLaunchRowExpireTime, or the         resetting of smLaunchError is not considered a change         of this launch table entry."    DEFVAL { '0000000000000000'H }    ::= { smLaunchEntry 18 }smLaunchRowExpireTime OBJECT-TYPE    SYNTAX      TimeInterval    UNITS       "centi-seconds"    MAX-ACCESS  read-create    STATUS      current    DESCRIPTION        "The value of this object specifies how long this row remains         in the `enabled' or `disabled' operational state. The value         reported by this object ticks backwards. When the value         reaches 0, it stops ticking backward and the row is         deleted if there are no smRunTable entries associated with         this smLaunchTable entry. Otherwise, the smLaunchOperStatus         changes to `expired' and the row deletion is deferred         until there are no smRunTable entries associated with this         smLaunchTable entry.         The smLaunchRowExpireTime will not tick backwards if it is         set to its maximum value (2147483647). In other words,         setting this object to its maximum value turns the timer         off.         The value of this object may be set in order to increase         or reduce the remaining time that the launch table entry         may be used. Setting the value to 0 will cause an immediate         row deletion or transition into the `expired' operational         state.         It is not possible to set this object while the operational         status is `expired'. Attempts to modify this object while         the operational status is `expired' leads to an         inconsistentValue error.         Note that the timer ticks backwards independent of the         operational state of the launch table entry."    DEFVAL { 2147483647 }    ::= { smLaunchEntry 19 }smRunTable OBJECT-TYPE    SYNTAX      SEQUENCE OF SmRunEntry    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "This table lists and describes scripts that are currently         running or have been running in the past."    ::= { smRunObjects 2 }smRunEntry OBJECT-TYPE    SYNTAX      SmRunEntry    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "An entry describing a particular running or finished         script."    INDEX { smLaunchOwner, smLaunchName, smRunIndex }    ::= { smRunTable 1 }SmRunEntry ::= SEQUENCE {    smRunIndex          Integer32,    smRunArgument       OCTET STRING,    smRunStartTime      DateAndTime,    smRunEndTime        DateAndTime,    smRunLifeTime       TimeInterval,    smRunExpireTime     TimeInterval,    smRunExitCode       INTEGER,    smRunResult         OCTET STRING,    smRunControl        INTEGER,    smRunState          INTEGER,    smRunError          SnmpAdminString,    smRunResultTime     DateAndTime,    smRunErrorTime      DateAndTime}smRunIndex OBJECT-TYPE    SYNTAX      Integer32 (1..2147483647)    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "The locally arbitrary, but unique identifier associated         with this running or finished script. This value must be         unique for all rows in the smRunTable with the same         smLaunchOwner and smLaunchName.         Note that the data type and the range of this object must         be consistent with the definition of smLaunchRunIndexNext         and smLaunchStart."    ::= { smRunEntry 1 }smRunArgument OBJECT-TYPE    SYNTAX      OCTET STRING    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "The argument supplied to the script when it started."    DEFVAL { ''H }    ::= { smRunEntry 2 }smRunStartTime OBJECT-TYPE    SYNTAX      DateAndTime    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "The date and time when the execution started. The value         '0000000000000000'H is returned if the script has not         started yet."    DEFVAL { '0000000000000000'H }    ::= { smRunEntry 3 }smRunEndTime OBJECT-TYPE    SYNTAX      DateAndTime    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "The date and time when the execution terminated. The value         '0000000000000000'H is returned if the script has not         terminated yet."    DEFVAL { '0000000000000000'H }    ::= { smRunEntry 4 }smRunLifeTime OBJECT-TYPE    SYNTAX      TimeInterval    UNITS       "centi-seconds"    MAX-ACCESS  read-write    STATUS      current    DESCRIPTION        "This object specifies how long the script can execute.         This object returns the remaining time that the script         may run. The object is initialized with the value of the         associated smLaunchLifeTime object and ticks backwards.         The script is aborted immediately when the value reaches 0.         The value of this object may be set in order to increase or         reduce the remaining time that the script may run. Setting         this value to 0 will abort script execution immediately,         and, if the value of smRunExpireTime is also 0, will remove         this entry from the smRunTable once it has terminated.         If smRunLifeTime is set to its maximum value (2147483647),         either by a set operation or by its initialization from the         smLaunchLifeTime object, then it will not tick backwards.         A running script with a maximum smRunLifeTime value will         thus never be terminated with a `lifeTimeExceeded' exit         code.         The value of smRunLifeTime reflects the real-time execution         time as seen by the outside world. The value of this object         will always be 0 for a script that finished execution, that         is smRunState has the value `terminated'.         The value of smRunLifeTime does not change while a script         is suspended, that is smRunState has the value `suspended'.         Note that this does not affect set operations. It is legal         to modify smRunLifeTime via set operations while a script         is suspended."    ::= { smRunEntry 5 }smRunExpireTime OBJECT-TYPE    SYNTAX      TimeInterval    UNITS       "centi-seconds"    MAX-ACCESS  read-write    STATUS      current    DESCRIPTION        "The value of this object specifies how long this row can         exist in the smRunTable after the script has terminated.         This object returns the remaining time that the row may         exist before it is aged out. The object is initialized with         the value of the associated smLaunchExpireTime object and         ticks backwards. The entry in the smRunTable is destroyed         when the value reaches 0 and the smRunState has the value         `terminated'.         The value of this object may be set in order to increase or         reduce the remaining time that the row may exist.  Setting         the value to 0 will destroy this entry as soon as the         smRunState has the value `terminated'."    ::= { smRunEntry 6 }smRunExitCode OBJECT-TYPE    SYNTAX      INTEGER {                    noError(1),                    halted(2),                    lifeTimeExceeded(3),                    noResourcesLeft(4),                    languageError(5),                    runtimeError(6),                    invalidArgument(7),                    securityViolation(8),                    genericError(9)                }    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "The value of this object indicates the reason why a         script finished execution. The smRunExitCode code may have         one of the following values:         - `noError', which indicates that the script completed            successfully without errors;         - `halted', which indicates that the script was halted            by a request from an authorized manager;         - `lifeTimeExceeded', which indicates that the script            exited because a time limit was exceeded;         - `noResourcesLeft', which indicates that the script            exited because it ran out of resources (e.g. memory);         - `languageError', which indicates that the script exited            because of a language error (e.g. a syntax error in an            interpreted language);         - `runtimeError', which indicates that the script exited            due to a runtime error (e.g. a division by zero);         - `invalidArgument', which indicates that the script could            not be run because of invalid script arguments;         - `securityViolation', which indicates that the script            exited due to a security violation;         - `genericError', which indicates that the script exited            for an unspecified reason.         If the script has not yet begun running, or is currently         running, the value will be `noError'."    DEFVAL { noError }    ::= { smRunEntry 7 }smRunResult OBJECT-TYPE    SYNTAX      OCTET STRING    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "The result value produced by the running script. Note that         the result may change while the script is executing."    DEFVAL { ''H }    ::= { smRunEntry 8 }smRunControl OBJECT-TYPE    SYNTAX      INTEGER {                    abort(1),                    suspend(2),                    resume(3),                    nop(4)                }    MAX-ACCESS  read-write    STATUS      current    DESCRIPTION        "The value of this object indicates the desired status of the         script execution defined by this row.         Setting this object to `abort' will abort execution if the         value of smRunState is `initializing', `executing',         `suspending', `suspended' or `resuming'. Setting this object         to `abort' when the value of smRunState is `aborting' or         `terminated', or if the implementation can determine that         the attempt to abort the execution would fail, will result         in an inconsistentValue error.         Setting this object to `suspend' will suspend execution         if the value of smRunState is `executing'. Setting this         object to `suspend' will cause an inconsistentValue error         if the value of smRunState is not `executing' or if the         implementation can determine that the attempt to suspend         the execution would fail.         Setting this object to `resume' will resume execution         if the value of smRunState is `suspending' or         `suspended'. Setting this object to `resume' will cause an         inconsistentValue error if the value of smRunState is         not `suspended' or if the implementation can determine         that the attempt to resume the execution would fail.         Setting this object to nop(4) has no effect."    DEFVAL { nop }    ::= { smRunEntry 9 }smRunState OBJECT-TYPE    SYNTAX      INTEGER {                    initializing(1),                    executing(2),                    suspending(3),                    suspended(4),                    resuming(5),                    aborting(6),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -