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

📄 sysappl-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 5 页
字号:
          detect that an application instance is in the process of          exiting if one or more of its REQUIRED elements are no          longer running.  Most agent implementations will wait until          a second internal poll has been completed to give the          system time to start REQUIRED elements before marking the          application instance as exiting."      ::= { sysApplRunEntry 3 }  -- sysApplPastRunTable  -- The sysApplPastRunTable provides a history of applications  -- previously run on the host computer. Entries are removed from  -- the sysApplRunTable and corresponding entries are added to this  -- table when an application becomes inactive. Entries remain in  -- this table until they are aged out when either the table size  -- reaches a maximum as determined by the sysApplPastRunMaxRows,  -- or when an entry has aged to exceed a time limit as set be  -- sysApplPastRunTblTimeLimit.  --  -- When aging out entries, the oldest entry, as determined by  -- the value of sysApplPastRunTimeEnded, will be removed first.  sysApplPastRunTable OBJECT-TYPE      SYNTAX      SEQUENCE OF SysApplPastRunEntry      MAX-ACCESS  not-accessible      STATUS      current      DESCRIPTION          "A history of the applications that have previously run          on the host computer.  An entry's information is moved to          this table from the sysApplRunTable when the invoked          application represented by the entry ceases to be running.          An agent implementation can determine that an application          invocation is no longer running by evaluating the running          elements of the application instance and their Roles as          defined by sysApplInstallElmtRole.  Obviously, if there          are no running elements for the application instance,          then the application invocation is no longer running.          If any one of the REQUIRED elements is not running,          the application instance may be in the process of exiting.          Most agent implementations will wait until a second internal          poll has been completed to give the system time to either          restart partial failures or to give all elements time to          exit.  If, after the second poll, there are REQUIRED          elements that are not running, then the application          instance may be considered by the agent implementation          to no longer be running.          Entries remain in the sysApplPastRunTable until they          are aged out when either the table size reaches a maximum          as determined by the sysApplPastRunMaxRows, or when an entry          has aged to exceed a time limit as set by          sysApplPastRunTblTimeLimit.          Entries in this table are indexed by sysApplInstallPkgIndex,          sysApplPastRunIndex to facilitate retrieval of all past          run invocations of a particular installed application."      ::= { sysApplRun 2 }  sysApplPastRunEntry OBJECT-TYPE      SYNTAX      SysApplPastRunEntry      MAX-ACCESS  not-accessible      STATUS      current      DESCRIPTION          "The logical row describing an invocation of an application          which was previously run and has terminated.  The entry          is basically copied from the sysApplRunTable when the          application instance terminates.  Hence, the entry's          value for sysApplPastRunIndex is the same as its value was          for sysApplRunIndex."      INDEX    { sysApplInstallPkgIndex, sysApplPastRunIndex }      ::= { sysApplPastRunTable   1 }  SysApplPastRunEntry ::= SEQUENCE {      sysApplPastRunIndex                     Unsigned32,      sysApplPastRunStarted                   DateAndTime,      sysApplPastRunExitState                 INTEGER,      sysApplPastRunTimeEnded                 DateAndTime  }  sysApplPastRunIndex OBJECT-TYPE      SYNTAX      Unsigned32 (1..'ffffffff'h)      MAX-ACCESS  not-accessible      STATUS      current      DESCRIPTION          "Part of the index for this table. An integer          matching the value of the removed sysApplRunIndex          corresponding to this row."      ::= { sysApplPastRunEntry 1 }  sysApplPastRunStarted OBJECT-TYPE      SYNTAX      DateAndTime      MAX-ACCESS  read-only      STATUS      current      DESCRIPTION          "The date and time that the application was started."      ::= { sysApplPastRunEntry 2 }  sysApplPastRunExitState OBJECT-TYPE      SYNTAX      INTEGER {                  complete (1), -- normal exit at sysApplRunTimeEnded                  failed (2),   -- abnormal exit                  other (3)                  }      MAX-ACCESS  read-only      STATUS      current      DESCRIPTION        "The state of the application instance when it terminated.         This value is based on an evaluation of the running elements         of an application and their Roles as defined by         sysApplInstallElmtRole.  An application instance is said to         have exited in a COMPLETE state and its entry is removed         from the sysApplRunTable and added to the sysApplPastRunTable         when the agent detects that ALL elements of an application         invocation are no longer running.  Most agent implementations         will wait until a second internal poll has been completed to         give the system time to either restart partial failures or         to give all elements time to exit.  A failed state occurs if,         after the second poll, any elements continue to run but         one or more of the REQUIRED elements are no longer running.         All other combinations MUST be defined as OTHER."      ::= { sysApplPastRunEntry 3 }  sysApplPastRunTimeEnded OBJECT-TYPE      SYNTAX      DateAndTime      MAX-ACCESS  read-only      STATUS      current      DESCRIPTION          "The DateAndTime the application instance was determined          to be no longer running."      ::= { sysApplPastRunEntry 4 }  -- sysApplElmtRunTable  -- The sysApplElmtRunTable contains an entry for each process that  -- is currently running on the host.  An entry is created in  -- this table for each process at the time it is started, and will  -- remain in the table until the process terminates.  --  -- The table is indexed by sysApplElmtRunInstallPkg,  -- sysApplElmtRunInvocID, and sysApplElmtRunIndex to make it easy  -- to locate all running elements of a particular invoked application  -- which has been installed on the system.  sysApplElmtRunTable OBJECT-TYPE      SYNTAX      SEQUENCE OF SysApplElmtRunEntry      MAX-ACCESS  not-accessible      STATUS      current      DESCRIPTION          "The table describes the processes which are          currently executing on the host system. Each entry          represents a running process and is associated with          the invoked application of which that process is a part, if          possible.  This table contains an entry for every process          currently running on the system, regardless of whether its          'parent' application can be determined.  So, for example,          processes like 'ps' and 'grep' will have entries though they          are not associated with an installed application package.          Because a running application may involve          more than one executable, it is possible to have          multiple entries in this table for each application.          Entries are removed from this table when the process          terminates.          The table is indexed by sysApplElmtRunInstallPkg,          sysApplElmtRunInvocID, and sysApplElmtRunIndex to          facilitate the retrieval of all running elements of a          particular invoked application which has been installed on          the system."      ::= { sysApplRun 3 }  sysApplElmtRunEntry OBJECT-TYPE      SYNTAX      SysApplElmtRunEntry      MAX-ACCESS  not-accessible      STATUS      current      DESCRIPTION          "The logical row describing a process currently          running on this host.  When possible, the entry is          associated with the invoked application of which it          is a part."      INDEX    { sysApplElmtRunInstallPkg, sysApplElmtRunInvocID,                 sysApplElmtRunIndex }      ::= { sysApplElmtRunTable   1 }  SysApplElmtRunEntry ::= SEQUENCE {      sysApplElmtRunInstallPkg        Unsigned32,      sysApplElmtRunInvocID           Unsigned32,      sysApplElmtRunIndex             Unsigned32,      sysApplElmtRunInstallID         Unsigned32,      sysApplElmtRunTimeStarted       DateAndTime,      sysApplElmtRunState             RunState,      sysApplElmtRunName              LongUtf8String,      sysApplElmtRunParameters        Utf8String,      sysApplElmtRunCPU               TimeTicks,      sysApplElmtRunMemory            Gauge32,      sysApplElmtRunNumFiles          Gauge32,      sysApplElmtRunUser              Utf8String  }  sysApplElmtRunInstallPkg OBJECT-TYPE      SYNTAX      Unsigned32 (0..'ffffffff'h)      MAX-ACCESS  not-accessible      STATUS      current      DESCRIPTION          "Part of the index for this table, this value          identifies the installed software package for          the application of which this process is a part.          Provided that the process's 'parent' application can be          determined, the value of this object is the same          value as the sysApplInstallPkgIndex for the          entry in the sysApplInstallPkgTable that corresponds          to the installed application of which this process          is a part.          If, however, the 'parent' application cannot be          determined, (for example the process is not part          of a particular installed application), the value          for this object is then '0', signifying that this          process cannot be related back to an application,          and in turn, an installed software package."      ::= { sysApplElmtRunEntry 1 }  sysApplElmtRunInvocID OBJECT-TYPE      SYNTAX      Unsigned32 (0..'ffffffff'h)      MAX-ACCESS  not-accessible      STATUS      current      DESCRIPTION          "Part of the index for this table, this value          identifies the invocation of an application of which          this process is a part.  Provided that the 'parent'          application can be determined, the value of this object          is the same value as the sysApplRunIndex for the          corresponding application invocation in the          sysApplRunTable.          If, however, the 'parent' application cannot be          determined, the value for this object is then '0',          signifying that this process cannot be related back          to an invocation of an application in the          sysApplRunTable."      ::= { sysApplElmtRunEntry 2 }  sysApplElmtRunIndex OBJECT-TYPE      SYNTAX      Unsigned32 (0..'ffffffff'h)      MAX-ACCESS  not-accessible      STATUS      current      DESCRIPTION          "Part of the index for this table.  A unique value          for each process running on the host.  Wherever          possible, this should be the system's native, unique          identification number."      ::= { sysApplElmtRunEntry 3 }  sysApplElmtRunInstallID OBJECT-TYPE      SYNTAX      Unsigned32 (0..'ffffffff'h)      MAX-ACCESS  read-only      STATUS      current      DESCRIPTION          "The index into the sysApplInstallElmtTable. The          value of this object is the same value as the          sysApplInstallElmtIndex for the application element          of which this entry represents a running instance.          If this process cannot be associated with an installed          executable, the value should be '0'."      ::= { sysApplElmtRunEntry 4 }  sysApplElmtRunTimeStarted OBJECT-TYPE      SYNTAX      DateAndTime      MAX-ACCESS  read-only      STATUS      current      DESCRIPTION          "The time the process was started."      ::= { sysApplElmtRunEntry 5 }  sysApplElmtRunState OBJECT-TYPE      SYNTAX      RunState      MAX-ACCESS  read-only      STATUS      current      DESCRIPTION          "The current state of the running process. The          possible values are running(1), runnable(2) but waiting          for a resource such as CPU, waiting(3) for an event,          exiting(4), or other(5)."      ::= { sysApplElmtRunEntry 6 }  sysApplElmtRunName OBJECT-TYPE      SYNTAX      LongUtf8String      MAX-ACCESS  read-only      STATUS      current      DESCRIPTION          "The full path and filename of the process.          For example, '/opt/MYYpkg/bin/myyproc' would          be returned for process 'myyproc' whose execution          path is '/opt/MYYpkg/bin/myyproc'."      ::= { sysApplElmtRunEntry 7 }  sysApplElmtRunParameters OBJECT-TYPE      SYNTAX      Utf8String      MAX-ACCESS  read-only      STATUS      current      DESCRIPTION          "The starting parameters for the process."  ::= { sysApplElmtRunEntry 8 }  sysApplElmtRunCPU OBJECT-TYPE      SYNTAX      TimeTicks      MAX-ACCESS  read-only

⌨️ 快捷键说明

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