|
|
Table Of Contents
Using the Command-Line Interface
Accessing the Command-line Interface
Starting the Command-line Interface
Using the Command-line Interface
Stopping the Command-line Interface
Using the Command-Line Interface
The VPN 3002 Hardware Client command-line interface (CLI) is a menu- and command-line-based configuration, administration, and monitoring system built into the VPN 3002. You use it via the system console or a Telnet or SSH session.
You can use the command-line interface to completely manage the system. You can access and configure the same parameters as the HTML-based VPN 3002 Hardware Client Manager.
This chapter describes general features of the command-line interface and how to access and use it. It does not describe the individual menu items and parameter entries. For information on specific parameters and options, see the corresponding section of the Manager in this manual. For example, to understand Ethernet interface configuration parameters and choices, see Configuration | Interfaces | Private/Public in Chapter 2, "Interfaces".
Accessing the Command-line Interface
You can access the command-line interface via the system console or via a Telnet or SSH client.
Console Access
To use the console:
1.
Connect a PC to the VPN 3002 via an RJ-45 serial cable (which Cisco supplies with the system) between the console port on the VPN 3002 and the COM1 or serial port on the PC. For more information, see the VPN 3002 Hardware Client Getting Started guide.
2.
Start a terminal emulator (e.g., HyperTerminal) on the PC. Configure a connection to COM1 with port settings of:
9600 bits per second.
8 data bits.
No parity.
1 stop bit.Set the emulator for VT100 emulation, or let it auto-detect the emulation type.
3.
Press Enter on the PC keyboard until you see the login prompt. (You might see a password prompt and error messages as you press Enter; ignore them and stop at the login prompt.)
Login: _Telnet or SSH Access
To access the command-line interface via a Telnet or SSH client:
1.
Enable the Telnet or SSH server on the VPN 3002. (They are both enabled by default on the private network.) See the Configuration | System | Management Protocols | Telnet screen on the Manager.
2.
Start the Telnet or SSH client, and connect to the VPN 3002 using these parameters:
Host Name or Session Name = The IP address on the VPN 3002 private interface; e.g., 10.10.147.2
Port = Telnet (default Telnet port is 23, SSH port is 22)
Terminal Type = VT100 or ANSI
3.
The VPN 3002 displays a login prompt.
Login: _Starting the Command-line Interface
You start the command-line interface by logging in.
Login usernames and passwords for both console and Telnet access are the same as those configured and enabled for administrators. See the Administration | Access Rights | Administrators screen. By default, only
adminis enabled.This example uses the factory-supplied default admin login and password. If you have changed them, use your entries.
At the prompts, enter the administrator login name and password. Entries are case-sensitive.
Login: adminPassword: admin (The CLI does not show your entry.)The CLI displays the opening welcome message, the main menu, and the
Main ->prompt.Welcome toCisco SystemsVPN 3002 Hardware ClientCommand Line InterfaceCopyright (C) 1998-2001 Cisco Systems, Inc.1) Configuration2) Administration3) Monitoring4) Save changes to Config file5) Help Information6) ExitMain -> _Using the Command-line Interface
This section explains how to:
•
Choose menu items.
•
Enter values for parameters and options.
•
Specify configured items by number or name.
•
Navigate quickly, using shortcuts, through the menus.
•
Display a brief help message.
•
Save entries to the system configuration file.
•
Stop the command-line interface.
•
Understand administrator access rights.
The command-line interface displays menus or prompts at every level to guide you in choosing configurable options and setting parameters. The prompt always shows the menu context.
Choosing Menu Items
To use the command-line interface, enter a number at the prompt that corresponds to the desired menu item, and press Enter.
For example, this is the Configuration > System > General > System Identification menu:
1) Set System Name2) Set Contact3) Set Location4) BackGeneral -> _Enter
1to set the system name.Entering Values
The command-line interface shows any current or default value for a parameter in brackets
[ ]. To change the value, enter a new value at the prompt. To leave the value unchanged, just press Enter.Continuing the example above, this is the prompt to enter a value for the system name:
> Host NameGeneral -> [ Lab VPN ] _You can enter a new name at the prompt, or just press Enter to keep the current name.
Navigating Quickly
There are two ways to move quickly through the command-line interface: shortcut numbers, and the Back/Home options. Both ways work only when you are at a menu, not when you are at a value entry.
Using Shortcut Numbers
When you become familiar with the structure of the interface, which parallels the HTML-based
VPN 3002 Hardware Client Manager, you can quickly access any level by entering a series of numbers separated by periods. For example, suppose you want to change the Access Rights for Administrators. The series of menus that gets to that level from the main menu is:
Main -> _1) Configuration2) Administration3) Monitoring4) Save changes to Config file5) Help Information6) ExitMain -> 2 (Administration)1) Software Update2) System Reboot3) Ping4) Traceroute5) Access Rights6) File Management7) Certificate Management8) BackConfig -> 5 (Access Rights)
1) Administrators
2) Access Settings
3) Back
Admin ->1
Administrative Users
------------------------
Username Enabled
------------------------
admin Yes
config No
isp No
------------------------
1) Modify Administrator
2) Back
Admin ->1
> Which Administrator to Modify
Admin ->As a shortcut, you can just enter
2.5.1.1at theMain->prompt, and move directly to the Modify Administrators menu:1) Configuration2) Administration3) Monitoring4) Save changes to Config file5) Help Information6) ExitMain -> 2.5.1.1
> Which Administrator to Modify
Admin ->
Note
At this last prompt, you cannot use a number shortcut. At this prompt, you must type in the name of the administrator you want to modify, for example,
config.
Admin -> configThe prompt always shows the current context in the menu structure.
Using Back and Home
Most menus include a numbered Back choice. Instead of entering a number, you can just enter
borBto move back to the previous menu.Also, at any menu level, you can just enter
horHto move home to the main menu.Getting Help Information
To display a brief help message, enter
5at the main menu prompt. The command-line interface explains how to navigate through menus and enter values. This help message is available only at the main menu.Cisco Systems. Help information for the Command Line InterfaceFrom any menu except the Main menu.-- 'B' or 'b' for Back to previous menu.-- 'H' or 'h' for Home back to the main menu.For Data entry-- Current values are in '[ ]'s. Just hit 'Enter' to accept value.1) View Help Again2) BackHelp -> _To return to the main menu from this help menu, enter
horH(for home), or2orborB(for back) at the prompt.Saving the Configuration File
Configuration and administration entries take effect immediately and are included in the active, or running, configuration. However, if you reboot the VPN 3002 without saving the active configuration, you lose any changes.
To save changes to the system configuration (CONFIG) file, navigate to the main menu. At the prompt, enter 4 for
Save changes to Config file.1) Configuration2) Administration3) Monitoring4) Save changes to Config file5) Help Information6) ExitMain -> 4The system writes the active configuration to the CONFIG file and redisplays the main menu.
Stopping the Command-line Interface
To stop the command-line interface, navigate to the main menu and enter 6 for Exit at the prompt:
1) Configuration2) Administration3) Monitoring4) Save changes to Config file5) Help Information6) ExitMain -> 6DoneMake sure you save any configuration changes before you exit from the CLI.
Understanding Access Rights
What you see and can configure depends on administrator access rights. If you do not have permission to configure an option, you see
-), rather than a number, in menus. For example, here is the main menu for the default Monitor administrator:-) Configuration-) Administration3) Monitoring-) Save changes to Config file5) Help Information6) ExitMain -> _The default Monitor administrator can only monitor the VPN 3002, not configure system parameters or administer the system.
See Administration | Access Rights | Administrators in Chapter 11, "Administration", for more information.
Menu Reference
This section shows all the menus in the first three levels below the main menu. (There are many additional menus below the third level; and within the first three levels, there are some non-menu parameter settings. To keep this chapter at a reasonable size, we show only the menus here.)
The numbers in each heading are the keyboard shortcut to reach that menu from the main menu. For example, entering
1.3.1at the main menu prompt takes you to the Configuration > System Management> IP Routing menu.
Note
The menus and options, and thus the keyboard shortcuts, might change with new software versions. Please check familiar shortcuts carefully when using a new release.
Main Menu
1) Configuration2) Administration3) Monitoring4) Save changes to Config file5) Help Information6) ExitMain -> _1 Configuration
1) Quick Configuration2) Interface Configuration3) System Management4) Policy Management5) BackConfig -> _1.1 Configuration > Quick Configuration
See the VPN 3002 Hardware Client Getting Started guide for complete information about Quick Configuration.
1.2 Configuration > Interface Configuration
This table shows current IP addresses...1) Configure the Private Interface2) Configure the Public Interface3) BackInterfaces -> _1.2.1 or 1.2.2 Configuration > Interface Configuration > Configure the Private/Public Interface
1) Interface Setting (Disable or Static IP)2) Select Internet Speed3) Select Duplex4) Set MTU5) BackPrivate/Public Interface -> _1.3 Configuration > System Management
1) Servers (DNS)2) Tunneling Protocols (IPSec Parameters)3) IP Routing (static routes, etc.)4) Management Protocols (Telnet, HTTP, etc.)5) Event Configuration6) General Config (system name, time, etc.)7) BackSystem -> _1.3.1 Configuration > System Management > Servers
1) DNS Servers2) BackServers -> _1.3.2 Configuration > System Management > Tunneling Protocols
1) IPSec2) BackTunnel -> _1.3.3 Configuration > System Management > IP Routing
1) Static Routes2) Default Gateway3) DHCP4) DHCP Options5) BackRouting -> _1.3.4 Configuration > System Management > Management Protocols
1) Configure HTTP/HTTPS2) Configure Telnet3) Configure SNMP4) Configure SNMP Community Strings5) Configure SSL6) Configure SSH7) Configure XML8) BackNetwork -> _1.3.5 Configuration > System Management > Event Configuration
1) General2) Classes3) Trap Destinations4) Syslog Servers5) BackEvent -> _1.3.6 Configuration > System Management > General Config
1) System Identification2) System Time and Date3) BackGeneral -> _1.4 Configuration > Policy Management
1) Traffic Management2) Certificate Validation3) BackPolicy -> _1.4.1 Configuration > Policy Management > Traffic Management
1) Port Address Translation (PAT)2) BackTraffic ->1.4.2 Configuration > Policy Management > Certificate Validation
1) Enable/disable the matching criteria2) Modify the matching criteria3) BackCertificate Validation ->2 Administration
1) Software Update2) System Reboot3) Ping4) Traceroute5) Access Rights6) File Management7) Certificate Management8) BackAdmin -> _2.1 Administration > Software Update
Name of the file for main code upgrade? [vpn3002c.bin]IP address of the host where the file resides? [10.10.66.10](M)odify any of the above (C)ontinue or (E)xit? [M]2.2 Administration > System Reboot
1) Cancel Scheduled Reboot/Shutdown2) Schedule Reboot3) Schedule Shutdown4) BackAdmin -> _2.2.2 Administration > System Reboot > Schedule Reboot
1) Save active Configuration and use it at Reboot2) Reboot without saving active Configuration file3) Reboot ignoring the Configuration file4) BackAdmin -> _2.2.3 Administration > System Reboot > Schedule Shutdown
1) Save active configuration and use it at next reboot2) Shutdown without saving active Configuration file3) Shutdown, ignoring the Configuration file at next reboot4) BackAdmin -> _2.3 Administration > Ping
> Ping hostAdmin -> _2.4 Administration > Traceroute
> Destination Address/HostnameAdmin -> _2.5 Administration > Access Rights
1) Administrators2) Access Settings3) BackAdmin -> _2.5.1 Administration > Access Rights > Administrators
Admin -> 1Administrative Users------------------------Username Enabled------------------------admin Yesconfig Noisp No------------------------1) Modify Administrator2) BackAdmin ->2.5.2 Administration > Access Rights > Access Settings
1) Set Session Timeout2) Set Session Limit3) Set Config File Encryption4) Zeroize/Regenerate DES Config File Encryption Key5) BackAdmin -> _2.6 Administration > File Management
List of Files-------------CONFIG CONFIG.BAK1) View Config File2) Delete Config File3) View Backup Config File4) Delete Backup Config File5) View Crashdump File6) Delete Crashdump File7) View Savelog File8) Delete Savelog File9) View Memory Report10) Delete Memory Report11) Swap Config Files12) BackFile -> _2.6.11 Administration > File Management > Swap Configuration Files
Every time the active configuration is saved,......1) Swap2) BackAdmin -> _2.7 Administration > Certificate Management
1) Enrollment2) Installation3) Certificate Authorities4) Identity Certificates5) SSL Certificates6) Enrollment Status7) SSH Host Key8) BackCertificates -> _2.7.2 Administration > Certificate Management > Installation
1) Install Certificate Authority2) Install Certificate obtained via enrollment3) BackCertificates -> _2.7.3 Administration > Certificate Management > Certificate Authorities
Certificate Authorities...1) View Certificate2) Delete Certificate3) Configure Certificate4) BackCertificates -> _2.7.4 Administration > Certificate Management > Identity Certificates
Identity Certificates...1) View Certificate2) Delete Certificate3) Renew Certificate3) BackCertificates -> _2.7.5 Administration > Certificate Management > SSL Certificates
1) Private SSL Certificate2) Public SSL Certificate3) BackSSL Certificates -> _2.7.6 Administration > Certificate Management > Enrollment Status
1) View Enrollment Request2) Install/Activate Enrollment Request3) Resubmit Enrollment Request4) Delete/Cancel Enrollment Request5) BackCertificates -> _2.7.7.Administration > Certificate Management > SSH Host Key
1) Generate SSH Host Key2) BackSSH Certificate -> _3 Monitoring
1) Routing Table2) Event Log3) System Status4) User Status5) General Statistics6) BackMonitor -> _3.1 Monitoring > Routing Table
Routing Table..'q' to Quit, '<SPACE>' to Continue ->..1) Refresh Routing Table2) BackRouting -> _3.2 Monitoring > Event Log
1) Configure Log viewing parameters2) View Event Log3) Clear Log4) BackLog -> _3.2.2 Monitoring > Event Log > View Event Log
[Event Log entries]...1) First Page2) Previous Page3) Next Page4) Last Page5) BackLog -> _3.3 Monitoring > System Status
System Status...1) Refresh System Status2) Reset System Status3) Restore System Status4) Connect Now5) Disconnect Now6) View Memory Status7) BackStatus -> _3.4 Monitoring > User Status
Authenticated Users-------------------Username IP Address MAC Address Login Time Duration-------------------------------------------------------------------------------1) Refresh User Status2) Log out User3) BackSessions ->3.5 Monitoring > General Statistics
1) Protocol Statistics2) Server Statistics3) MIB II Statistics4) BackGeneral -> _3.4.1 Monitoring > General Statistics > Protocol Statistics
1) IPSec Statistics2) HTTP Statistics3) Telnet Statistics4) DNS Statistics5) SSL Statistics6) SSH Statistics7) PPPoE Statistics8) NAT Statistics9) BackGeneral -> _3.4.2 Monitoring > General Statistics > Server Statistics
1) DHCP Statistics2) BackGeneral -> _3.4.3 Monitoring > General Statistics > MIB II Statistics
1) Interface-based2) System-level3) BackMIB2 -> _
Posted: Tue Apr 19 13:22:45 PDT 2005
All contents are Copyright © 1992--2005 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.