103
Scheduled task configuration example
Network requirements
Configure scheduled tasks on the Firewall to enable interfaces GigabitEthernet 0/1, GigabitEthernet 0/2,
and GigabitEthernet 0/3 at 8:00 and disabled them at 18:00 on working days every week, to control
the access of the PCs connected to these interfaces.
Figure 67
Network diagram for scheduled task configuration
Configuration procedure
# Enter system view.
<Firewall> system-view
# Create scheduled task
pc1
, and enter its view.
[Firewall] job pc1
# Configure the task to be executed in the view of GigabitEthernet 0/1.
[Firewall-job-pc1] view GigabitEthernet 0/1
# Configure the Firewall to start GigabitEthernet 0/1 at 8:00 on working days every week.
[Firewall-job-pc1] time 1 repeating at 8:00 week-day mon tue wed thu fri command undo
shutdown
# Configure the Firewall to shut down GigabitEthernet 0/1 at 18:00 on working days every week.
[Firewall-job-pc1] time 2 repeating at 18:00 week-day mon tue wed thu fri command shutdown
[Firewall-job-pc1] quit
# Create scheduled task
pc2
, and enter its view.
[Firewall] job pc2
# Configure the task to be executed in the view of GigabitEthernet 0/2.
[Firewall-job-pc2] view GigabitEthernet 0/2
# Configure the Firewall to start GigabitEthernet 0/2 at 8:00 on working days every week.
[Firewall-job-pc2] time 1 repeating at 8:00 week-day mon tue wed thu fri command undo
shutdown
# Configure the Firewall to shut down GigabitEthernet 0/2 at 18:00 on working days every week.
[Firewall-job-pc2] time 2 repeating at 18:00 week-day mon tue wed thu fri command shutdown
[Firewall-job-pc2] quit
# Create scheduled task
pc3
, and enter its view.