On Mittwoch, 28. April 2010, larsa none wrote: > The problem with the "omp-cli -h <host> -p <port> -u > <user> -w <pass> -X "<get_status/>"" command is that > it produces alot of xml-junk on console as output > > I'd rather see a command that produces a output like: > > ee01dbc5-7ae2-4cd8-a4df-bda25d56ba9f New Hej > c5aba58f-5683-4a68-a5a1-3fa718fe7381 New Hopp > 5ca366d5-4fc3-4b77-a99a-3aab0252067c Done Wed > d48d7284-902a-4164-a30d-7c96425c9932 Done testing > ed86f7a5-1b7e-4152-bee0-46abb1856c0f Done Kust > Is it possible or do I have to create an algorithm that sorts through > the junk? =/
omp-cli (or rather new omp of package openvas-cli) is pretty cool in this regard: If you apply -X with a XML request <get_status/> you get back a XML object. If you use --get-status as a direct command line paramter you get a ascii answer: $ omp -h XXX -u XXX -w XXX --get-status d48cc4f6-25b4-41c4-8752-9aaf0c730bf7 Done Polynoe2 Full Fast e67b0170-cbd6-4c3b-9b31-175226a311bc Done FullFast Local aa0155a2-5e94-4ed5-8e9a-a04bc7fee401 Done Cups w3af baa6be40-5732-492e-84bf-e3c60411ad44 Done ITG Scan c7b4b09a-725b-4bfc-b98d-cb9b8952cca8 Done OVAL I 7d7aaf52-d222-4a8f-81f4-54489bf1360f Done Nightly Full Fast Local Escalator f5cbf24b-dac4-4a02-88c7-5442a1957dcc Done ITG Scan Fedora 956d08bd-d973-4a4c-942b-43aadd5aa157 Done ITG Scan Debian b9be0aa0-f88e-479e-b54f-d1b33828aade Done ITG Scan Suse 55284e98-a199-4ce2-81e1-ee43a1f27b0f Done ITG Scan Ubuntu 706dbdb3-08a2-444b-9563-b3aeccdb622e Done ITG Scan Vista SP0 d80fdbea-eba7-4d7c-af6e-440b538eb81a Done ITG Scan Vista x64 SP1 ee80a835-d170-4019-9390-09816031409b Done ITG Scan Win2003 SP2 9e08d569-b7dd-463a-a919-bbebbdf64e7e Done ITG Scan Win2008 SP1 a2651445-c550-4575-9e2b-27ffc99a4520 Done ITG Scan XP SP2 -- Dr. Jan-Oliver Wagner | ++49-541-335084-0 | http://www.greenbone.net/ Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 202460 Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner _______________________________________________ Openvas-discuss mailing list [email protected] http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss
