Gateway CLI commands for CVP exercises
m (1 revision)
Latest revision as of 18:55, 12 September 2012
The following table lists gateway command line commands that are useful for these exercises.
||Enter enable mode. You must be in this mode to perform most operations except viewing logs. You will need to furnish the gateway's enable password.
||If you are listing a configuration file on the gateway, stops the listing so you can enter a new command.
||Shows the running configuration.
When the gateway displays the configuration, it will display more after a screen full of data. Press <Enter> to show one more line; press the <Spacebar> to show one more "page."
||Shows the startup configuration.
||Shows hardware and software version information, memory information and more.
||Displays the current log file.
|clear logging buffer
||Clears all logging information (such as debug information) from the log file.
||Enters terminal configuration mode. In this mode you can enter changes to the running configuration. Configuration mode is described in the section Using Terminal Configuration Mode to Alter the Running Configuration.
Use Ctrl-z to leave terminal configuration mode.
|copy run <filename>
||Copies the running configuration to the filename you specify. The file will be created in the gateway's root directory. Press <Enter> at the initial confirmation. Then y <Enter> to complete the copy command.
|copy startup <filename>
||Copies the startup configuration to the filename you specify. The file will be created in the gateway's root directory. Press <Enter> at the initial confirmation. Then y <Enter> to complete the copy command.
|copy running-config startup-config
||Overwrites the current startup configuration file with the current running configuration.
|copy <mysavedconfig> startup
||Copies a previously saved configuration file back to the startup configuration. If you have saved a copy of the startup config file before you started working on these exercises, this command could be used to restore the startup configuration to its original values so you can perform the exercises again or perform a variation of the exercises. You will also need to use the reload command to transfer the restored startup configuration to the running configuration.
||Displays the list of files in the root directory (assuming you have not changed directories). Can use * as a wildcard, example: dir *.tcl displays all the files with the .tcl extension.
||Deletes a filename such as a configuration file you previously saved. The system will provide two confirmations. For the first, just examine the filename and path and be sure it is correct, then press <Enter>. If you try to confirm the first message with a y, the system will try to delete a file named y. Confirm the second prompt with y.
||Display the contents of the file. If the file has more lines than display on one screen, press <Enter> to display an additional line, <Spacebar> to display an additional screenful of lines.
||There are a large number of debug commands. These commands put additional information into the gateway's log files.
To show the first level of debug command, in enable mode, enter: debug ?
To see additional layers, enter an expanded command followed by the "?" such as: debug voip ?
Some helpful commands for troubleshooting these exercises are:
||On the command line, enter the debug command, preceded by "no" to turn that specific debug command off. Example: no debug voip dialpeer default|