I'm new to OpenVAS and am trying to load schedule XMLs that were exported from
one OpenVAS system to another. In looking over the documentation
(http://www.openvas.org/omp-5-0.html#command_create_schedule
[http://www.openvas.org/omp-5-0.html#command_create_schedule]), it looks like I
should be able to create an XML file and import it using this command line: omp
-h 127.0.0.1 -u admin -p 9390 -v --xml schedule-test.xml.
XML used in my test:
<create_schedule>
<name>Every night</name>
<first_time>
<day_of_month>1</day_of_month>
<hour>0</hour>
<minute>0</minute>
<month>1</month>
<year>2011</year>
</first_time>
<duration>
3
<unit>hour</unit>
</duration>
<period>
1
<unit>day</unit>
</period>
</create_schedule>
When I try to import this schedule, I get this error:
WARNING: Verbose mode may reveal passwords!
Will try to connect to host 127.0.0.1, port 9390...
Sending to manager: schedule-fixed2.xml
lib xml-Message: Error: Error on line 1 char 1: Document was empty or
contained only whitespace
(omp:9539): lib xml-WARNING **: End error: Error on line 1 char 1:
Document was empty or contained only whitespace
Failed to read response.
What's odd to me is that I can create a target using this command without
trouble: omp -h 127.0.0.1 -u admin -p 9390 -v --xml='<create_target><name>Fuck
off</name><hosts>172.31.9.9</hosts></create_target>'
I'm sure I'm missing something here and would appreciate troubleshooting
guidance or suggestions.
Rion
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss