Hi,

On 19.05.2017 19:41, Nikita Gupta wrote:
> I was trying to execute single script from host machine using command: 
> openvas-nasl -X scriptname.nasl
> 
> But if the script uses default api call of "get_kb_list" or
> "get_kb_item" then it returns nothing and script stops.
> And because of which I am unable to execute individual scripts.
> 
> For example: get_kb_list( "Services/www" ); returns nothing.

Services/* is a KB entry which is set by other scripts (e.g.
Services/www is set by find_service.nasl).

If you're running a script from command line which relies on this
"Services/www" you need to set it in your openvas-nasl call like:

openvas-nasl -X scriptname.nasl --kb="Services/www=80"

Regards,

--

Christian Fischer | PGP Key: 0x54F3CE5B76C597AD
Greenbone Networks GmbH | http://greenbone.net
Neumarkt 12, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460
Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to