11-09-2022 02:47 PM
good night to everybody,
i wannabe make a show comando with
sh int ra | incl Gig0/1-2
i try this comands
*** sh ru | incl GigabitEthernet0/
this is the command but the responde dont get any more information, like ip address, etc.
the command is more like this
sh ru | incl GigabitEthernet0/ | incl dupl | incl ip addre
Solved! Go to Solution.
11-10-2022 03:19 AM
Hello,
unfortunately, you cannot combine multiple exc/inc pipes (such as GREP in Unix).
In your case, if you just want to include Gi0/1 and Gi0/2, you could use something like:
sh interfaces | include GigabitEthernet0/[1-2]
11-10-2022 12:12 AM
sh int ra - is this command work (without pipe)
Can you post your example output of what you looking to achieve so we can suggest the best suitable command?
11-10-2022 01:36 AM
Hello,
what information are you after exactly ? The 'section' keyword would render this:
#sh run | section GigabitEthernet0/0
interface GigabitEthernet0/0
ip address 1.1.1.1 255.255.255.252
duplex auto
speed auto
media-type rj45
11-10-2022 01:54 AM
11-10-2022 03:19 AM
Hello,
unfortunately, you cannot combine multiple exc/inc pipes (such as GREP in Unix).
In your case, if you just want to include Gi0/1 and Gi0/2, you could use something like:
sh interfaces | include GigabitEthernet0/[1-2]
11-10-2022 04:37 AM
11-10-2022 03:33 AM
we do not see any image attached to.
you can mix so many command in one line due to limitation of IOS code.
out of the box with some python code you get what you looking to do.
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