Blog Viewer

Scripting How-To: Simulate an event for testing event policy

By Erdem posted 08-10-2015 21:37


Simulate an Event for Testing Event Policy


From Junos OS Release 9.1 and later, you can test event policy by using the 'logger' utility to simulate the desired event.


For example:


1 logger -e CHASSID_SHUTDOWN_NOTICE -d chassid -a "reason=<reason value>" <syslog message>