[j-nsp] How to see contatining section ?
Bala Subrahmanyam Venkata
balavenkata at aim.com
Thu Sep 20 08:20:58 EDT 2012
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" ?
test# show | find super-user
class super-user;
authentication {
encrypted-password
"$1$Q5wrLnUs$zwwewew30U6/O1sWMP0yziY.ysh1"; ## SECRET-DATA
}
}
More information about the juniper-nsp
mailing list