show running-config current-context
Syntax
show running-config current-context
Description
Displays the configuration of the PBR action list in the current configuration context, in commands mode.
Parameters
running-config
- Shows configuration currently running on switch.
current-context
Limits display to current config context only, in commands mode.
Authority
Administrators or local user group members with execution rights for this command.
Usage
- Useful for reexamining entries previously entered into the action list after its entries have scrolled off the terminal due to other output or upon reentering the context of an existing action list.
Examples
Creating two PBR action lists and running
show running-configuration curent-context
to display the action list configuration in commands mode:
switch(config)# pbr-action-list v4_pbr switch(config-pbr-action-list-v4_pbr)# 1 nexthop 1.1.1.1 switch(config-pbr-action-list-v4_pbr)# 5 default-nexthop 2.2.2.2 switch(config-pbr-action-list-v4_pbr)# 10 interface null switch(config-pbr-action-list-v4_pbr)# exit switch(config)# switch(config)# pbr-action-list v6_pbr switch(config-pbr-action-list-v6_pbr)# 20 nexthop 2000:abcd::cccc:dddd switch(config-pbr-action-list-v6_pbr)# 40 default-nexthop 1000:abcd::1234:5678 switch(config-pbr-action-list-v6_pbr)# 60 interface null switch(config-pbr-action-list-v6_pbr)# switch(config-pbr-action-list-v6_pbr)# show running-config current-context pbr-action-list v6_pbr 20 nexthop 2000:abcd::cccc:dddd 40 default-nexthop 1000:abcd::1234:5678 60 interface null
Switching context back to the first actionl ist and running the same command:
switch(config-pbr-action-list-v6_pbr)# pbr-action-list v4_pbr switch(config-pbr-action-list-v4_pbr)# switch(config-pbr-action-list-v4_pbr)# show running-config current-context pbr-action-list v4_pbr 1 nexthop 1.1.1.1 5 default-nexthop 2.2.2.2 10 interface null
Removing action list entry number 5 and running the command again:
switch(config-pbr-action-list-v4_pbr)# no 5 switch(config-pbr-action-list-v4_pbr)# show running-config current-context pbr-action-list v4_pbr 1 nexthop 1.1.1.1 10 interface null