Yes.
Just use GVM tools, that’s what it was made for.
Again, check out https://github.com/Thijssss/openvas_scheduler which should 
help you get started quickly. Feel free to ask me for help or tips.

Thijs Stuurman
Security Operations Center | KPN Internedservices B.V.
thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl> | 
thijs.stuur...@kpn.com<mailto:thijs.stuur...@kpn.com>
T: +31(0)299476185 | M: +31(0)624366778
PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/)
Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048

W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: 
https://nl.linkedin.com/in/thijsstuurman

Van: Louis Bohm <lo...@systemgeek.net>
Verzonden: woensdag 25 april 2018 14:41
Aan: Roger Davies <rog.dav...@gmail.com>
CC: Thijs Stuurman <thijs.stuur...@internedservices.nl>; 
openvas-discuss@wald.intevation.org
Onderwerp: Re: [Openvas-discuss] Tasks Autostart plugin for openvas ?

Another way is to do it in a script.
            Dump out the list of tasks and their UUIDs.
            Create cron jobs to start the task.
            Use the Alert method to send an email or create a file when the 
task is complete.
            When the task is complete fire off another task…

Louis
:::::
Louis Bohm - Sr. Systems Engineer
            Dell TechDirect Certified


On Apr 25, 2018, at 8:23 AM, Roger Davies 
<rog.dav...@gmail.com<mailto:rog.dav...@gmail.com>> wrote:

Hi
It's not the nicest solution, but it does work.
In the 'Alerts' setup, you can use the 'Start Task' method, which then gives 
you the option to select a task name, 'Start Task'.
You have one task, task1, that operates on a schedule, This task1 has an alert 
which is setup to call another task, task2, when the original task1 is 'done'. 
Then in task2, you have an alert that calls task3 etc.etc.
Obviously, you can have many alerts for tasks, so an email to say it's started 
and an email to say it's finished and an alert that copies a report somewhere, 
or whatever.

It's not as nice as having them on a schedule, but if you comment the structure 
in your task names or something, it should explain itself.
Roger


On 25 April 2018 at 12:58, Thijs Stuurman 
<thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl>> 
wrote:
Sounds like a horrible solution to me even if it works.


Thijs Stuurman
Security Operations Center | KPN Internedservices B.V.
thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl> | 
thijs.stuur...@kpn.com<mailto:thijs.stuur...@kpn.com>
T: +31(0)299476185 | M: +31(0)624366778
PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/)
Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048

W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: 
https://nl.linkedin.com/in/thijsstuurman

Van: tatooin <tato...@free.fr<mailto:tato...@free.fr>>
Verzonden: woensdag 25 april 2018 13:55
Aan: Roger Davies <rog.dav...@gmail.com<mailto:rog.dav...@gmail.com>>
CC: Thijs Stuurman 
<thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl>>;
 openvas-discuss@wald.intevation.org<mailto:openvas-discuss@wald.intevation.org>
Onderwerp: Re: [Openvas-discuss] Tasks Autostart plugin for openvas ?

Hi Roger,

I don't get it. Adding an alert to the first task will only log when the task 
is done, it won't start the next task automatically. Or am I missing something 
here ?

Thanks

On Wed, 2018-04-25 at 11:30 +0100, Roger Davies wrote:
Hi
You can daisy-chain one task after another using the alerts bit. So, setup an 
alert which uses the 'Start Task' method on "Task run status changed (to 
Done)", then add that alert to the first task.
Roger

On 18 April 2018 at 08:27, tatooin <tato...@free.fr<mailto:tato...@free.fr>> 
wrote:
Thanks Thijs,

I will have a look at your script.

Best,

On Tue, 2018-04-17 at 12:14 +0000, Thijs Stuurman wrote:
I use gvm-tools and a python script to schedule my jobs, perhaps this can serve 
as inspriration for your own solution:

https://github.com/Thijssss/openvas_scheduler

Thijs Stuurman
Security Operations Center | KPN Internedservices B.V.
thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl> | 
thijs.stuur...@kpn.com<mailto:thijs.stuur...@kpn.com>
T: +31(0)299476185 | M: +31(0)624366778
PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/)
Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048

W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: 
https://nl.linkedin.com/in/thijsstuurman

Van: Openvas-discuss 
<openvas-discuss-boun...@wald.intevation.org<mailto:openvas-discuss-boun...@wald.intevation.org>>
 Namens tatooin
Verzonden: dinsdag 17 april 2018 09:09
Aan: 
openvas-discuss@wald.intevation.org<mailto:openvas-discuss@wald.intevation.org>
Onderwerp: [Openvas-discuss] Tasks Autostart plugin for openvas ?

Hi,

I was wondering if there was a plugin to automatically start tasks in order.  I 
have ordered my tasks by groups, and on a regular basis I'm running all tasks 
on a given group. But this remain a manual step, as I have to login to the 
console and start tasks one after the other (or not more than 2 or 3 tasks 
simultaneously to avoid overwhelming the Openvas manager) so I was wondering if 
there was any plugins or something close to it to allow automatic starts of 
tasks once the first in list is finished ?

The scheduling feature cannot do this unfortunately.

Thanks !

_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org<mailto:Openvas-discuss@wald.intevation.org>
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss




--
http://www.jazzpod.co.uk<http://www.jazzpod.co.uk/>

Use Mint - http://www.linuxmint.com/
- Registered Linux User # 38263
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org<mailto:Openvas-discuss@wald.intevation.org>
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to