mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-22 13:25:11 +02:00
Updated MR changes
This commit is contained in:
parent
49fd9435dd
commit
a2f60a1d22
@ -49,7 +49,7 @@ SET @script_test = 'enable\n
expect:Password:\s*
_
|
||||
SET @script_get_config = 'enable\n
expect:Password:\s*
_enablepass_\n
term length 0\n
capture:show running-config\n
exit\n';
|
||||
SET @script_set_config = 'enable\n
expect:Password:\s*
_enablepass_\n
term length 0\n
config terminal\n
_applyconfigbackup_\n
exit\n';
|
||||
SET @script_get_firmware = 'enable\n
expect:Password:\s*
_enablepass_\n
term length 0\n
capture:show version | i IOS Software\n
exit\n';
|
||||
SET @script_set_firmware = 'copy tftp flash\n
expect:\]\?
_TFTP_SERVER_IP_\n
expect:\]\?
_SOURCE_FILE_NAME_\n
expect:\]\?
_DESTINATION_FILE_NAME_\n
show flash\n
reload\n
expect:confirm
y\n
config terminal\n
boot system _DESTINATION_FILE_NAME_\n';
|
||||
SET @script_set_firmware = 'copy tftp flash\n
expect:\]\?
_TFTP_SERVER_IP_\n
expect:\]\?
_SOURCE_FILE_NAME_\n
expect:\]\?
firmware.bin\n
show flash\n
reload\n
expect:confirm
y\n
config terminal\n
boot system firmware.bin\n';
|
||||
SET @script_custom = '';
|
||||
SET @script_os_version = @script_get_firmware;
|
||||
|
||||
@ -769,7 +769,7 @@ SET @script_test = 'enable\n
expect:Password:\s*
_
|
||||
SET @script_get_config = 'enable\n
expect:Password:\s*
_enablepass_\n
capture:show running-config\n
exit\n';
|
||||
SET @script_set_config = 'configure terminal\n
load replace /var/tmp/file.conf\n
end\n
write memory\n
exit\n';
|
||||
SET @script_get_firmware = 'enable\n
expect:Password:\s*
_enablepass_\n
capture:show version\n
exit\n';
|
||||
SET @script_set_firmware = 'copy tftp flash _TFTP_SERVER_IP_ _DESTINATION_FILE_NAME_.swi secondary\n
boot system flash secondary\n
copy tftp flash  _TFTP_SERVER_IP_ _DESTINATION_FILE_NAME_ primary\n
boot system flash primary\n';
|
||||
SET @script_set_firmware = 'copy tftp flash _TFTP_SERVER_IP_ firmware.bin.swi secondary\n
boot system flash secondary\n
copy tftp flash  _TFTP_SERVER_IP_ firmware.bin primary\n
boot system flash primary\n';
|
||||
SET @script_custom = '';
|
||||
SET @script_os_version = @script_get_firmware;
|
||||
|
||||
|
@ -2556,12 +2556,12 @@ INSERT INTO `tncm_script` VALUES
|
||||
(3,2,'enable
expect:Password:\s*
_enablepass_
term length 0
config terminal
_applyconfigbackup_
exit
'),
|
||||
(4,3,'enable
expect:Password:\s*
_enablepass_
term length 0
capture:show version | i IOS Software
exit
'),
|
||||
(5,5,'enable
expect:Password:\s*
_enablepass_
term length 0
config term
end
end
exit
'),
|
||||
(6,4,'copy tftp flash
expect:\]\?
_TFTP_SERVER_IP_
expect:\]\?
_SOURCE_FILE_NAME_
expect:\]\?
_DESTINATION_FILE_NAME_
show flash
reload
expect:confirm
y
config terminal
boot system _DESTINATION_FILE_NAME_'),
|
||||
(6,4,'copy tftp flash
expect:\]\?
_TFTP_SERVER_IP_
expect:\]\?
_SOURCE_FILE_NAME_
expect:\]\?
firmware.bin
show flash
reload
expect:confirm
y
config terminal
boot system firmware.bin'),
|
||||
(7,0,'enable\n
expect:Password:\s*
_enablepass_\n
exit\n'),
|
||||
(8,1,'enable\n
expect:Password:\s*
_enablepass_\n
term length 0\n
capture:show running-config\n
exit\n'),
|
||||
(9,2,'enable\n
expect:Password:\s*
_enablepass_\n
term length 0\n
config terminal\n
_applyconfigbackup_\n
exit\n'),
|
||||
(10,3,'enable\n
expect:Password:\s*
_enablepass_\n
term length 0\n
capture:show version | i IOS Software\n
exit\n'),
|
||||
(11,4,'copy tftp flash\n
expect:\]\?
_TFTP_SERVER_IP_\n
expect:\]\?
_SOURCE_FILE_NAME_\n
expect:\]\?
_DESTINATION_FILE_NAME_\n
show flash\n
reload\n
expect:confirm
y\n
config terminal\n
boot system _DESTINATION_FILE_NAME_\n'),
|
||||
(11,4,'copy tftp flash\n
expect:\]\?
_TFTP_SERVER_IP_\n
expect:\]\?
_SOURCE_FILE_NAME_\n
expect:\]\?
firmware.bin\n
show flash\n
reload\n
expect:confirm
y\n
config terminal\n
boot system firmware.bin\n'),
|
||||
(12,5,''),
|
||||
(13,7,'enable\n
expect:Password:\s*
_enablepass_\n
term length 0\n
capture:show version | i IOS Software\n
exit\n'),
|
||||
(14,0,'expect:root@%
cli\n
exit\n'),
|
||||
@ -2596,7 +2596,7 @@ INSERT INTO `tncm_script` VALUES
|
||||
(43,1,'enable\n
expect:Password:\s*
_enablepass_\n
capture:show running-config\n
exit\n'),
|
||||
(44,2,'configure terminal\n
load replace /var/tmp/file.conf\n
end\n
write memory\n
exit\n'),
|
||||
(45,3,'enable\n
expect:Password:\s*
_enablepass_\n
capture:show version\n
exit\n'),
|
||||
(46,4,'copy tftp flash _TFTP_SERVER_IP_ _DESTINATION_FILE_NAME_.swi secondary\n
boot system flash secondary\n
copy tftp flash  _TFTP_SERVER_IP_ _DESTINATION_FILE_NAME_ primary\n
boot system flash primary\n'),
|
||||
(46,4,'copy tftp flash _TFTP_SERVER_IP_ firmware.bin.swi secondary\n
boot system flash secondary\n
copy tftp flash  _TFTP_SERVER_IP_ firmware.bin primary\n
boot system flash primary\n'),
|
||||
(47,5,''),
|
||||
(48,7,'enable\n
expect:Password:\s*
_enablepass_\n
capture:show version\n
exit\n'),
|
||||
(49,0,'sleep:1
exit\n\r'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user