FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
fhscripts:get:get_nw_config.sh.html [2018/01/14 23:09] kurihara |
fhscripts:get:get_nw_config.sh.html [2018/02/25 00:42] kurihara ↷ Page moved from fhscripts:get_nw_config.sh.html to fhscripts:get:get_nw_config.sh.html |
||
---|---|---|---|
Line 33: | Line 33: | ||
DATE=`date +%Y%m%d_%H%M` | DATE=`date +%Y%m%d_%H%M` | ||
- | TSERVER=192.168.0.5 | + | TFTPSERVER=192.168.0.5 |
- | TUSER=user01 | + | TFTPUSER=user01 |
- | TDIR=/ | + | TFTPDIR=/ |
- | CONF=${TDIR}/ | + | CONF=${TFTPDIR}/ |
- | # ------------------------------------------ | ||
- | [ ! -d " | ||
- | chmod 777 ${TDIR} | ||
+ | # | ||
+ | [ ! -d " | ||
+ | chmod 777 ${TFTPDIR} | ||
- | # ------------------------------------------ | + | |
+ | #---------------------------------------------------------- | ||
HELP () { | HELP () { | ||
Line 66: | Line 67: | ||
send \" | send \" | ||
expect \"> | expect \"> | ||
- | send \"show configuration | display set | save ${TUSER}@${TSERVER}: | + | send \"show configuration | display set | save ${TFTPUSER}@${TFTPSERVER}: |
expect \"> | expect \"> | ||
send \" | send \" |
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.