Process:getProcess

Method

Purpose

This method (on HP-UX) returns a process table filtered by the Process Name argument.

Remarks

Test any regular expressions you plan to use in rulebases by first using them interactively to insure they return the desired results.

Type

Synchronous, IMPACT_INFO.

Arguments

 

Name

Type

Description

Process Name

String

Process name. Pattern match with regular expressions. Empty argument returns information for all processes.

Returns

 

Name

Type

Description

Process Name

String

Process name. Table is indexed on ID Process.

ID Process

Integer

The process ID of the process (this datum required in order to kill the process)

Parent Process ID

Integer

Parent process ID of the current process

User Name

String

Effective user name of the process

Virtual KBytes

Integer

The size of virtual address space (kilobytes)

Stack KBytes

Integer

The size of the process’s stack (kilobytes)

% CPU

Integer

The ratio of CPU time used recently to CPU time available in the same period (the meaning of “recently” in this context is unspecified; the CPU time available is determined in an unspecified manner).

Command

String

The command with all its arguments as a string, as with ps -ef. Truncated to 58 characters.

CPU Time

Integer

CPU usage (user time + system time) in milliseconds