[j-nsp] How to see contatining section ?
pkc_mls
pkc_mls at yahoo.fr
Thu Sep 20 08:38:35 EDT 2012
Le 20/09/2012 2:20, Bala Subrahmanyam Venkata a écrit :
> Novice Junos CLI query:
>
> How can I find a section of config given a line which is 'inside' the
> section. For instance given the following
>
>
> user marge {
> uid 2012;
> class super-user;
> authentication {
> encrypted-password
> "$1$Q5wrLnUs$zwwewew30U6/O1sWMP0yziY.ysh1"; ## SECRET-DATA
> }
> }
>
> I'd like to do something like the below but see the whole "user" section.
> Here "find" finds the line and prints all after it. Is there somethign like
> "find and print containing section" ?
show | display set | match user
this will show you the whole set commands under the user section.
More information about the juniper-nsp
mailing list