flag on-all-re

Mode: Operational Mode


With RE redundancy features, for example, GRES and NSR, states are backup from the master RE to the backup RE and the 2 REs should share the same information. There are, however, some information that may be different between the master RE and the backup RE, for example, system uptime. In such cases, the operational commands need to be available on all REs so that the RE-specific data can be displayed.



            command uptime {
                help "Show time since system and processes started";
                require view;
                action execute mgd mgd_show_uptime;
                xml-name get-system-uptime-information;
                odl-tag system-uptime-information;
                flag on-all-re;



Backup RE:
        user@router> show chassis routing-engine
        Routing Engine status:
          Slot 0:
            Current state                  Backup
          Slot 1:
            Current state                  Master
        user@router> show system uptime
        Current time: 2006-11-13 11:43:00 PST
        System booted: 2006-11-13 03:15:11 PST (08:27:49 ago)
        error: the routing subsystem is not running
        Last configured: 2006-11-13 03:16:05 PST (08:26:55 ago) by root
        11:43AM  up 8:28, 1 user, load averages: 0.00, 0.00, 0.00

Master RE:

        user@router> show system uptime
        Current time: 2006-11-13 11:43:12 PST
        System booted: 2006-10-29 14:47:02 PST (2w0d 20:56 ago)
        Protocols started: 2006-10-30 03:15:15 PST (2w0d 08:27 ago)
        Last configured: 2006-10-29 15:03:08 PST (2w0d 20:40 ago) by root
        11:43AM  up 14 days, 20:56, 2 users, load averages: 0.00, 0.01, 0.00

Topics for further reading:

See also:

Reference (to programmers guide/style guide):

2007-2008 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are trademarks of Juniper Networks, Inc.
Generated on Sun May 30 20:23:13 2010 for DDL Reference Guide by doxygen 1.4.5