[Contents] [Prev] [Next] [Index] [Report an Error]

Raising an SNMP Trap in Response to an Event

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;
            }
        }
    }
}

[Contents] [Prev] [Next] [Index] [Report an Error]