Views:
The callback object represents a registered callback from a quarantine. The intention is that the quarantine script registers different callbacks to run during state transitions or on the receipt of an event. Refer to host.callbackOnState() and host.callbackOnEvent().
This object has dynamic properties that can pass information from where the callback is registered to where the callback is invoked. See the NMS Trap action for an example of how this is used.
Properties
Name Type Description
callbackEvent String Returns the event name that caused this callback: Quarantine , Unquarantine , RADIUS Proxied , Trap Received , IPS Quarantine , Error , and Timer Expire . (read-only)
callbackState String Returns the state name that causes this callback: INITIAL , QUARANTINED , UNQUARANTINED , and ERROR . (read-only)
cause Event Returns the event that registered the callback. (read-only)
Methods
Return Value Name Description
boolean invokeNow() Invokes the callback immediately. This is not to be used on a callback that has been provided. It should only be used on callbacks that are searched. See host.searchCallbacks(). See the NMS Trap action for an example of how this is used.
boolean isSatisfied() Returns whether this callback has already been satisfied.
void satisfied() Satisfies the callback.
Sample usage
var originalEvent = callback.cause;
callback.satisfied();