160
undo view
View
Job view
Default Level
3: Manage level
Parameters
view-name
: Specifies name of the view in which commands in the scheduled task are
executed. A view name is a string of 1 to 90 characters.
Description
Use the
view
command to specify the view in which the commands contained in the
scheduled task are automatically executed.
Use the
undo view
command to remove the configuration.
By default, no view is specified for the scheduled task.
Only one view can be specified for a scheduled task. All the commands in the task are
automatically executed in the specified view. If different views are specified by
executing the
view
view-name
command repeatedly, only the last configuration takes
effect.
The view must be currently supported by the system, with its name specified using its
complete format but not an abbreviation. Most commonly used view names include:
monitor
for user view,
system
for system view, and
Vlan-interfacex
for VLAN interface
view.
Related commands:
job
and
time
.
Examples
Configure a task to be automatically executed in system view.
<Sysname> system-view
[Sysname] job creatvlan
[Sysname-job-creatvlan] view system