Scenario: A limited time is given to patching and all actions must be started at a specific time and hard stop within x amount of time (lower than current command polling interval).
Issue: If the command poll doesn’t pick up the job in that defined window as it’s set higher then the patching wont occur.
Solution?: I know there are a few ways of going about ensuring endpoints without UDP being available are communicating frequently such as peer nesting however I was thinking that something like this might also work if peer nesting isn’t an option - can you give me your pros and cons on it or perhaps a better way of doing it?
//Check for UDP not being present
if {not exist last command time of client | not exists lines containing " command received" of files whose(12 = length of name of it AND (name of it ends with ".log" OR name of it ends with ".bkg") AND exists lines of it) of folders "Logs" of folders "__Global" of data folders of client}
//Set command polling to 30 mins if UDP not present
setting "_BESClient_Comm_CommandPollEnable"="1" on "{parameter "action issue date" of action}" for client
setting "_BESClient_Comm_CommandPollIntervalSeconds"="1800" on "{parameter "action issue date" of action}" for client
//Check for UDP being present
elseif {exist last command time of client | exists lines containing " command received" of files whose(12 = length of name of it AND (name of it ends with ".log" OR name of it ends with ".bkg") AND exists lines of it) of folders "Logs" of folders "__Global" of data folders of client}
//Set command polling to 6 hours if UDP is present
setting "_BESClient_Comm_CommandPollEnable"="1" on "{parameter "action issue date" of action}" for client
setting "_BESClient_Comm_CommandPollIntervalSeconds"="21600" on "{parameter "action issue date" of action}" for client
endif
I plan to run this as a policy action on all devices so that if UDP is found again on a device or enabled it will put it back to 6 hours.