dump running or startup config (for comparison)
[dell-switch] / sw-running-config.sh
1 #!/bin/sh -e
2
3 sw=$1
4
5 config=$( basename $0 | sed -e 's/^sw-//' -e 's/.sh$//' )
6
7 NO_LOG=1 ./dell-switch.pl $sw "copy $config tftp://10.20.0.216/$sw"
8 cd running-config
9 git add $sw
10 git commit -m "$sw $config"