Get Help About Commands
The CLI provides context-sensitive help at every level of the command hierarchy. The help information tells you which commands are available at the current level in the hierarchy and provides a brief description of each.
To get help while in the CLI, type
?. You do not need to pressEnterafter typing the question mark. What you see on the screen depends on when and where you type the question mark:
- If you type the question mark at the command-line prompt, the CLI lists the available commands and options.
- If you type the question mark after entering the complete name of a command or command option, the CLI lists the available commands and options, then redisplays the command names and options that you typed.
- If you type the question mark in the middle of a command name, the CLI lists possible command completions that match the letters you have entered so far, then redisplays the letters that you typed.
Examples: Get Help with Commands
In this example, all available commands are listed at the top level of the command hierarchy:
user@host>?Possible completions:clear Clear information in the systemconfigure Manipulate software configuration informationfile Perform file operationshelp Provide help informationmonitor Real-time debuggingmtrace Trace multicast path from a source to a receiverping Ping a remote targetquit Exit the management sessionrequest Make system-level requestsrestart Restart a software processset Set CLI properties, date, time, craft display textshow Show information about the systemssh Open a secure shell to another hoststart Start a software processtelnet Telnet to another hosttest Diagnostic debugging commandstraceroute Trace the route to a remote hostuser@host>List all commands that start with the letter
c:user@host>c?Possible completions:clear Clear information in the systemconfigure Manipulate software configuration informationuser@host> cList all available
clearcommands:user@host>clear?Possible completions:arp Clear address-resolution informationbgp Clear BGP informationchassis Clear chassis informationfirewall Clear firewall countersigmp Clear IGMP informationinterfaces Clear interface informationisis Clear IS-IS informationldp Clear LDP informationlog Clear contents of a log filempls Clear MPLS informationmsdp Clear MSDP informationmulticast Clear Multicast informationospf Clear OSPF informationpim Clear PIM informationrip Clear RIP informationroute Clear routing table informationrsvp Clear RSVP informationsnmp Clear SNMP informationsystem Clear system statusvrrp Clear VRRP statistics informationuser@host> clear