Users may need to manually trigger a PEND_MACH status to test automated alerting or incident generation. However, simply MACH_OFFLINE an agent or stopping the agent service and then running a FORCE_STARTJOB results in a STARTJOBFAIL with a communication error (COMM_ERR_5) rather than the expected PEND_MACH state in the event_demon log.
The FORCE_STARTJOB event is designed to bypass standard machine status checks.
Even if a machine is marked asOFFLINE, a FORCE_STARTJOB will ignore that status and attempt to connect to the agent anyway. If the agent service is unavailable, it results in a communication failure.
A job only enters PEND_MACH status when a standard STARTJOB event is issued against a machine that the Scheduler already knows is in an OFFLINE state.
To successfully trigger a PEND_MACH event in the event_demon log, follow these steps:
sendevent command to manually set the target machine to an OFFLINE status:STARTJOB event. Do not use FORCE_STARTJOB.event_demon log. You should see entries similar to the following:ONLINE status: