Gateway CLI commands for CVP exercises

From DocWiki

Revision as of 14:06, 12 September 2012 by Tataj (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The following table lists gateway command line commands that are useful for these exercises.

Command Name


Description


en


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.


?


Displays help.


ctrl-z


If you are listing a configuration file on the gateway, stops the listing so you can enter a new command.


sh run


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."


sh startup


Shows the startup configuration.


sh version


Shows hardware and software version information, memory information and more.


sh log


Displays the current log file.


clear logging buffer


Clears all logging information (such as debug information) from the log file.


config t


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.


dir


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.


del <somefilename>


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.


more <somefilename>


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.


debug


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:
  • debug voip dialpeer default - default debugging for dial peers
  • debug voip app vxml inout - VXML subsystem entry/exit messages
no debug


On the command line, enter the debug command, preceded by "no" to turn that specific debug command off. Example: no debug voip dialpeer default


Back: Troubleshooting Tips for Getting Started with CVP

Rating: 0.0/5 (0 votes cast)

Personal tools