Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    when

    Syntax

    when {chassis chassis-id;member member-id;model model-id;node node-id;routing-engine routing-engine-id;time <start-time> [to <end-time>];}

    Hierarchy Level

    [edit groups group-name]

    Release Information

    Statement introduced in Junos OS Release 11.3.

    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.

    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.

    Published: 2013-01-15