Added snippet script to MR and pandoradb_data.sql

This commit is contained in:
Enrique Martin 2023-11-17 12:24:07 +01:00
parent 58aeb59b2c
commit d84937e6c9
2 changed files with 7 additions and 1 deletions

View File

@ -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';

View File

@ -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),