Routing
Highlighted
Routing

commit | compare

‎05-06-2020 06:51 PM

Hi all,

Why the Junos gives exclamation mark "!" when activating some statements from deactivate. Even #commit check is fine without any warning.....

Typically when comitting change on the Junos, shouldn't we see "+" or "-" from the executing #sh |compare?

#show | compare
[edit system processes general-authentication-service]
! active: traceoptions { ... }
[edit system processes smg-service]
! active: traceoptions { ... }
[edit system processes dhcp-service]
! active: traceoptions { ... }
[edit protocols ppp-service]
! active: traceoptions { ... }

2 REPLIES 2
Highlighted
Routing
Solution
Accepted by topic author Arix
‎05-06-2020 08:15 PM

Re: commit | compare

[ Edited ]
‎05-06-2020 07:47 PM

Hello Arix,

Greetings!

 

This is the expected behavior in Junos. 

 

If we are adding a new configuration statement to the device it shows it as "+" and deleting a configuration permanently from the device it shows as "-" when you run a #show|compare.

When you activate the disabled command which was already part of the existing configuration in the device but in a disabled state, we see "!" [exclamation ].

 

"!" is seen during "activate to de-activate " and "de-activate to activate". We can differentiate by seeing "active" and "in-active" followed by "!" when you run #show|comapre.

 

Example:-

 

Already disabled:-

[edit system processes health-mon]
XXXX# show
##
## inactive: system processes health-mon
##
disable;

 

Enable the configuration:-

[edit]
XXXX# activate system processes health-mon

[edit]
XXXX# show |compare
[edit system processes]
! active: health-mon { ... }

 

Disable it again:-

 

XXXX# deactivate system processes health-mon
[edit]
XXXX# show |compare
[edit system processes]
! inactive: health-mon { ... }

 

Link for reference:

https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/activate.html

https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/deactivate.html

Highlighted
Routing

Re: commit | compare

‎05-06-2020 08:15 PM

Many thanks Lingabasappa, it is crystal  clear...

Feedback