Hi, You need to use OMP protocol with XML as omp-cli does not support all needed commands. (or code needed functionality to omp-cli first)
-- Eero 2015-05-15 13:38 GMT+03:00 Saurav, Rajeev <[email protected]>: > Hello all, > > I am working onto automate openvas tools (Version: 5.0 )(web based user > interface GUI (GSA)) which includes create target, assigning to task and > scan it through unix shell, > > Here are the few steps tried but could not get how to create target and > scan it via cli. > > [tbs-01.stalab.ciena.com(rsaurav)]-> ~ 120> openvas-cli --host > tbs-02.stalab.ciena.com -u admin -w labuser -T > b493b7a8-7489-11df-a3ec-002264764cea Localhost > df5254d5-6759-49ca-aac3-fcfa4bb39225 Target for immediate scan of IP > 10.26.80.253 > 9bc34d5f-36a2-4a1a-bc43-f217b231f977 Target for immediate scan of IP > 10.33.82.31 > > > Get Configs: > [tbs-01.stalab.ciena.com(rsaurav)]-> ~ 121> openvas-cli --host > tbs-02.stalab.ciena.com -u admin -w labuser -g > 8715c877-47a0-438d-98a3-27c7a6ab2196 Discovery > 085569ce-73ed-11df-83c3-002264764cea empty > daba56c8-73ec-11df-a475-002264764cea Full and fast > 698f691e-7489-11df-9d8c-002264764cea Full and fast ultimate > 708f25c4-7489-11df-8094-002264764cea Full and very deep > 74db13d6-7489-11df-91b9-002264764cea Full and very deep ultimate > 2d3f051c-55ba-11e3-bf43-406186ea4fc5 Host Discovery > bbca7412-a950-11e3-9109-406186ea4fc5 System Discovery > > Get Tasks: > [tbs-01.stalab.ciena.com(rsaurav)]-> ~ 125> openvas-cli --host > tbs-02.stalab.ciena.com -u admin -w labuser -G > 4d56fc67-c36a-4ac6-88aa-cee901d9834e Done Immediate scan of IP > 10.26.80.253 > 0dd211b2-7fee-4b6e-91eb-6da2f5ac4872 Done Immediate scan of IP > 10.33.82.31 > > Could anyone please let me know how to handle it using command line. > > Thanks, > Rajeev Saurav > > -----Original Message----- > From: Openvas-discuss [mailto:[email protected]] > On Behalf Of Brian Chabot > Sent: Thursday, May 14, 2015 1:59 AM > To: [email protected] > Subject: Re: [Openvas-discuss] Export, Import, Migrate > > Since I think I just figured it out I'm going to reply to my own question: > > copy /var/lib/openvas/mgt/tasks.db to the new server (replacing the > tasks.db there. Make sure the permissions match) > run: openvas -m on the new server to migrate the data. > Restart openvas-managed openvas-scanner and gsad on the new server. > > The new server should have all the settings, scans, and results etc. a the > old one now.... including the admin password. > > On Wed, May 13, 2015 at 11:00 AM, Brian Chabot < > [email protected]> wrote: > > Now that we've figured out the other details of installation, comes my > > more technical question. > > > > With the older versions of OpenVAS, I need to extract the data and > > preferably move it to the new install. > > > > What I'd like to do: > > 1. Export all data (results and configs) from the old system. > > 2. Import all that into a new install. > > 3. Migrate to a new format/schema if necessary. > > > > I see that openvasmd has a --backup option, but there is no info as to > > where the backup ends up nor how to import it. > > > > > > > > -- > > __________________________________ > > > > Brian Chabot | Infrastructure Systems Administrator > > > > millennial media > > > > Mobile: +1 603.728.1469 > > Email: [email protected] > > Web: www.millennialmedia.com > > > > -- > __________________________________ > > Brian Chabot | Infrastructure Systems Administrator > > millennial media > > Mobile: +1 603.728.1469 > Email: [email protected] > Web: www.millennialmedia.com > _______________________________________________ > Openvas-discuss mailing list > [email protected] > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss > _______________________________________________ > Openvas-discuss mailing list > [email protected] > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss >
_______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
