show all roots, use log git repository
[dell-switch] / ssh-switch-port-down-up
1 #!/bin/sh -xe
2
3 sw=$1
4 if=$2
5
6 ethernet_if=$( echo $if | sed -e 's/^g/ethernet g/' -e 's/^Gi/Gigabitethernet /' )
7
8 NO_LOG=1 ./dell-switch.pl $sw 'configure' "interface $ethernet_if" "shutdown" "no shutdown" 'exit' 'exit'