Exclude Hosts

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

Exclude Hosts

Post by Linux » Thu Mar 07, 2019 3:33 pm

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: 463
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Exclude Hosts

Post by timurhai » Mon Mar 11, 2019 9:31 am

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 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

Linux
Posts: 13
Joined: Thu Mar 01, 2018 12:29 pm
Location: Germany

Re: Exclude Hosts

Post by Linux » Mon Mar 11, 2019 10:26 am

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: 463
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Exclude Hosts

Post by timurhai » Mon Mar 11, 2019 10:35 am

"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 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

Linux
Posts: 13
Joined: Thu Mar 01, 2018 12:29 pm
Location: Germany

Re: Exclude Hosts

Post by Linux » Mon Mar 11, 2019 10:39 am

Okay, got it! :)

Thanks again!

Best regards,
Laurence

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests