do

To execute an EXEC-level command from Configuration mode or any configuration submode, use the do command in any configuration mode.

do arguments

Syntax Description

do

The EXEC command to execute an EXEC-level command from Configuration mode or any configuration submode

arguments

The EXEC command to execute an EXEC-level command (see TableĀ 4-16).

TableĀ 4-16 Command Options for Do Command

Command

Description

application configure

Configures a specific application.

application install

Installs a specific application.

application remove

Removes a specific application.

application start

Starts or enables a specific application

application stop

Stops or disables a specific application.

application upgrade

Upgrades a specific application.

backup

Performs a backup (Cisco CDA and Cisco ADE OS) and places the backup in a repository.

backup-logs

Performs a backup of all the logs on the Cisco CDA server to a remote location.

clock

Sets the system clock on the Cisco CDA server.

configure

Enters Configuration mode.

copy

Copies any file from a source to a destination.

debug

Displays any errors or events for various command situations; for example, backup and restore, configuration, copy, resource locking, file transfer, and user management.

delete

Deletes a file on the Cisco CDA server.

dir

Lists files on the Cisco CDA server.

forceout

Forces the logout of all the sessions of a specific Cisco CDA node user.

halt

Disables or shuts down the Cisco CDA server.

mkdir

Creates a new directory.

nslookup

Queries the IPv4 address or hostname of a remote system.

patch

Installs System or Application patch.

pep

Configures the Inline Posture node.

ping

Determines the IPv4 network activity on a remote system.

ping6

Determines the IPv6 network activity on a IPv6 remote system.

reload

Reboots the Cisco CDA server.

restore

Performs a restore and retrieves the backup out of a repository.

rmdir

Removes an existing directory.

show

Provides information about the Cisco CDA server.

ssh

Starts an encrypted session with a remote system.

tech

Provides Technical Assistance Center (TAC) commands.

telnet

Establishes a Telnet connection to a remote system.

terminal length

Sets terminal line parameters.

terminal session-timeout

Sets the inactivity timeout for all terminal sessions.

terminal session-welcome

Sets the welcome message on the system for all terminal sessions.

terminal terminal-type

Specifies the type of terminal connected to the current line of the current session.

traceroute

Traces the route of a remote IP address.

undebug

Disables the output (display of errors or events) of the debug command for various command situations; for example, backup and restore, configuration, copy, resource locking, file transfer, and user management.

write

Erases the startup configuration that forces to run the setup utility and prompt the network configuration, copies the running configuration to the startup configuration, displays the running configuration on the console.

Command Default

No default behavior or values.

Command Modes

Configuration or any configuration submode

Usage Guidelines

Use this command to execute EXEC commands (such as show, clear, and debug commands) while configuring your server. After the EXEC command executes, the system will return to the configuration mode you were using.

Examples

/admin(config)# do show run

Generating configuration...

!

hostname cda

!

ip domain-name cisco.com

!

interface GigabitEthernet 0

ip address 172.23.90.113 255.255.255.0

ipv6 address autoconfig

!

ip name-server 171.70.168.183

!

ip default-gateway 172.23.90.1

!

clock timezone EST

!

ntp server time.nist.gov

!

username admin password hash $1$JbbHvKVG$xMZ/XL4tH15Knf.FfcZZr. role admin

!

service sshd

!

backup-staging-url nfs://loc-filer02a:/vol/local1/private1/jdoe

!

password-policy

lower-case-required

upper-case-required

digit-required

no-username

disable-cisco-passwords

min-password-length 6

!

logging localhost

logging loglevel 6

!

--More--

 

/admin(config)#