Juniper Networks J-Series Configuring Event Policies, Configure or Edit, Configuring Event Policy

Models: J-Series

1 332
Download 332 pages 610 b
Page 118
Image 118

J-series™ Services Router Administration Guide

Table 45: Configuring Event Policies

Task

J-Web Configuration Editor

Configuring Destination for Uploading Files for Analysis

Navigate to the Destinations level in

1.

In the J-Web interface, select

the configuration hierarchy.

 

Configuration>View and Edit>Edit

 

 

Configuration.

 

2.

Next to Event options, click

 

 

Configure or Edit.

 

3.

Next to Destinations, click Add new

 

 

entry.

CLI Configuration Editor

From the [edit] hierarchy level, enter

edit event-options destinations

Enter the destination name—for example, bsd2.

You can reference the destination in an event policy.

Configure the archive site—for example, ftp://ftp.robot.net/event_analyze—where you want the output of commands executed by the event policy to be uploaded in a file for analysis, and the password—for example, eventadmin—for accessing the archive site.

NOTE: You can specify the archive site as a Hypertext Transfer Protocol (HTTP) URL, FTP URL, or secure copy (SCP)-style remote file specification. URLs of the type file:// are also supported.

NOTE: When you specify the archive site, do not add a slash (/) to the end of the URL. For example, do not specify the archive site as

ftp://ftp.robot.net/event_analyze/.

Configuring Event Policy

Navigate to the Policy level in the configuration hierarchy, and enter the policy name—for example, event1.

In the Destination name box, type bsd2.

1.Next to Archive sites, click Add new entry.

2.In the Url box, type ftp://ftp.robot.net/event_analyze.

3.In the Password box, type eventadmin.

4.Click OK.

1.On the main Configuration page next to Event options, click Configure or Edit.

2.Next to Policy, click Add new entry.

3.In the Policy name box, type event1.

Set the destination name, the archive site location, and the password for accessing the archive site:

set bsd2 archive-sites ftp://ftp.robot.net/event_analyze password eventadmin

From the [edit] hierarchy level, enter

edit event-options policy event1

Configure the event name—for example, SNMP_TRAP_LINK_DOWN.

The SNMP_TRAP_LINK_DOWN event occurs when an interface that is monitored by SNMP becomes unavailable.

1. Next to Events, click Add new entry. Set the event name:

2. In the Event box, type

set events SNMP_TRAP_LINK_DOWN

SNMP_TRAP_LINK_DOWN.

3.Click OK.

96Running Self-Diagnostics with Event Policies

Page 118
Image 118
Juniper Networks J-Series manual Configuring Event Policies, Configuring Destination for Uploading Files for Analysis