Junos
Junos

Searching Help Topic

‎01-25-2017 04:14 AM

Is there a way to parse through the "help topic" command for key words?  For example, if I need to find the command to bundle rsvp messages, I'd like the ability to just do something like "help topic rsvp * | find bundling".  It appears I can only issue the "help topic rsvp aggregate" command, which requires me to know that the "aggregate" command is for rsvp message bundling.

 

Alternatively, can I view the file housing all the help topics with a "file show X | find bundling", assuming the file is even accessible and I even know the directory location?

 

TIA

-Steve

3 REPLIES 3
Junos

Re: Searching Help Topic

‎01-26-2017 08:34 PM

Hi,

 

There is no option to use "| match" with "help topic" CLI command. If you want to search for some specific entry within a major topic, you can use the "help apropos" command. For example, if you want to search for specific commands or sub-topics within rsvp protocol, you can use "help apropos rsvp" and it will list all the possible commands and help topics associated with rsvp.

 

For example:

labroot@br002.sgp03-re0> help apropos rsvp    
show route protocol rsvp
    Resource Reservation Protocol
show rsvp
    Show Resource Reservation Protocol information
show rsvp interface
    Show RSVP interfaces
show rsvp interface link-management
    Display RSVP interfaces created by LMP
show rsvp neighbor
    Show RSVP neighbors
show rsvp session
    Show active RSVP sessions
show rsvp session ingress
    Display RSVP sessions originating at this router
show rsvp session egress

...

<snip>

clear ddos-protection protocols rsvpv6 states
    Reset RSVPv6 states
clear ddos-protection protocols rsvpv6 culprit-flows
    Cleart all culprit flows for RSVPv6
clear ddos-protection protocols rsvpv6 aggregate
    Clear aggregate for all RSVPv6 traffic information
help topic layer3-vpns examples-vpn ldp-over-rsvp
    Overview of LDP-over-RSVP topology
help topic layer3-vpns examples-vpn ldp-over-rsvp rsvp
    Enable RSVP on provider router
help topic layer3-vpns examples-vpn full-mesh rsvp
    Enable RSVP and MPLS on the provider router
help topic layer3-vpns interprovider mp-ebgp rsvp
    Configure RSVP when using MP-EBGP

 

Hope this helps.

 

---------------------------------------------------------------------------------------------------------
If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
---------------------------------------------------------------------------------------------------------

Hope this helps

--------------------------------------------------------------------------------------------------------
If this post was helpful, please mark this post as an "Accepted Solution".
Kudos are always appreciated!
--------------------------------------------------------------------------------------------------------
Junos

Re: Searching Help Topic

[ Edited ]
‎01-27-2017 06:17 AM

Thanks for the response.  Unfortunately, the apropos command still wouldn't help in this case.  I would still need to know the command for message bundling, which wouldn't help if I didn't know the command.  

 

lab@R4# help apropos rsvp | match bundling

 

I could also perform a "help topic rsvp aggregate" to find the keyword "bundling", but it requires me to still know it falls under the "aggregate" command.

 

lab@R4# help topic rsvp aggregate | find bundling
bundling, RSVP message ID, reliable message delivery, and summary
refresh.
* no-aggregate--Disable RSVP message bundling and summary refresh.
* reliable--Enable RSVP message ID and reliable message delivery.
* no-reliable--Disable RSVP message ID, reliable message delivery, and
summary refresh.

Junos

Re: Searching Help Topic

‎01-28-2017 08:05 AM

I find that help topic is generally the better place to start as you note.  Then use the ? mark to drill to the deepest level you are sure of for the topic.  

 

I would then use "find" instead of "match" after the | .  Find will start displaying the text at the first occurance of the word with all the text and not just the lines that include the match term.

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home