Ethernet Switching
Highlighted
Ethernet Switching

Exclamation point ( ! ) in show | compare rollback n

[ Edited ]
‎06-28-2019 10:44 AM

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.

9 REPLIES 9
Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

‎06-28-2019 10:51 AM

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 


Mengzhe Hu
JNCIE x 3 (SP DC ENT)
Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

‎06-28-2019 10:51 AM

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

 

Thanks,
Nellikka
JNCIE x3 (SEC #321; SP #2839; ENT #790)
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

‎06-28-2019 10:52 AM

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!!!

 

Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

‎06-28-2019 10:52 AM

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.

 

Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

‎06-28-2019 11:01 AM

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.
Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

‎06-28-2019 11:01 AM

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

 

 

Thanks,
Nellikka
JNCIE x3 (SEC #321; SP #2839; ENT #790)
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

[ Edited ]
‎06-28-2019 11:11 AM

article still is in review. @ Nelli

Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

‎06-28-2019 09:33 PM

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!!!

Ethernet Switching

Re: Exclamation point ( ! ) in show | compare rollback n

‎06-29-2019 08:00 AM

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!!!