Raise a trap and execute an associated event script in response to an event:
event-options {
policy p1 {
events ui_mgd_terminate;
then {
raise-trap;
event-script bgp.xsl {
arguments {
destination {$ui_mgd_terminate.destination};
code 2;
}
output-filename bgp-out;
destination bsd3;
}
}
}
}