06-02-2016 03:53 AM
Hi
Is there a way to show current configuration in a context in configuration mode?
as an example
RP/0/RSP0/CPU0:9k(config)#l2vpn bridge group L2_DCS bridge-domain 502
RP/0/RSP0/CPU0:9k(config-l2vpn-bg-bd)#
If i stand here the only way to see active configuration is
show running-config l2vpn bridge group L2_DCS bridge-domain 502
I would like to just run a simple command like show current and get the active configuration for that context. You can do this in equipment from other vendors like junos (show) or alcatel (info) and get the current configuration.
Regards Peter
06-10-2016 09:01 AM
Hello Peter,
You can check the same on IOS-XR as follows:
Below is what I am configuring:
RP/0/RSP0/CPU0:router#conf t
Sat Jun 11 07:44:22.190 UTC
RP/0/RSP0/CPU0:router(config)#router bgp 300
RP/0/RSP0/CPU0:router(config-bgp)#neighbor 1.1.1.1
RP/0/RSP0/CPU0:router(config-bgp-nbr)#remote-as 100
RP/0/RSP0/CPU0:router(config-bgp-nbr)#address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)#route-policy pass in
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)#route-policy pass out
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)#
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)#
Please note, I am in the neighbor's address-family config mode, hence I only see active configuration of the address-family.
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)#show
Sat Jun 11 07:45:08.470 UTC
router bgp 300
neighbor 1.1.1.1
address-family ipv4 unicast
route-policy pass in
route-policy pass out
!
!
!
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)#exit
RP/0/RSP0/CPU0:router(config-bgp-nbr)#exit
RP/0/RSP0/CPU0:router(config-bgp)#exit
RP/0/RSP0/CPU0:router(config)#
RP/0/RSP0/CPU0:router(config)#
Please note, I go all the way to config mode, and I can see the active configuration that I am working on.
RP/0/RSP0/CPU0:router(config)#show
Sat Jun 11 07:45:25.183 UTC
Building configuration...
!! IOS XR Configuration 5.3.1
router bgp 300
neighbor 1.1.1.1
remote-as 100
address-family ipv4 unicast
route-policy pass in
route-policy pass out
!
!
!
end
RP/0/RSP0/CPU0:router(config)#
The command you could use is, "show" or "show configuration" or "show conf". The actual command is "show configuration"
Hope this helps.
06-10-2016 10:39 PM
Hi
This I know that you can do. What im looking for is a way when standing in an context in configuration mode, to see already commited configuration for that context without the need to do a show run xxxx xxxx xxx.
As an example from alu. As you can see when i do info i get the current configuration for that service. No need to do a show run xxx xxx xxx.
*A:alu# configure service epipe 505
*A:alu>config>service>epipe# info
----------------------------------------------
service-mtu 1564
sap 2/1/14:505.* create
ingress
qos 2100
exit
egress
qos 2100
exit
exit
spoke-sdp 10002:505 create
no shutdown
exit
no shutdown
----------------------------------------------
If i then go deeper into the configuation and go into the context for an SAP (VLAN) i can do the same thing there and only get the configuration for the SAP in a easy way
*A:alu>config>service>epipe# sap 2/1/14:505.*
*A:alu>config>service>epipe>sap# info
----------------------------------------------
ingress
qos 2100
exit
egress
qos 2100
exit
----------------------------------------------
Regards Peter
06-13-2016 07:35 AM
Hello Peter
i dont think this functionality is supported on any Cisco Device at the moment. the only way you can look at the present configuration is to use the show run commands to view the configuration under a particular section on IOS XR.
What you could probably do is raise a case with Cisco and see if you can request for an enhancement.
Hope this answers your question.
Regards
Vinit
02-20-2021 05:56 AM
I would really like this and I think a whole lot of other Network Engineers would as well.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide