2012-08-16 Vanessa Gil <vanessa.gil@artica.es>

* pandoradb.oracle.sql
	  pandoradb.postgreSQL.sql
	  pandoradb.sql
	  extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql
	  extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql
	  extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql: Changed
	type 'subnet' and 'field1' to trecon_task table.

	* godmode/servers/manage_recontask_form.php: Added help tip:
	several networks to recon task.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-08-16 15:46:49 +00:00
parent 15255b7b83
commit 2f7c7a53f4
8 changed files with 39 additions and 8 deletions

View File

@ -1,3 +1,16 @@
2012-08-16 Vanessa Gil <vanessa.gil@artica.es>
* pandoradb.oracle.sql
pandoradb.postgreSQL.sql
pandoradb.sql
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql: Changed
type 'subnet' and 'field1' to trecon_task table.
* godmode/servers/manage_recontask_form.php: Added help tip:
several networks to recon task.
2012-08-16 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Improve help tip centering the text

View File

@ -291,3 +291,9 @@ ALTER TABLE tplugin ADD `parameters` text;
UPDATE trecon_script SET `description`='This&#x20;script&#x20;is&#x20;used&#x20;to&#x20;automatically&#x20;detect&#x20;SNMP&#x20;Interfaces&#x20;on&#x20;devices,&#x20;used&#x20;as&#x20;Recon&#x20;Custom&#x20;Script&#x20;in&#x20;the&#x20;recon&#x20;task.&#x20;Parameters&#x20;used&#x20;are:&#x0d;&#x0a;&#x0d;&#x0a;*&#x20;custom_field1&#x20;=&#x20;network.&#x20;i.e.:&#x20;192.168.100.0/24&#x0d;&#x0a;*&#x20;custom_field2&#x20;=&#x20;several&#x20;communities&#x20;separated&#x20;by&#x20;comma.&#x20;For&#x20;example:&#x20;snmp_community,public,private&#x20;&#x0d;&#x0a;*&#x20;custom_field3&#x20;=&#x20;optative&#x20;parameter&#x20;to&#x20;force&#x20;process&#x20;downed&#x20;interfaces&#x20;&#40;use:&#x20;&#039;-a&#039;&#41;.&#x20;Only&#x20;up&#x20;interfaces&#x20;are&#x20;processed&#x20;by&#x20;default&#x20;&#x0d;&#x0a;&#x0d;&#x0a;See&#x20;documentation&#x20;for&#x20;more&#x20;information.'
WHERE id_recon_script=1;
-- -----------------------------------------------------
-- Table `trecon_task
-- -----------------------------------------------------
ALTER TABLE trecon_task MODIFY subnet TEXT NOT NULL DEFAULT '';
ALTER TABLE trecon_task MODIFY field1 TEXT NOT NULL DEFAULT '';

View File

@ -288,3 +288,9 @@ ALTER TABLE tusuario ADD CONSTRAINT t_usuario_metaconsole_access_cons CHECK (met
ALTER TABLE tplugin ADD (macros CLOB default '');
ALTER TABLE tplugin ADD (parameters CLOB default '');
-- -----------------------------------------------------
-- Table `trecon_task`
-- -----------------------------------------------------
ALTER TABLE trecon_task MODIFY subnet TEXT NOT NULL;
ALTER TABLE trecon_task MODIFY field1 TEXT NOT NULL;

View File

@ -278,3 +278,9 @@ ALTER TABLE "tusuario" ADD COLUMN "metaconsole_access" type_tusuario_metaconsole
ALTER TABLE "tplugin" ADD COLUMN "macros" TEXT default '';
ALTER TABLE "tplugin" ADD COLUMN "parameters" TEXT default '';
-- -----------------------------------------------------
-- Table `trecon_task`
-- -----------------------------------------------------
ALTER TABLE "trecon_task" ALTER COLUMN "subnet" TYPE TEXT;
ALTER TABLE "trecon_task" ALTER COLUMN "field1" TYPE TEXT;

View File

@ -232,11 +232,11 @@ $table->data[12][1] = "<span id='spinner_layour' style='display: none;'>" . html
// Field1
$table->data[13][0] = "<b>".__('Script field #1');
$table->data[13][0] = "<b>".__('Script field #1').ui_print_help_tip(__("several networks separated by comma. For example: 192.168.100.0/24,192.168.50.0/24"), true);
$table->data[13][1] = html_print_input_text ('field1', $field1, '', 40, 0, true);
// Field2
$table->data[14][0] = "<b>".__('Script field #2');
$table->data[14][0] = "<b>".__('Script field #2').ui_print_help_tip(__("several communities separated by comma. For example: snmp_community,public,private "), true);
$table->data[14][1] = html_print_input_text ('field2', $field2, '', 40, 0, true);
// Field3

View File

@ -730,7 +730,7 @@ CREATE TABLE trecon_task (
id_rt NUMBER(10, 0) NOT NULL PRIMARY KEY,
name VARCHAR2(100) default '',
description VARCHAR2(250) default '',
subnet VARCHAR2(64) default '',
subnet CLOB default NULL,
id_network_profile NUMBER(10, 0) default 0 NOT NULL,
create_incident NUMBER(10, 0) default 0 NOT NULL,
id_group NUMBER(10, 0) default 1 NOT NULL,
@ -742,7 +742,7 @@ CREATE TABLE trecon_task (
recon_ports VARCHAR2(250) default '',
snmp_community VARCHAR2(64) default 'public' NOT NULL,
id_recon_script NUMBER(10, 0),
field1 VARCHAR2(250) default '',
field1 CLOB default NULL,
field2 VARCHAR2(250) default '',
field3 VARCHAR2(250) default '',
field4 VARCHAR2(250) default '',

View File

@ -580,7 +580,7 @@ CREATE TABLE "trecon_task" (
"id_rt" SERIAL NOT NULL PRIMARY KEY,
"name" varchar(100) NOT NULL default '',
"description" varchar(250) NOT NULL default '',
"subnet" varchar(64) NOT NULL default '',
"subnet" TEXT default NULL,
"id_network_profile" INTEGER NOT NULL default 0,
"create_incident" INTEGER NOT NULL default 0,
"id_group" INTEGER NOT NULL default 1,
@ -592,7 +592,7 @@ CREATE TABLE "trecon_task" (
"recon_ports" varchar(250) NOT NULL default '',
"snmp_community" varchar(64) NOT NULL default 'public',
"id_recon_script" INTEGER,
"field1" varchar(250) NOT NULL default '',
"field1" TEXT default NULL,
"field2" varchar(250) NOT NULL default '',
"field3" varchar(250) NOT NULL default '',
"field4" varchar(250) NOT NULL default '',

View File

@ -659,7 +659,7 @@ CREATE TABLE IF NOT EXISTS `trecon_task` (
`id_rt` int(10) unsigned NOT NULL auto_increment,
`name` varchar(100) NOT NULL default '',
`description` varchar(250) NOT NULL default '',
`subnet` varchar(64) NOT NULL default '',
`subnet` text NOT NULL default '',
`id_network_profile` int(10) unsigned NOT NULL default '0',
`create_incident` tinyint(3) unsigned NOT NULL default '0',
`id_group` int(10) unsigned NOT NULL default '1',
@ -671,7 +671,7 @@ CREATE TABLE IF NOT EXISTS `trecon_task` (
`recon_ports` varchar(250) NOT NULL default '',
`snmp_community` varchar(64) NOT NULL default 'public',
`id_recon_script` int(10),
`field1` varchar(250) NOT NULL default '',
`field1` text NOT NULL default '',
`field2` varchar(250) NOT NULL default '',
`field3` varchar(250) NOT NULL default '',
`field4` varchar(250) NOT NULL default '',