想要对某个接口进行定点开启关闭poe供电。job命令好像对整个服务器进行配置,没找到针对某个接口进行配置的。
想要对某个接口进行定点开启关闭poe供电。job命令好像对整个服务器进行配置,没找到针对某个接口进行配置的。
(0)
最佳答案
你是想实现什么功能吗,job具体是哪条命令呢,可以贴出来看看吗
(0)
我想在Ethernet1/0/13口,每天7:00开启poe供电,晚上5点关闭poe供电。
1.13.4 定时执行任务典型配置举例 1. 组网需求 对Device进行配置,在星期一到星期五的上午八点到下午十八点开启GigabitEthernet1/0/1和GigabitEthernet1/0/2,其它时间关闭端口,以便起到有效节能的作用。 2. 组网图 图1-3 定时执行任务典型配置举例组网图 3. 配置步骤 # 进入系统视图。 <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 4. 验证配置 # 显示Job的配置信息。 [Sysname] display scheduler job Job name: shutdown-GigabitEthernet1/0/1 system-view interface gigabitethernet 1/0/1 shutdown Job name: shutdown-GigabitEthernet1/0/2 system-view interface gigabitethernet 1/0/2 shutdown Job name: start-GigabitEthernet1/0/1 system-view interface gigabitethernet 1/0/1 undo shutdown Job name: start-GigabitEthernet1/0/2 system-view interface gigabitethernet 1/0/2 undo shutdown # 显示定时任务的运行信息。 [Sysname] display scheduler schedule Schedule name : START-pc1/pc2 Schedule type : Run on every Mon Tue Wed Thu Fri at 08:00:00 Start time : Wed Sep 28 08:00:00 2011 Last execution time : Wed Sep 28 08:00:00 2011 Last completion time : Wed Sep 28 08:00:03 2011 Execution counts : 1 ----------------------------------------------------------------------- Job name Last execution status start-GigabitEthernet1/0/1 Successful start-GigabitEthernet1/0/2 Successful Schedule name : STOP-pc1/pc2 Schedule type : Run on every Mon Tue Wed Thu Fri at 18:00:00 Start time : Wed Sep 28 18:00:00 2011 Last execution time : Wed Sep 28 18:00:00 2011 Last completion time : Wed Sep 28 18:00:01 2011 Execution counts : 1 ----------------------------------------------------------------------- Job name Last execution status shutdown-GigabitEthernet1/0/1 Successful shutdown-GigabitEthernet1/0/2 Successful # 显示Job运行的输出信息。 [Sysname] display scheduler logfile Job name : start-GigabitEthernet1/0/1 Schedule name : START-pc1/pc2 Execution time : Wed Sep 28 08:00:00 2011 Completion time : Wed Sep 28 08:00:02 2011 --------------------------------- Job output ----------------------------------- <Sysname>system-view System View: return to User View with Ctrl+Z. [Sysname]interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1]undo shutdown Job name : start-GigabitEthernet1/0/2 Schedule name : START-pc1/pc2 Execution time : Wed Sep 28 08:00:00 2011 Completion time : Wed Sep 28 08:00:02 2011 --------------------------------- Job output ----------------------------------- <Sysname>system-view System View: return to User View with Ctrl+Z. [Sysname]interface gigabitethernet 1/0/2 [Sysname-GigabitEthernet1/0/2]undo shutdown Job name : shutdown-GigabitEthernet1/0/1 Schedule name : STOP-pc1/pc2 Execution time : Wed Sep 28 18:00:00 2011 Completion time : Wed Sep 28 18:00:01 2011 --------------------------------- Job output ----------------------------------- <Sysname>system-view System View: return to User View with Ctrl+Z. [Sysname]interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1]shutdown Job name : shutdown-GigabitEthernet1/0/2 Schedule name : STOP-pc1/pc2 Execution time : Wed Sep 28 18:00:00 2011 Completion time : Wed Sep 28 18:00:01 2011 --------------------------------- Job output ----------------------------------- <Sysname>system-view System View: return to User View with Ctrl+Z. [Sysname]interface gigabitethernet 1/0/2 [Sysname-GigabitEthernet1/0/2]shutdown
没有scheduler这个命令
具体型号是什么呢,可以提供一下吗
您好,请知:
可以在交换机配置调度工具来实现定点的操作功能,根据您的需求,以下是具体的配置命令,请参考:
V7平台的命令如下:
1、配置调度工作
[H3C]scheduler job beifen //创建调度工作
[H3C-job-beifen]command 1 int gi 1/0/1 //配置第一个命令,进入接口gi 1/0/1
[H3C-job-beifen]command 2 undo poe enable //配置第二个命令,关闭接口POE功能
[H3C-job-beifen]quit
2、配置调度策略
[H3C]scheduler schedule beifen //创建调度策略
[H3C-schedule-beifen]job beifen //调用调度工作
[H3C-schedule-beifen]time repeating at 00:00 month-date last //指定调度策略运行的时间为每个月最后一天的0点
[H3C-schedule-beifen]quit
V5平台的命令如下:
job 1 //创建工作任务1
time 1 repeating at 00:00 command int gi 1/0/1
time 2 repeating at 00:01 command undo poe enable
view 1
quit
(1)
您好,以下是V5平台的命令: V5平台的命令如下: job 1 //创建工作任务1 time 1 repeating at 00:00 command int gi 1/0/1 time 2 repeating at 00:00 command undo poe enable view 1 quit
没有scheduler这个命令
您好,请问您交换机是多少版本的呢?
H3C S3100V2-16TP-PWR-EI,Version 5.20
您好,以下是V5平台的命令: V5平台的命令如下: job 1 //创建工作任务1 time 1 repeating at 00:00 command int gi 1/0/1 time 2 repeating at 00:00 command undo poe enable view 1 quit
我想在Ethernet1/0/13口,每天7:00开启poe供电,晚上5点关闭poe供电。
(0)
https://www.h3c.com/cn/d_202001/1259999_30005_0.htm#_Toc28247484 这有一个举例,可以参考一下
https://www.h3c.com/cn/d_202001/1259999_30005_0.htm#_Toc28247484 这有一个举例,可以参考一下
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
具体型号是什么呢,可以提供一下吗