最佳答案
https://www.h3c.com/cn/d_201505/868836_30005_0.htm#_Toc419104592
对Device进行配置,在星期一到星期五的上午八点到下午十八点开启GigabitEthernet3/0/1和GigabitEthernet3/0/2,其它时间关闭端口,以便起到有效节能的作用。
图1-1 定时执行任务典型配置举例组网图
# 进入系统视图。
<Sysname> system-view
# 创建关闭GigabitEthernet3/0/1的Job。
[Sysname] scheduler job shutdown-GigabitEthernet3/0/1
[Sysname-job-shutdown-GigabitEthernet3/0/1] command 1 system-view
[Sysname-job-shutdown-GigabitEthernet3/0/1] command 2 interface GigabitEthernet 3/0/1
[Sysname-job-shutdown-GigabitEthernet3/0/1] command 3 shutdown
[Sysname-job-shutdown-GigabitEthernet3/0/1] quit
# 创建开启GigabitEthernet3/0/1的Job。
[Sysname] scheduler job start-GigabitEthernet3/0/1
[Sysname-job-start-GigabitEthernet3/0/1] command 1 system-view
[Sysname-job-start-GigabitEthernet3/0/1] command 2 interface GigabitEthernet 3/0/1
[Sysname-job-start-GigabitEthernet3/0/1] command 3 undo shutdown
[Sysname-job-start-GigabitEthernet3/0/1] quit
# 创建关闭GigabitEthernet3/0/2的Job。
[Sysname] scheduler job shutdown-GigabitEthernet3/0/2
[Sysname-job-shutdown-GigabitEthernet3/0/2] command 1 system-view
[Sysname-job-shutdown-GigabitEthernet3/0/2] command 2 interface GigabitEthernet 3/0/2
[Sysname-job-shutdown-GigabitEthernet3/0/2] command 3 shutdown
[Sysname-job-shutdown-GigabitEthernet3/0/2] quit
# 创建开启GigabitEthernet3/0/2的Job。
[Sysname] scheduler job start-GigabitEthernet3/0/2
[Sysname-job-start-GigabitEthernet3/0/2] command 1 system-view
[Sysname-job-start-GigabitEthernet3/0/2] command 2 interface GigabitEthernet 3/0/2
[Sysname-job-start-GigabitEthernet3/0/2] command 3 undo shutdown
[Sysname-job-start-GigabitEthernet3/0/2] quit
# 配置定时执行任务,使Device在星期一到星期五的上午八点开启pc1、pc2对应的以太网端口。
[Sysname] scheduler schedule START-pc1/pc2
[Sysname-schedule-START-pc1/pc2] job start-GigabitEthernet3/0/1
[Sysname-schedule-START-pc1/pc2] job start-GigabitEthernet3/0/2
[Sysname-schedule-START-pc1/pc2] time repeating at 8:00 week-day mon tue wed thu fri
[Sysname-schedule-START-pc1/pc2] quit
# 配置定时执行任务,使Device在星期一到星期五的下午十八点关闭pc1、pc2对应的以太网端口。
[Sysname] scheduler schedule STOP-pc1/pc2
[Sysname-schedule- STOP-pc1/pc2] job shutdown-GigabitEthernet3/0/1
[Sysname-schedule- STOP-pc1/pc2] job shutdown-GigabitEthernet3/0/2
[Sysname-schedule- STOP-pc1/pc2] time repeating at 18:00 week-day mon tue wed thu fri
[Sysname-schedule- STOP-pc1/pc2] quit
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论