Troubleshooting command line errors
2.2.9 This page will show students how to locate and fix command line errors.
Command line errors occur primarily from typing mistakes. If a command keyword is incorrectly typed, the user interface uses the caret symbol (^) to identify and isolate the error. The ^ appears at the point in the command string where an incorrect command, keyword, or argument was entered. The error location indicator and interactive help system allow the user to easily find and correct syntax errors.
Router#clock set 13:32:00 23 February
99
^
% Invalid input detected at '^' marker.
The caret symbol (^) and help response indicate an error at 99. To list the correct syntax, enter the command up to the point where the error occurred and then enter a question mark (?):
Router#clock set 13:32:00 23 February ?
<1993-2035> Year
Router#clock set 13:32:00 23 February
Use the correct syntax to add the year and press Enter or Return to execute the command.
Router#clock set 13:32:00 23 February 1999
If a command line is entered incorrectly, and the Enter key is pressed, the Up Arrow can be pressed to repeat the last command. Use the Right Arrow and Left Arrow keys to move the cursor to the location where the mistake was made. Then make the correction. If something needs to be deleted, use the Backspace key.
The next page will discuss the show version command.
Sunday, May 2, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment