Displaying the Configuration
This guide describes how to use the show commands to display the configuration on a switch running PICOS.
Displaying the Configuration
There are three show commands that can be used to display the configuration on a switch running PICOS: show running-config, show and show all. The configuration can be displayed in a tree structure at the current hierarchy level or at the specified level.
- To display the running configuration, use the CLI operational mode command show running-config from the “>” prompt. This command displays the configurations that have already been successfully committed.
- To show the running configurations as well as the configurations that are not successfully committed, use show configuration mode command.
- To show the user configuration as well as the default configuration of the switch (in file boot), use show all configuration mode command.
For example, set a configuration:
admin@Xorplus# set system login user abc authentication plain-text-password $1$Qy0UarFu$Tpg28rrvNp2VJ2cXY1Z5a/ admin@Xorplus# commit Commit OK. Save done. admin@Xorplus# set system log-level info
To display the current configurations that are successfully committed:
admin@Xorplus> show running-config system { login { user abc { authentication { plain-text-password: "$1$Qy0UarFu$Tpg28rrvNp2VJ2cXY1Z5a/" } } } }
To show the running configuration as well as the configurations that are not committed, use show configuration mode command. The un-committed configuration is labeled with “>” at the start of the line.
admin@Xorplus# show system { login { user abc { authentication { plain-text-password: "$1$Qy0UarFu$Tpg28rrvNp2VJ2cXY1Z5a/" } } } > log-level: "info" }
To show the user configuration as well as the default configuration of the switch (in file pica_default.boot), use show all configuration mode command.
admin@Xorplus# show all class-of-service { } firewall { filter copp { description: "" input { interface "inbound-control-plane" } } } ...... system { login { user abc { authentication { plain-text-password: "$1$Qy0UarFu$Tpg28rrvNp2VJ2cXY1Z5a/" } } } > log-level: "info" } ......
To display a particular hierarchy in the configuration, add the corresponding module name after show running-config/show/show all command. The supported module names and examples are shown below:
admin@Xorplus# show Possible completions: <[Enter]> Execute this command all Show the configuration (all values displayed) class-of-service Class of service configuration firewall Configure Firewall interface Interface configuration ip Configure ip parameters multicast-interface Configure multicast interface policy Configure routing policies protocols Configure protocol parameters system Configure system parameters vlan-interface Configure network interfaces vlans VLAN configuration | Pipe through a command admin@Xorplus# show vlans vlan-id 30 { l3-interface: "vlan30" } vlan-id 50 { l3-interface: "vlan50" } vlan-id 3200 { l3-interface: "vlan3200" } admin@XorPlus# show interface | display set set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 30 set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 30 set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 20 set interface gigabit-ethernet ge-1/1/4 family ethernet-switching native-vlan-id 30 set interface gigabit-ethernet ge-1/1/25 family ethernet-switching native-vlan-id 20 set interface gigabit-ethernet ge-1/1/26 family ethernet-switching native-vlan-id 20 set interface gigabit-ethernet ge-1/1/31 disable true set interface gigabit-ethernet ge-1/1/32 disable true set interface gigabit-ethernet ge-1/1/33 disable true set interface gigabit-ethernet ge-1/1/34 disable true admin@XorPlus# show interface gigabit-ethernet ge-1/1/3 family { ethernet-switching { native-vlan-id: 20 } } admin@XorPlus# show interface gigabit-ethernet ge-1/1/3 | display set set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan 20
Displaying set Commands from the Configuration with | display set Pipe Option
The configuration can be displayed in a tree structure hierarchy, as described in the examples in the previous section; it can also be displayed as a series of configuration mode command lines required to re-create the configuration. You can issue the show configuration command with the | display set pipe option in conjunction with show running-config/show/show all command to view the configuration as set command lines.
For the example in the previous section, view the configuration as a command line:
admin@Xorplus# show | display set set system login user abc authentication plain-text-password "$1$Qy0UarFu$Tpg28rrvNp2VJ2cXY1Z5a/" > set system log-level "info" admin@Xorplus# show vlans |display set set vlans vlan-id 30 l3-interface "vlan30" set vlans vlan-id 50 l3-interface "vlan50" set vlans vlan-id 3200 l3-interface "vlan3200"
Displaying the Configuration with Filter Option
When displaying the configuration by using the show command, you can add the corresponding filter option after the pipe ( | ) in conjunction with show running-config/show/show all command to filter the display result (e.g, except/match option) or do further operations to the display result (e.g, compare/count option).
The details of the filter options are shown below:
admin@XorPlus# show | Possible completions: compare Compare configuration changes with a prior version count Count occurrences display Display additional configuration information except Show only text that does not match a pattern find Search for the first occurrence of a pattern match Show only text that matches a pattern no-more Don't paginate output admin@Xorplus# show | display set | Possible completions: compare Compare configuration changes with a prior version count Count occurrences display Display additional configuration information except Show only text that does not match a pattern find Search for the first occurrence of a pattern match Show only text that matches a pattern no-more Don't paginate output
For example, adding the "| match pimsm" filter condition in conjunction with show command will result in showing the configuration only containing "pimsm" in the command line:
admin@Xorplus# show | display set | match pimsm set protocols pimsm4 interface vlan30 vif vlan30 set protocols pimsm4 interface vlan50 vif vlan50 set protocols pimsm4 bootstrap set protocols pimsm4 traceoptions flag all disable false
Copyright © 2025 Pica8 Inc. All Rights Reserved.