shutdown port, add no at end to revert it
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 7 Jul 2018 15:32:56 +0000 (17:32 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 7 Jul 2018 15:32:56 +0000 (17:32 +0200)
ssh-switch-port-shutdown sw-b200-2 2 no

will bring port up

ssh-switch-port-shutdown [new file with mode: 0755]

diff --git a/ssh-switch-port-shutdown b/ssh-switch-port-shutdown
new file mode 100755 (executable)
index 0000000..e7fe584
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -xe
+
+NO_LOG=1 ./dell-switch.pl $1 'configure' "interface ethernet g$2" "$3 shutdown" 'exit' 'exit'