Exclude Hosts

General discussions and questions.
Post Reply
Linux
Posts: 17
Joined: Thu Mar 01, 2018 12:29 pm
Location: Germany

Exclude Hosts

Post 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
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Exclude Hosts

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Linux
Posts: 17
Joined: Thu Mar 01, 2018 12:29 pm
Location: Germany

Re: Exclude Hosts

Post 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
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Exclude Hosts

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Linux
Posts: 17
Joined: Thu Mar 01, 2018 12:29 pm
Location: Germany

Re: Exclude Hosts

Post by Linux »

Okay, got it! :)

Thanks again!

Best regards,
Laurence
Post Reply