Switching

Expand all | Collapse all

Exclamation point ( ! ) in show | compare rollback n

  • 1.  Exclamation point ( ! ) in show | compare rollback n

    Posted 06-28-2019 10:44

    Could any one of you explain about Exclamation point ( ! ) in show | compare rollback n command.

    interface ge-3/0/3.0 { ... }

    ! interface ge-3/0/5.0 { ... }

    ! interface ge-3/0/6.0 { ... }

    ! interface ge-3/0/7.0 { ... }

     

    ! - What it represents? 

    +, - symbols represent newly added config/ removed config.



  • 2.  RE: Exclamation point ( ! ) in show | compare rollback n

     
    Posted 06-28-2019 10:51

    Usually means a configuration was activated or deactivated 

     

    For example:

     

     

    lab# deactivate interfaces ae1

    [edit]
    labroot@richmond# commit
    show |cocommit complete


    labroot@richmond# show |compare rollback 1
    [edit interfaces]
    ! inactive: ae1 { ... }

     

    labroot@richmond# activate interfaces ae1

    labroot@richmond# commit


    labroot@richmond# show |compare rollback 1
    [edit interfaces]
    ! active: ae1 { ... }

     

     

    If this is not your case, paste the config you've changed and show | compare rollback output. We will find out 



  • 3.  RE: Exclamation point ( ! ) in show | compare rollback n

    Posted 06-28-2019 10:53

    Thank you for your valuable reply.

     

    In both cases, it shows active or inactive along !.

    But here it shows only ! route xx.xx.xx.xx/xx.

     



  • 4.  RE: Exclamation point ( ! ) in show | compare rollback n

     
    Posted 06-28-2019 11:01

    From info diff, which I'm sure the compare option uses:

     

       The lines of context around the lines that differ start with two
    space characters.  The lines that differ between the two files start
    with one of the following indicator characters, followed by a space
    character:
    
    `!'
         A line that is part of a group of one or more lines that changed
         between the two files.  There is a corresponding group of lines
         marked with `!' in the part of this hunk for the other file.
    
    `+'
         An "inserted" line in the second file that corresponds to nothing
         in the first file.
    
    `-'
         A "deleted" line in the first file that corresponds to nothing in
         the second file.


  • 5.  RE: Exclamation point ( ! ) in show | compare rollback n

    Posted 06-28-2019 11:02

    The "!" exclamation point indicates the movement of the term within the configuration.

    Reference: https://kb.juniper.net/InfoCenter/index?page=content&id=KB13096&actp=METADATA&act=login

     

     



  • 6.  RE: Exclamation point ( ! ) in show | compare rollback n

    Posted 06-28-2019 11:12

    article still is in review. @ Nelli



  • 7.  RE: Exclamation point ( ! ) in show | compare rollback n

     
    Posted 06-28-2019 21:34

    Hi,

     

    The exclamation point (!) in your output indicates a change in the hierarchy of the existing configuration rather than an addition or deletion.

     

    Eg: 

    Starting with Junos OS Release 8.3, output from the show | compare command has been enhanced to more accurately reflect configuration changes. This includes more intelligent handling of order changes in lists. For example, consider names in a group that are reordered as follows:

    content_copyzoom_out_map
    groups {     
              groups {
                   group_xmp;      group_xmp;
                   group_cmp;     group_grp:
                   group_grp;     group_cmp;
              }     
     }
    

    In previous releases, output from the show | compare command looked like the following:

    content_copyzoom_out_map
    [edit groups]
      - group_xmp;
      - group_cmp;
      - group_grp;
      + group_xmp;
      + group_grp;
      + group_cmp;
    

    Now, output from the show | compare command looks like the following:

    content_copyzoom_out_map
    [edit groups]
    group_xmp {...}
    !  group_grp {...}

     

    To verify, can you share the interface configuration above using which this can be explained better if needed more clarification.

     

    Thanks,
    Pradeep
    Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!



  • 8.  RE: Exclamation point ( ! ) in show | compare rollback n

     
    Posted 06-29-2019 08:00

    Hi gsri83201,

     

    Because you said that, I have to ask, is this route learned through dynamic routing (ospf/bgp)?

     

    Cheers

    Pooja

    Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!

     



  • 9.  RE: Exclamation point ( ! ) in show | compare rollback n

    Posted 06-28-2019 10:51

    The "!" exclamation point indicates the movement of the term within the configuration.

    Reference: https://kb.juniper.net/InfoCenter/index?page=content&id=KB13096&actp=METADATA&act=login

     



  • 10.  RE: Exclamation point ( ! ) in show | compare rollback n

     
    Posted 06-28-2019 10:53

    Hi gsri83201,

     

    The '!' stands for 'deactivation' versus addition/deletion.

     

    For example, observe this:


    {primary:node0}[edit]
    root@jtac-SRX4600-r001# deactivate security flow traceoptions

    {primary:node0}[edit]
    root@jtac-SRX4600-r001# show | compare
    [edit security flow]
    ! inactive: traceoptions { ... }

     

    This is me deactivating the trace.

    And observe how it is depicted with the exclamation point.

     

    Hope that helps.

    Pooja

    Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!