In order to track server management operations, such as adding a new node, importing a hook script, etc., a new management hook event has been added to the PBS server. Registered management hook scripts are executed once the management operation has completed. Each script is provided information about the requested operation, any associated attributes, and the status of the completed operation.
Python constant:
pbs.MGR_CMD_NONE
pbs.MGR_CMD_CREATE
pbs.MGR_CMD_DELETE
pbs.MGR_CMD_SET
pbs.MGR_CMD_UNSET
pbs.MGR_CMD_LIST
pbs.MGR_CMD_PRINT
pbs.MGR_CMD_ACTIVE
pbs.MGR_CMD_IMPORT
pbs.MGR_CMD_EXPORT
pbs.MGR_CMD_LAST
pbs.MGR_OBJ_NONE
pbs.MGR_OBJ_SERVER
pbs.MGR_OBJ_QUEUE
pbs.MGR_OBJ_JOB
pbs.MGR_OBJ_NODE
pbs.MGR_OBJ_RESV
pbs.MGR_OBJ_RSC
pbs.MGR_OBJ_SCHED
pbs.MGR_OBJ_HOST
pbs.MGR_OBJ_HOOK
pbs.MGR_OBJ_PBS_HOOK
pbs.MGR_OBJ_LAST
pbs.BRP_CHOICE_NULL
pbs.BRP_CHOICE_Queue
pbs.BRP_CHOICE_RdytoCom
pbs.BRP_CHOICE_Commit
pbs.BRP_CHOICE_Select
pbs.BRP_CHOICE_Status
pbs.BRP_CHOICE_Text
pbs.BRP_CHOICE_Locate
pbs.BRP_CHOICE_RescQuery
pbs.BRP_CHOICE_PreemptJobs
pbs.BATCH_OP_SET
pbs.BATCH_OP_UNSET
pbs.BATCH_OP_INCR
pbs.BATCH_OP_DECR
pbs.BATCH_OP_EQ
pbs.BATCH_OP_NE
pbs.BATCH_OP_GE
pbs.BATCH_OP_GT
pbs.BATCH_OP_LE
pbs.BATCH_OP_LT
pbs.BATCH_OP_DFLT
pbs.ATR_VFLAG_SET
pbs.ATR_VFLAG_MODIFY
pbs.ATR_VFLAG_DEFLT
pbs.ATR_VFLAG_MODCACHE
pbs.ATR_VFLAG_INDIRECT
pbs.ATR_VFLAG_TARGET
pbs.ATR_VFLAG_HOOK
Event Parameters:
pbs.event().management - A pbs.management object representing the PBS server management operation that was executed. The management object and thus operation cannot be modified with this hook event.
pbs.event().management.attribs - A list of pbs.server_attribute objects representing the attributes associated with server management operation. The server attribute objects are read-only.
Event Classes:
Details:
A management hook script is executed by the server after a server management operation is completed.
The event will contain data if the server management operation succeeded or failed.
If the management hook script encounters an unexpected error causing an unhandled exception, or times out due to the hook's alarm setting, the hook will act similar to a pbs.event().reject().
Internal Details:
Additional Details:
Consumer:
Project Documentation Main Page