start documenting switch replacement
[dell-switch] / ssh-switch-port-description
1 #!/bin/sh -xe
2
3 sw=$1 ; shift
4 port=$1 ; shift
5 if [ -z "$1" ] ; then
6         description="no description"
7 else
8         description="description $*"
9 fi
10
11 NO_LOG=1 ./dell-switch.pl $sw 'configure' "interface ethernet g$port" "$description" 'exit' 'exit' 'copy running-config startup-config'