User Manual

Table Of Contents
command : Command
[Initial value]
None
[Input mode]
Schedule template mode
[Description]
This sets the commands to be executed when the trigger for a schedule function starts.
If this command is executed with the "no" syntax, commands with the specified numbers are deleted.
[Note]
If both the “cli-command” command and “script” command are configured for the same schedule template, the “script”
command will be executed, and the “cli-command” will not operate.
If multiple commands are specified, the commands are executed beginning with the command with the smallest command
number.
If multiple commands are specified, the remaining commands will still be executed even if the command results in an execution
error while running.
As commands are executed in privileged EXEC mode when the trigger starts, some commands may need to be configured
along with commands that switch to an appropriate mode.
The last “write” command must be executed to save the settings.
Commands cannot be specified in abbreviated form. For instance, you must write “interface port1.1” and not “int port1.1” when
entering the input mode for Port1.1 of the interface.
The following commands cannot be executed.
backup system, boot prioritize sd, no boot prioritize sd, certificate user, commands beginning with “clock,” cold start, copy
radius-server local, crypto pki generate ca, no crypto pki generate ca, disable, enable password, exit, firmware-update execute,
firmware-update sd execute, logout, commands beginning with “ntpdate,” commands beginning with “no ntpdate,” password-
encryption, no password-encryption, ping, ping6, quit, reload, restart, restore system, schedule, no schedule, schedule template,
no schedule template, commands beginning with “show,” ssh , ssh-server host key generate, startup-config select, no startup-
config select, system-diagnostics on-demand execute(*1), telnet, traceroute, traceroute6
(*1): system-diagnostics on-demand execute no-confirm can be executed
[Example]
This registers the “copy tech-support sd” command in number #1 of schedule template #1.
SWP2(config)#schedule template 1
SWP2(config-schedule)#cli-command 1 copy tech-support sd
4.26 General maintenance and operation functions
4.26.1 Set host name
[Syntax]
hostname hostname
no hostname [hostname]
[Parameter]
hostname : Single-byte alphanumeric characters and single-byte symbols (63characters or less)
Host name
[Initial value]
hostname SWP2
[Input mode]
global configuration mode
[Description]
Specifies the host name.
120 | Command Reference | Maintenance and operation functions