ezdo(n) 1.0 ezdo "Easy Do Command"
NAME
ezdo - Perform a specific task on a Cisco device.
SYNOPSIS
package require libcisco
ezdo savecfg ?options? ?SessionId? |
ezdo clearcntrs ?SessionId? |
ezdo debug ?SessionId? Args |
ezdo undebug ?SessionId? Args |
|
DESCRIPTION
The ezdo command is used to perform a specifc task on Cisco
devices.
The first argument to ezdo specifies the task to be performed
on the target device. A list of valid tasks and their associated options
is detailed below.
Note: Before making a call to ezdo, a session must first be opened
to the target device using the session open command.
- ezdo savecfg ?options? ?SessionId?
-
Saves the configuration in RAM to NVRAM if the configuration
has been changed by any of the commands within this package.
SessionId identifies the session upon which the command will be
issued. If SessionId is not specified, the command will be issued
on the last session to be opened.
The following options are supported:
-force
-- (end of options)
The -force option will force this function to save the config
regardless of whether or not a configuration change has been made by any
of the commands in this package. This effectively overrides the default
logic which causes this function to save the config only if a
the configuration has been changed by a command in this package.
On success, ezdo savecfg returns 0.
On error, a short text message is returned beginning with the string "err".
- ezdo clearcntrs ?SessionId?
-
Clears all counters on the target system.
SessionId identifies the session upon which the command will be
issued. If SessionId is not specified, the command will be issued
on the last session to be opened.
On success, ezdo clearcntrs returns 0.
On error, a short text message is returned beginning with the string "err".
- ezdo debug ?SessionId? Args
-
Enable debugging on the target device. (IOS only)
SessionId identifies the session upon which the command will be
issued. If SessionId is not specified, the command will be issued
on the last session to be opened.
Args is one or more arguments to be concatenated together and
evaluated on the target system as a debug command.
On success, ezdo debug returns 0.
On error, a short text message is returned beginning with the string "err".
- ezdo undebug ?SessionId? Args
-
Disable debugging on the target device. (IOS only)
SessionId identifies the session upon which the command will be
issued. If SessionId is not specified, the command will be issued
on the last session to be opened.
Args is one or more arguments to be concatenated together and
evaluated on the target system as an undebug command.
On success, ezdo undebug returns 0.
On error, a short text message is returned beginning with the string "err".
EXAMPLE
The following code will open a session to 192.168.1.1, put the device in
"enable" mode, and clear the counters
-
session open 192.168.1.1 cisco
session enable san-fran
ezdo clearcntrs
session close
SEE ALSO
session(n), ezset(n), ezget(n)
KEYWORDS
ezdo, clear, counters, save, config