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
            }
        }
_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to