Added default ncm telnet templates
This commit is contained in:
parent
54d5da025f
commit
169ea3c18b
File diff suppressed because it is too large
Load Diff
|
@ -2541,7 +2541,14 @@ INSERT INTO `tncm_template` VALUES
|
|||
(5,'A10-Generic','[\"17\"]','[\"5\"]'),
|
||||
(6,'Alcatel-Generic','[\"4\"]','[\"6\"]'),
|
||||
(7,'Aruba-Generic','[\"18\"]','[\"7\"]'),
|
||||
(8,'Mikrotik-Generic','[\"3\"]','[\"8\"]');
|
||||
(8,'Mikrotik-Generic','[\"3\"]','[\"8\"]'),
|
||||
(9,'Cisco-Generic-Telnet','[\"1\"]','[\"2\"]'),
|
||||
(10,'Juniper-Generic-Telnet','[\"15\"]','[\"3\"]'),
|
||||
(11,'Palo Alto-Generic-Telnet','[\"16\"]','[\"4\"]'),
|
||||
(12,'A10-Generic-Telnet','[\"17\"]','[\"5\"]'),
|
||||
(13,'Alcatel-Generic-Telnet','[\"4\"]','[\"6\"]'),
|
||||
(14,'Aruba-Generic-Telnet','[\"18\"]','[\"7\"]'),
|
||||
(15,'Mikrotik-Generic-Telnet','[\"3\"]','[\"8\"]');
|
||||
|
||||
INSERT INTO `tncm_script` VALUES
|
||||
(1,0,'enable\n
expect:Password:\s*
_enablepass_\n
exit\n'),
|
||||
|
@ -2599,7 +2606,49 @@ INSERT INTO `tncm_script` VALUES
|
|||
(53,4,'sleep:1
/system routerboard upgrade\n\r
expect:Do
yes\n\r
exit\n\r'),
|
||||
(54,5,''),
|
||||
(55,7,'sleep:1
capture:/system package print\n\r 
exit\n\r'),
|
||||
(56,6,'snippet');
|
||||
(56,6,'snippet'),
|
||||
(57,0,'sleep:1
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
exit\r\n'),
|
||||
(58,1,'sleep:1
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
term length 0\r\n
capture:show running-config\r\n
exit\r\n'),
|
||||
(59,2,'sleep:1
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
term length 0\r\n
config terminal\r\n
_applyconfigbackup_\r\n
exit\r\n'),
|
||||
(60,3,'sleep:1
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
term length 0\r\n
capture:show version | i IOS Software\r\n
exit\r\n'),
|
||||
(61,4,'sleep:1
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
copy tftp flash\r\n
expect:\]\?
_TFTP_SERVER_IP_\r\n
expect:\]\?
_SOURCE_FILE_NAME_\r\n
expect:\]\?
firmware.bin\r\n
show flash\r\n
reload\r\n
expect:confirm
y\r\n
config terminal\r\n
boot system firmware.bin\r\n'),
|
||||
(62,7,'sleep:1
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
term length 0\r\n
capture:show version | i IOS Software\r\n
exit\r\n'),
|
||||
(63,0,'sleep:1
\r\n
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
expect:root@%
cli\r\n
exit\r\n'),
|
||||
(64,1,'sleep:1
\r\n
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
expect:root@%
cli\r\n
expect:root>
capture:show configuration | no-more\r\n
quit\r\n
expect:root@%
exit\r\n'),
|
||||
(65,2,'sleep:1
\r\n
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
expect:root@%
cli\r\n
expect:root>
configure\r\n
load override terminal\r\n
_applyconfigbackup_\r\n
commit\r\n
quit\r\n
expect:root@%
exit\r\n'),
|
||||
(66,3,'sleep:1
\r\n
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
expect:root@%
cli\r\n
expect:root>
capture:show version|match Junos:\r\n
quit\r\n
expect:root@%
exit\r\n'),
|
||||
(67,4,'sleep:1
\r\n
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
expect:root@%
cli\r\n
expect:root>
save software from tftp _TFTP_SERVER_IP_ _FIRMWARE_NAME_ to flash\r\n
reset\r\n
quit\r\n
expect:root@%
exit\r\n'),
|
||||
(68,7,'sleep:1
\r\n
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
expect:root@%
cli\r\n
expect:root>
capture:show version|match Junos:\r\n
quit\r\n
expect:root@%
exit\r\n'),
|
||||
(69,0,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
sleep:1
exit\r\n'),
|
||||
(70,1,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
set cli pager off\r\n
capture:show config running\r\n
exit\r\n'),
|
||||
(71,2,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
set cli terminal width 500\r\n
set cli scripting-mode on\r\n
configure\r\n
_applyconfigbackup_\r\n
commit\r\n
exit\r\n
exit\r\n'),
|
||||
(72,3,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
set cli pager off\r\n
capture:show system info | match app-version:\r\n
sleep:1
exit\r\n'),
|
||||
(73,4,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
tftp import software from _TFTP_SERVER_IP_ file _FIRMWARE_NAME_\r\n
request system software install version\r\n
reboot\r\n
exit\r\n'),
|
||||
(74,7,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
set cli pager off\r\n
capture:show system info | match app-version:\r\n
sleep:1
exit\r\n'),
|
||||
(75,0,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n'),
|
||||
(76,1,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
capture:show running-config\r\n
exit\r\n
exit\r\n
expect:Are you sure to quit (N/Y)?:\s*
y\r\n'),
|
||||
(77,2,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
configure\r\n
_applyconfigbackup_\r\n
exit\r\n
exit\r\n
expect:Are you sure to quit (N/Y)?:\s*
y\r\n'),
|
||||
(78,3,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
capture:show version\n
exit\r\n
exit\r\n
expect:Are you sure to quit (N/Y)?:\s*
y\r\n'),
|
||||
(79,4,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
configure\r\n
expect:(config)
restore _TFTP_SERVER_IP_/_FIRMWARE_NAME_\r\n
expect:Password:\s*
_enablepass_\r\n
expect:skip port map
yes\r\n
expect: see the diff
yes\r\n
sleep:1
expect:Proceed with reboot
yes\r\n
expect:eof'),
|
||||
(80,7,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
capture:show version\n
exit\r\n
exit\r\n
expect:Are you sure to quit (N/Y)?:\s*
y\r\n'),
|
||||
(81,0,'sleep:1
\n
expect:Login:\s*
_username_\n
sleep:1
expect:Password:\s*
_enablepass_\n
sleep:1
enable\r\n
expect:Password:\s*
_enablepass_\r\n
exit\r\n'),
|
||||
(82,1,'sleep:1
\n
expect:Login:\s*
_username_\n
sleep:1
expect:Password:\s*
_enablepass_\n
sleep:1
enable\n
sleep:1
expect:Password:\s*
_enablepass_\n
sleep:1
environment no more\n
sleep:1
capture:admin display-config\n
sleep:3
logout\n'),
|
||||
(83,2,''),
|
||||
(84,3,'sleep:1
\n
expect:Login:\s*
_username_\n
sleep:1
expect:Password:\s*
_enablepass_\n
sleep:1
enable\n
sleep:1
expect:Password:\s*
_enablepass_\n
sleep:1
capture:show version\n
sleep:3
logout\n'),
|
||||
(85,4,''),
|
||||
(86,7,'sleep:1
\n
expect:Login:\s*
_username_\n
sleep:1
expect:Password:\s*
_enablepass_\n
sleep:1
enable\n
sleep:1
expect:Password:\s*
_enablepass_\n
sleep:1
capture:show version\n
sleep:3
logout\n'),
|
||||
(87,0,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
exit\r\n'),
|
||||
(88,1,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
capture:show running-config\r\n
exit\r\n
exit\r\n
expect:Are you sure to quit (N/Y)?:\s*
y\r\n'),
|
||||
(89,2,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
configure terminal\r\n
load replace /var/tmp/file.conf\r\n
end\r\n
write memory\r\n
exit\r\n'),
|
||||
(90,3,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
capture:show version\r\n
exit\r\n'),
|
||||
(91,4,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
copy tftp flash _TFTP_SERVER_IP_ firmware.bin.swi secondary\r\n
boot system flash secondary\r\n
copy tftp flash  _TFTP_SERVER_IP_ firmware.bin primary\r\n
boot system flash primary\r\n'),
|
||||
(92,7,'sleep:1
expect:login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
enable\r\n
expect:Password:\s*
_enablepass_\r\n
capture:show version\r\n
exit\r\n'),
|
||||
(93,0,'sleep:1
expect:Login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
sleep:1
exit\r\n\r'),
|
||||
(94,1,'sleep:1
expect:Login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
capture:system resource print\r\n\r 
exit\r\n\r'),
|
||||
(95,2,'sleep:1
expect:Login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
system backup load name=_nameBackup_ password=_passwordBackup_\n\r
expect:Restore
yes\n\r
quit\n\r'),
|
||||
(96,3,'sleep:1
expect:Login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
capture:/system package print\n\r 
quit\n\r'),
|
||||
(97,4,'sleep:1
expect:Login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
/system routerboard upgrade\n\r
expect:Do
yes\n\r
quit\n\r'),
|
||||
(98,7,'sleep:1
expect:Login:\s*
_username_\r\n
expect:Password:\s*
_enablepass_\r\n
capture:/system package print\n\r 
quit\n\r');
|
||||
|
||||
INSERT INTO `tncm_template_scripts`(`id_template`, `id_script`) VALUES
|
||||
(1,1),
|
||||
|
@ -2649,7 +2698,42 @@ INSERT INTO `tncm_template_scripts`(`id_template`, `id_script`) VALUES
|
|||
(8,51),
|
||||
(8,52),
|
||||
(8,53),
|
||||
(8,54);
|
||||
(8,54),
|
||||
(9,57),
|
||||
(9,58),
|
||||
(9,59),
|
||||
(9,60),
|
||||
(9,61),
|
||||
(10,63),
|
||||
(10,64),
|
||||
(10,65),
|
||||
(10,66),
|
||||
(10,67),
|
||||
(11,69),
|
||||
(11,70),
|
||||
(11,71),
|
||||
(11,72),
|
||||
(11,73),
|
||||
(12,75),
|
||||
(12,76),
|
||||
(12,77),
|
||||
(12,78),
|
||||
(12,79),
|
||||
(13,81),
|
||||
(13,82),
|
||||
(13,83),
|
||||
(13,84),
|
||||
(13,85),
|
||||
(14,87),
|
||||
(14,88),
|
||||
(14,89),
|
||||
(14,90),
|
||||
(14,91),
|
||||
(15,93),
|
||||
(15,94),
|
||||
(15,95),
|
||||
(15,96),
|
||||
(15,97);
|
||||
|
||||
INSERT INTO `tncm_agent_data_template` VALUES
|
||||
(1,'Cisco-Generic','[\"1\"]','[\"2\"]'),
|
||||
|
@ -2658,7 +2742,14 @@ INSERT INTO `tncm_agent_data_template` VALUES
|
|||
(4,'A10-Generic','[\"17\"]','[\"5\"]'),
|
||||
(5,'Alcatel-Generic','[\"4\"]','[\"6\"]'),
|
||||
(6,'Aruba-Generic','[\"18\"]','[\"7\"]'),
|
||||
(7,'Mikrotik-Generic','[\"3\"]','[\"8\"]');
|
||||
(7,'Mikrotik-Generic','[\"3\"]','[\"8\"]'),
|
||||
(8,'Cisco-Generic-Telnet','[\"1\"]','[\"2\"]'),
|
||||
(9,'Juniper-Generic-Telnet','[\"15\"]','[\"3\"]'),
|
||||
(10,'Palo Alto-Generic-Telnet','[\"16\"]','[\"4\"]'),
|
||||
(11,'A10-Generic-Telnet','[\"17\"]','[\"5\"]'),
|
||||
(12,'Alcatel-Generic-Telnet','[\"4\"]','[\"6\"]'),
|
||||
(13,'Aruba-Generic-Telnet','[\"18\"]','[\"7\"]'),
|
||||
(14,'Mikrotik-Generic-Telnet','[\"3\"]','[\"8\"]');
|
||||
|
||||
INSERT INTO `tncm_agent_data_template_scripts`(`id_agent_data_template`, `id_script`) VALUES
|
||||
(1,13),
|
||||
|
@ -2667,7 +2758,14 @@ INSERT INTO `tncm_agent_data_template_scripts`(`id_agent_data_template`, `id_scr
|
|||
(4,34),
|
||||
(5,41),
|
||||
(6,48),
|
||||
(7,55);
|
||||
(7,55),
|
||||
(8,62),
|
||||
(9,68),
|
||||
(10,74),
|
||||
(11,80),
|
||||
(12,86),
|
||||
(13,92),
|
||||
(14,98);
|
||||
|
||||
INSERT INTO `talert_calendar` VALUES (1, 'Default', 0, 'Default calendar');
|
||||
|
||||
|
|
Loading…
Reference in New Issue