Getting 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: Getting 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 informationbfd Clear Bidirectional Forwarding Detection informationbgp Clear Border Gateway Protocol informationcli Clear command-line interface settingsfirewall Clear firewall countershelper Clear port-forwarding helper informationigmp Clear Internet Group Management Protocol informationike Clear IKE informationilmi Clear interim local management interface statisticsinterfaces Clear interface informationipsec Clear IP Security informationipv6 Clear IP version 6 informationisis Clear Intermediate System-to-Intermediate System informationldp Clear Label Distribution Protocol informationlog Clear contents of log filemld Clear multicast listener discovery informationmpls Clear Multiprotocol Label Switching informationmsdp Clear Multicast Source Discovery Protocol informationmulticast Clear multicast informationospf Clear Open Shortest Path First informationospf3 Clear Open Shortest Path First version 3 informationpgm Clear Pragmatic Generalized Multicast informationpim Clear Protocol Independent Multicast informationrip Clear Routing Information Protocol informationripng Clear Routing Information Protocol for IPv6 informationroute Clear routing table informationrsvp Clear Resource Reservation Protocol informationservices Clear service applications informationsnmp Clear Simple Network Management Protocol informationsystem Clear system informationvpls Clear VPLS informationvrrp Clear Virtual Router Redundancy Protocol statisticsuser@host> clear