You can use the apply-flags omit configuration statement to control which parts of the configuration hierarchy appear when you use the show command to display a configuration. This feature is useful for hiding portions of the configuration hierarchy that include lengthy or redundant configuration statements.
To omit a portion of the hierarchy from show command output, include the apply-flags omit configuration statement at any hierarchy level:
- apply-flags omit;
The portion of the hierarchy that contains the statement is omitted from show command output. Although the hierarchy is omitted from show command output, it is not omitted from the actual configuration.
In the following configuration,
- [edit system services]
- apply-flags omit;
- ftp;
- rlogin;
- rsh;
- telnet;
output from the show command appears as follows:
- [edit]
- user@host# show system
- domain-search [ domain1.net spglab.domain2.net ];
- time-zone America/Los_Angeles;
- authentication-order [ password radius ];
- name-server {
- 192.168.5.68;
- 172.17.28.101;
- }
- radius-server {
- 192.168.170.241 secret "$9$615r/u1SyKvWXB1EyreLX-VwgJGjH.zn9s2PTz6tp";
# SECRET-DATA
- 192.168.64.10 secret "$9$rR7l87ws4oJUx7dsYgGUHqmT36Ct0hyeP5BRhrMW";
# SECRET-DATA
- }
- services { /* OMITTED */};
- [edit]
- user@host#
To override the apply-flags omit configuration statement and display an omitted configuration, use one of the following methods:
- [edit system]
- user@host# show | display omit
- domain-search [ domain1.net spglab.domain2.net ];
- time-zone America/Los_Angeles;
- authentication-order [ password radius ];
- name-server {
- 192.168.5.68;
- 172.17.28.101;
- }
- radius-server {
- 192.168.170.241 secret "$9$615r/u1SyKvWXB1EyreLX-VwgJGjH.zn9s2PTz6tp";
## SECRET-DATA
- 192.168.64.10 secret "$9$rR7l87ws4oJUx7dsYgGUHqmT36Ct0hyeP5BRhrMW";
## SECRET-DATA
- }
- services {
- apply-rules omit;
- ftp;
- rlogin;
- rsh;
- telnet;
- }