Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

when

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 11.3.

peers option added in Junos OS Release 14.2R6 for the MX Series.

peers option added in Junos OS Release 16.1R1 for the EX Series.

Description

Define conditions under which the configuration group should be applied. Conditions include the type of chassis, model, or Routing Engine, virtual chassis member, cluster node, and start and optional end time of day. If you specify multiple conditions in a single configuration group, all conditions must be met before the configuration group is applied.

Options

chassis chassis-id—Specify the chassis type of the router. Valid types include SCC0, SCC1, LCC0, LCC1 ... LCC3.

member member-id—Specify the name of the member of the virtual chassis.

model model-id—Specify the model name of the router, such as m7i or tx100.

node node-id—Specify the cluster node.

peers [ names of peers ]—Specify the names of the MC-LAG peers participating in commit synchronization.

routing-engine routing-engine-id—Specify the type of Routing Engine, re0 or re1.

time <start-time> [to <end-time>]—Specify the start time or time duration for this configuration group to be applied. If only the start time is specified, the configuration group is applied at the specified time and remains in effect until the time is changed. If the end time is specified, then on each day, the applied configuration group is started and stopped at the specified times. The syntax for specifying the time is: time <start-time> [to <end-time>] using the time format yyyy-mm-dd.hh:mm, hh:mm, or hh.

Required Privilege Level

configure—To enter configuration mode.