02-07-2019 01:51 PM
# restart inline-power via CLI
# usage: run script restart-poe ARG1 #=Port-Number
enable cli scripting
disable inline-power port $ARG1
enable inline-power port $ARG1
save config
yes
TEST-SW.2 # run script restart-poe.xsf 1
Error in script "restart-poe.xsf", line 4
%% Unrecognized command: "disable inline-power port $ARG1"
%% Invalid port number detected.
Error in script "restart-poe.xsf", line 5
%% Unrecognized command: "enable inline-power port $ARG1"
%% Invalid port number detected.
Error in script "restart-poe.xsf", line 7
%% Unrecognized command: "yes"
%% Invalid input detected.
TEST-SW.3 #
02-07-2019 02:54 PM
02-07-2019 02:38 PM
# restart inline-power via CLI
# usage: run script restart-poe X or Y:X
enable cli scripting
disable inline-power port $CLI.ARGV1
enable inline-power port $CLI.ARGV1
save config
02-07-2019 01:57 PM