Hi Neil Williams,

Sometimes the devices are not in auto-testing, and we want to improve the devices usage by using the devices for some manual tests and do not want the manual jobs to be interrupted by a sudden auto-test task.

Have check the XML-RPC and it is very useful. However,  the functions in xmlrpclib of my localhost is not as many as the website lists. 
And unfortunately, no scheduler.put_into_maintenance_mode() and scheduler.put_into_online_mode() after running server.system.listMethods().
can you share the latest complete xmllib python file?
p.s. 
All functions I get about scheduler are: 
 'scheduler.all_device_types', 'scheduler.all_devices', 'scheduler.all_jobs', 'scheduler.cancel_job', 'scheduler.get_pipeline_device_config', 'scheduler.job_details', 'scheduler.job_output', 'scheduler.job_status', 'scheduler.notify_incomplete_job', 'scheduler.pending_jobs_by_device_type', 'scheduler.resubmit_job', 'scheduler.submit_job', 'scheduler.validate_yaml', 'scheduler.worker_heartbeat', 'system.getCapabilities',

Thanks.
 
At 2016-10-12 16:46:53, "Neil Williams" <neil.williams@linaro.org> wrote:
>On 12 October 2016 at 09:34, kingboli <lijinbohehe@163.com> wrote:
>> Hello everyone,
>> Can you help me on below two questions?
>>
>> 1. I did email notification settings for sending emails after job complete
>> or incomplete.
>>     How can I get whole logs (where are logs?) about email sending process?
>> I need to debug email sending.
>
>LAVA uses django which just uses local settings for your mail
>transport agent, probably exim4 by default in Jessie. Configuring
>exim4 for your local email setup is outside the scope of this list or
>the LAVA documentation. What you can test is that sending mail from
>the command line on the master needs to work, then the django
>processes should be able to send email as well. So try the mail
>program directly on the command line of the master, as the lavaserver
>user.
>
>> 2. I want to use script to control device state periodically.
>>    How can I set device to maintenance state using command, like lava-tool
>> command?
>
>lava-tool does not support this but XML-RPC calls are available. See
>the api/help/ pages on your localhost or
>https://staging.validation.linaro.org/api/help/
>
>https://staging.validation.linaro.org/api/help/#scheduler.put_into_maintenance_mode
>https://staging.validation.linaro.org/api/help/#scheduler.put_into_online_mode
>
>Taking devices in and out of maintenance mode frequently is
>unnecessary churn. LAVA is not a booking system so think carefully
>about your lab design so that devices are available for automated
>submissions more often than not.
>
>-- 
>
>Neil Williams
>=============
>neil.williams@linaro.org
>http://www.linux.codehelp.co.uk/