ā02-25-2019 07:24 PM
PubkeyAcceptedKeyTypes=+ssh-dss
KexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
KCHSANSW_3:root> configupload
Protocol (scp, ftp, local) [ftp]: scp
Server Name or IP Address [host]: 10.60.60.150
User Name [user]: root
Path/Filename [/config.txt]: /root/configs/tmp/10_200_200_51/10_200_200_51.cfg
Section (all|chassis|switch [all]): all
root@10.60.60.150's password: mypassword
root@10.60.60.150's password:
KCHSANSW_3:root> configUpload
Protocol (scp, ftp, local) [ftp]: scp
Server Name or IP Address [host]: 10.60.60.150
User Name [user]: root
Path/Filename [/config.txt]: /root/configs/tmp/10_200_200_51/10_200_200_51.cfg
Section (all|chassis|switch [all]): all
root@10.60.60.150's password:
configUpload complete: All selected config parameters are uploaded
KCHSANSW_3:root>
Solved! Go to Solution.
ā02-27-2019 07:42 PM
ā02-28-2019 01:17 PM
-- Use this script to manage a Brocade device
name="Brocade Switches - SCP"
desc="Brocade Switches SCP Scripts"
--
-----BEGIN PRE-SCRIPT "Configuration Upload"-----
create %ABSOLUTE_TARGET_FILE_PATH%
-----END PRE-SCRIPT-----
-----BEGIN SCRIPT "Configuration Upload"-----
echo I AM GOING TO UPLOAD TO %ABSOLUTE_TARGET_FILE_PATH%
configupload
@RECEIVEUNTIL 5 ".*Protocol.*"
scp
@RECEIVEUNTIL 5 ".*Server Name or IP Address.*"
%SCP_IP%
@RECEIVEUNTIL 5 ".*User Name.*"
%SCP_USER%
@RECEIVEUNTIL 5 ".*Path/Filename.*"
%ABSOLUTE_TARGET_FILE_PATH%
@RECEIVEUNTIL 5 ".*Section.*"
all
@RECEIVEUNTIL 5 ".*assword.*"@SLEEP 2%SCP_PSWD%
@RECEIVEUNTIL 10 ".*load complete.*"
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----
complete: All selected config parameters
-----END SUCCESS-----
ā02-27-2019 07:42 PM
ā02-27-2019 07:24 PM
ā02-26-2019 02:32 PM
-- Use these scripts to manage Brocade devices
name="Brocade Switches - SCP"
desc="Brocade Switches SCP Scripts"
--
-----BEGIN SCRIPT "Configuration Upload"-----
configupload
@RECEIVEUNTIL 5 ".*Protocol.*"
scp
@RECEIVEUNTIL 5 ".*Server Name or IP Address.*"
%SCP_IP%
@RECEIVEUNTIL 5 ".*User Name.*"
%SCP_USER%
@RECEIVEUNTIL 5 ".*Path/Filename.*"
%ABSOLUTE_TARGET_FILE_PATH%
@RECEIVEUNTIL 5 ".*Section.*"
all
@RECEIVEUNTIL 5 ".*Do you want to continue.*"
y
@RECEIVEUNTIL 5 ".*assword.*"
%SCP_PSWD%
@RECEIVEUNTIL 30 ".*load complete.*"
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----
complete: All selected config parameters
-----END SUCCESS-----
KCHSANSW_3:root> configupload Protocol (scp, ftp, local) [ftp]: scp
Server Name or IP Address [host]: 10.60.60.150
User Name [user]: archiving Path/Filename [/config.txt]: /home/archiving/configs/tmp/10_200_200_51/10_200_200_51.cfg
Section (all|chassis|switch [all]): all
archiving@10.60.60.150's password: mypassword
archiving@10.60.60.150's password: