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 | ||
fhscripts:get:get_nw_config.sh.html [2017/12/31 23:38] kurihara |
fhscripts:get:get_nw_config.sh.html [2018/03/29 00:06] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
====== get_nw_config.sh ====== | ====== get_nw_config.sh ====== | ||
- | $FHHOME/fhscripts/ | + | $FHHOME/bin/ |
\\ | \\ | ||
{{INLINETOC}} | {{INLINETOC}} | ||
Line 15: | Line 15: | ||
===== get_nw_config.sh ===== | ===== get_nw_config.sh ===== | ||
- | $FHHOME/fhscripts/ | + | $FHHOME/bin/ |
<sxh bash toolbar: | <sxh bash toolbar: | ||
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 56: | Line 57: | ||
# | # | ||
- | GET_SXR | + | GET_SRX |
expect -c " | expect -c " | ||
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 \" | ||
Line 89: | Line 90: | ||
\\ | \\ | ||
<WRAP box 90%> | <WRAP box 90%> | ||
- | <catlist -noAddPageButton -smallHead -sortAscending> | + | < |
</ | </ | ||
\\ | \\ |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.