Added snippet script to MR and pandoradb_data.sql
This commit is contained in:
parent
58aeb59b2c
commit
d84937e6c9
|
@ -32,6 +32,11 @@ ADD COLUMN `agent_data_event_on_change` INT UNSIGNED NULL DEFAULT NULL AFTER `ev
|
|||
ALTER TABLE `treport_content`
|
||||
ADD COLUMN `ncm_agents` MEDIUMTEXT NULL AFTER `status_of_check`;
|
||||
|
||||
-- Add needed snippet script to queue tasks.
|
||||
SET @type_snippet = 6;
|
||||
SELECT @id_snippet := `id` FROM `tncm_script` WHERE `type` = @type_snippet;
|
||||
INSERT IGNORE INTO `tncm_script` (`id`, `type`, `content`) VALUES (@id_snippet, @type_snippet, 'snippet');
|
||||
|
||||
-- Add new vendor and model
|
||||
SET @vendor_name = 'Cisco';
|
||||
SET @model_name = 'Cisco-Generic';
|
||||
|
|
|
@ -2593,7 +2593,8 @@ INSERT INTO `tncm_script` VALUES
|
|||
(52,3,'sleep:1
capture:/system package print\n\r 
exit\n\r'),
|
||||
(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');
|
||||
(55,7,'sleep:1
capture:/system package print\n\r 
exit\n\r'),
|
||||
(56,6,'snippet');
|
||||
|
||||
INSERT INTO `tncm_template_scripts`(`id_template`, `id_script`) VALUES
|
||||
(1,1),
|
||||
|
|
Loading…
Reference in New Issue