Hi list, I'm currently upgrading my omp scripts to suit openvas-5 changes. In particular, I'm trying to use the new task preferences
1) create the task (http://www.openvas.org/omp-3-0.html#command_create_task) Look at the max_hosts value : 11 <create_task> <name>Task-233289f4-4c1e-4d8a-89dc-32175271d254</name> <config id='409633bb-55fc-46b0-83c0-ee501b1e8fe3'></config> <target id='233289f4-4c1e-4d8a-89dc-32175271d254'></target> <preferences> <preference><scanner_name>max_hosts</scanner_name><value>11</value></preference> <preference><scanner_name>max_checks</scanner_name><value>4</value></preference> </preferences> </create_task> => <create_task_response id="0d55ce9d-c38f-4dae-a838-69108967df7d" status_text="OK, resource created" status="201"></create_task_response> Checking the sqlite db, the parameter is correctly inserted : sqlite> select * from task_preferences; 1|2|max_hosts|11 2|2|max_checks|4 2) Now issue a get_tasks : <get_tasks_response status_text="OK" status="200"> <task_count>1</task_count> <sort><field>ROWID<order>ascending</order></field></sort> <apply_overrides>0</apply_overrides> <task id="0d55ce9d-c38f-4dae-a838-69108967df7d"> <name>Task-233289f4-4c1e-4d8a-89dc-32175271d254</name> <comment></comment><owner><name>root</name></owner><observers></observers> <config id="409633bb-55fc-46b0-83c0-ee501b1e8fe3"> <name>Configuration</name><trash>0</trash> </config> <escalator id=""><name></name><trash>0</trash></escalator> <target id="233289f4-4c1e-4d8a-89dc-32175271d254"> <name>d12b107326be7e760f622d7f114c2543</name> <trash>0</trash> </target> <slave id=""><name></name><trash>0</trash></slave> <status>Requested</status> <progress>1</progress> <report_count>1<finished>0</finished></report_count> <trend></trend> <schedule id=""> <name></name><next_time>over</next_time><trash>0</trash> </schedule> <preferences> <preference> <name>Maximum concurrently executed NVTs per host</name> <scanner_name>max_checks</scanner_name> <value>4</value> </preference> <preference> <name>Maximum concurrently scanned hosts</name> <scanner_name>max_hosts</scanner_name> <value>9</value> </preference> </preferences> </task> </get_tasks_response> Look at the reported max_hosts value : 9 instead of 11. 9 is the value stored at nvt_preferences, but looking at the openvas-manager source (task_preference_value function), task_preferences should take precedence over nvt_preference, so I should see 11 here. So do I miss something here, is there something wrong ? Thanks for your feedback ! -- Guillaume Castagnino [email protected] / [email protected] _______________________________________________ Openvas-discuss mailing list [email protected] http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
