Thijs, No, on my installation I use port 9392 as shown with the netstat -nlp command:
tcp 0 0 :::9392 :::* LISTEN 25854/gsad I've nothing listening on port 9390 and here the result if I try to run omp on port 9390: omp -u admin -w admin -p 9390 -g -v WARNING: Verbose mode may reveal passwords! Will try to connect to host 127.0.0.1, port 9390... (omp:55229): lib serv-WARNING **: Failed to connect to server Failed to acquire socket. You can see that the message is different, port 9392 is the good one in my case but the omp command never complet. Gerhard, > On Jun 8, 2017, at 9:19 AM, Thijs Stuurman > <thijs.stuur...@internedservices.nl> wrote: > > Gerhard, > > You are using the wrong port. > OMP needs to connect to the openvasmd process (or gvmd in openvas9) on port > 9390.as Jonas is also doing. > Openvasmd / gvmd is the master process, omp and gsad (the web gui) connect to > that to get the information. > > > Thijs Stuurman > Security Operations Center | KPN Internedservices > thijs.stuur...@internedservices.nl | 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 | L: > http://nl.linkedin.com/in/thijsstuurman > > Van: Openvas-discuss [mailto:openvas-discuss-boun...@wald.intevation.org] > Namens Turner,Jonas > Verzonden: donderdag 8 juni 2017 14:33 > Aan: Gerhard Mourani <gmour...@gmail.com>; openvas-discuss@wald.intevation.org > Onderwerp: Re: [Openvas-discuss] omg can't connect to openvas > > I am not sure if this will help but this is what I do and it works for me. > You can change the port of course. > > 1. Configure omp.config with credentials > a. [Connection] > b. host=127.0.0.1 > c. port=9390 > d. username=someuser > e. password=somepassword > 2. openvasmd -a 127.0.0.1 -p 9390 > 3. omp -g -v > > This provided me with the following output: > <someuser@someserver:~$> omp -g -v > > WARNING: Verbose mode may reveal passwords! > > Will try to connect to host 127.0.0.1, port 9390... > 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 > f14981cc-80d9-4bec-8cca-ff3aa25c57be HCR - Full and Fast > 2d3f051c-55ba-11e3-bf43-406186ea4fc5 Host Discovery > bbca7412-a950-11e3-9109-406186ea4fc5 System Discovery > Command completed successfully. > > From: Openvas-discuss [mailto:openvas-discuss-boun...@wald.intevation.org] On > Behalf Of Gerhard Mourani > Sent: Thursday, June 08, 2017 8:19 AM > To: openvas-discuss@wald.intevation.org > Subject: [Openvas-discuss] omg can't connect to openvas > > Hello, > > I'm trying to use omp command to connect to openvas but it doesn't work and > never finish. Here my command. > > omp -u admin -w admin -p 9392 -g -v > WARNING: Verbose mode may reveal passwords! > Will try to connect to host 127.0.0.1, port 9392... > > openvas-manager-7.0.1 > openvas-gsa-7.0.2 > openvas-scanner-5.1.1 > openvas-libraries-9.0.1 > openvas-cli-1.4.5 > > gsad is running on port 9392 as follow: > > tcp 0 0 :::9392 :::* > LISTEN 25854/gsad > > Gerhard, > >
_______________________________________________ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss