软件版本7.1.070,想实现按照时间段供电。在web管理中,没有找到。谢谢大家。
(0)
最佳答案
可以参考下面的案例,改成poe的命令
https://www.h3c.com/cn/d_201908/1221621_30005_0.htm#aa_156
对Device进行配置,在星期一到星期五的上午八点到下午十八点开启GigabitEthernet1/0/1和GigabitEthernet1/0/2,其它时间关闭端口,以便起到有效节能的作用。
图1-2 定时执行任务典型配置举例组网图
# 进入系统视图。
<Sysname> system-view
# 创建关闭GigabitEthernet1/0/1的Job。
[Sysname] scheduler job shutdown-GigabitEthernet1/0/1
[Sysname-job-shutdown-GigabitEthernet1/0/1] command 1 system-view
[Sysname-job-shutdown-GigabitEthernet1/0/1] command 2 interface gigabitethernet 1/0/1
[Sysname-job-shutdown-GigabitEthernet1/0/1] command 3 shutdown
[Sysname-job-shutdown-GigabitEthernet1/0/1] quit
# 创建开启GigabitEthernet1/0/1的Job。
[Sysname] scheduler job start-GigabitEthernet1/0/1
[Sysname-job-start-GigabitEthernet1/0/1] command 1 system-view
[Sysname-job-start-GigabitEthernet1/0/1] command 2 interface gigabitethernet 1/0/1
[Sysname-job-start-GigabitEthernet1/0/1] command 3 undo shutdown
[Sysname-job-start-GigabitEthernet1/0/1] quit
# 创建关闭GigabitEthernet1/0/2的Job。
[Sysname] scheduler job shutdown-GigabitEthernet1/0/2
[Sysname-job-shutdown-GigabitEthernet1/0/2] command 1 system-view
[Sysname-job-shutdown-GigabitEthernet1/0/2] command 2 interface gigabitethernet 1/0/2
[Sysname-job-shutdown-GigabitEthernet1/0/2] command 3 shutdown
[Sysname-job-shutdown-GigabitEthernet1/0/2] quit
# 创建开启GigabitEthernet1/0/2的Job。
[Sysname] scheduler job start-GigabitEthernet1/0/2
[Sysname-job-start-GigabitEthernet1/0/2] command 1 system-view
[Sysname-job-start-GigabitEthernet1/0/2] command 2 interface gigabitethernet 1/0/2
[Sysname-job-start-GigabitEthernet1/0/2] command 3 undo shutdown
[Sysname-job-start-GigabitEthernet1/0/2] quit
# 配置定时执行任务,使Device在星期一到星期五的上午八点开启pc1、pc2对应的以太网端口。
[Sysname] scheduler schedule START-pc1/pc2
[Sysname-schedule-START-pc1/pc2] job start-GigabitEthernet1/0/1
[Sysname-schedule-START-pc1/pc2] job start-GigabitEthernet1/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-GigabitEthernet1/0/1
[Sysname-schedule-STOP-pc1/pc2] job shutdown-GigabitEthernet1/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)
您好,请知:
可以使用调度工具进行POE供电。参考命令如下:
1、配置调度工具
[H3C]scheduler job zhenduanwenjian_caiji //创建调度工具job,命名为zhenduanwenjian_caiji
[H3C-job-zhenduanwenjian_caiji]command int range gi 1/0/1 to gi 1/0/2 //执行第一条命令,批量进入1口和2口
[H3C-job-zhenduanwenjian_caiji]command 2 poe enable //执行第二条命令,开启POE功能
[H3C-job-zhenduanwenjian_caiji]quit
2、配置调度策略
[H3C]scheduler schedule zhenduanwenjian_caiji //创建调度策略
[H3C-schedule-zhenduanwenjian_caiji]job zhenduanwenjian_caiji //调用调度工具
[H3C-schedule-zhenduanwenjian_caiji]time repeating at 7:41 //配置运行的时间为每天7点41分,这个仅仅是参考,可根据需求进行设置
[H3C-schedule-zhenduanwenjian_caiji]quit
(2)
谢谢,您的回答也是正确的。
照着先将一个端口测试,运行一段时间后,所有端口都按照时间段运行poe
dis scheduler job
Job name: shutdown-poe-gig1/0/15
system-view
interface gigabitethernet 1/0/15
undo poe enable
quit
Job name: start-poe-gig1/0/15
system-view
interface gigabitethernet 1/0/15
poe enable
quit
dis scheduler schedule
Schedule name : stat-poe1/0/15
Schedule type : Run on every day at 08:00:00
Start time : Wed Aug 5 08:00:00 2020
Last execution time : Yet to be executed
-----------------------------------------------------------------------
Job name Last execution status
start-poe-gig1/0/15 -NA-
Schedule name : stop-poe1/0/15
Schedule type : Run on every day at 23:00:00
Start time : Tue Aug 4 23:00:00 2020
Last execution time : Yet to be executed
-----------------------------------------------------------------------
Job name Last execution status
shutdown-poe-gig1/0/15 -NA-
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明