internal()
Process a command internal to the PATROL Agent.
Format
Parameter
Parameter | Definition |
---|---|
command | text string that contains the command the PATROL Agent should process and its arguments |
Description
The internal() function causes the PATROL Agent to process the string command internally and in a platform-specific manner. The internal() function returns the command output if successful.
If the internal() function encounters an error, it returns the NULL string and sets the PSL variable errno according to the table below.
errno Value | Meaning |
---|---|
104 | E_PSL_NOT_SUPPORTED |
122 | E_PSL_INTERNAL_ARG_ERROR |
123 | E_PSL_INTERNAL_PARSE_FAILED |
124 | E_PSL_INTERNAL_UNKNOWN_FUNCTION |
125 | E_PSL_INTERNAL_FUNCTION_FAILED |
127 | E_PSL_INTERNAL_BAD_NAME |
The internal() function is designed to be used for user and process monitoring and resource inquiries that can be handled inside the PATROL Agent. In these cases, the internal() function is much more efficient than invoking a separate command that requires a call to the PSL interpreter or some other command processor.