Hi,
I want to query some part of the config for 3 values, and then list/save this information.
For instance, we have multiple BGP peer-groups containing multiple BGP peers:
neighbor TEXT STRING 1 {
description TEXT STRING 2
<SNIP>
peer-as TEXT STRING 3;
I would like to match against ONLY strings 1-3 and output this for ALL neighbours within the specified peer-group to a text file.
Something like:
show configuration protocols bgp group peers | match "neighbor" "description" "peer-as" save "peer.txt"
Is this possible from CLI or from a BSD Shell?
Many thanks,
Chris