Page 1 of 1

Exclude Hosts

Posted: Thu Mar 07, 2019 3:33 pm
by Linux
Hi Timur,

is it possible to exclude renderclients from a job?
I saw in the Blender plugin the input field 'Exclude Hosts'.
Can I specify the hostname or IP address to exclude?

For example:
[192.168.0.100, 192.168.0.100] or [pc-01, pc-02]

If this could also be done via JSON-API?
"hosts_mask_exclude" : "badhost.*"

Thanks in advance.

Best regards,
Laurence

Re: Exclude Hosts

Posted: Mon Mar 11, 2019 9:31 am
by timurhai
Hi.
Yes.
Each job (and block, and user) has a "hosts_mask_exclude" parameter, with can be set from any GUI and JSON protocol.

Re: Exclude Hosts

Posted: Mon Mar 11, 2019 10:26 am
by Linux
Hi Timur,

thank you very much!
So to exclude multiple hosts I have to specify the hostname in a JSON array?

"hosts_mask_exclude" : ["pc-01", "pc-02"]

Do I have to do the same in the plugins?

Best regards,
Laurence

Re: Exclude Hosts

Posted: Mon Mar 11, 2019 10:35 am
by timurhai
"hosts_mask_exclude" is a string parameter, not an array.
It represents a regular expression, so it should be some "pc-0.*" or "pc-0[12]", or you can simple list hosts (like array) "pc-01|pc-01".
There are lots regular expressions of online manuals and checkers.

Re: Exclude Hosts

Posted: Mon Mar 11, 2019 10:39 am
by Linux
Okay, got it! :)

Thanks again!

Best regards,
Laurence