@Tom-Elliott
@Tom-Elliott said in Multicast timeout:
You created a table in FOG called hostsIP?
Yes, in our environment hosts, have ip reservations and I did not found in FOG tables last used ip by hosts (may be I missed something) so I created a table associating ip to hosts names.
@Tom-Elliott said in Multicast timeout:
Note: This isn’t a bad thing, I’m just trying to reference the information.
No worries.
@Tom-Elliott said in Multicast timeout:
The way I understand this, you’re looking at the mutlicastSessions table, getting a group, and getting the name of the hosts.
First I get all running mutlicast sessions.
foreach sessoin I guess the group associated.
I get max number of machine in the group
I get the current current associated machines to the session
As if a machine is finished, it is removed from the sesssion machine list, I compare the group machine number and the current machine running for this session. If the two differ it means that at least one went to the end but not the others.
Now you make me talk on it I understand the specificity of our setup, all of our machines names start with group name (ex : all machines in rooms 1 will have such a name pattern : R1-P1, R1-P2…R1-P10), So as I have group name and I know that hosts which belong to it have it in their name, I get all machines with name starting with the group name we are working on.
The same way I get machines IDs
If not already done I get image ID
Same for task ID (one client is enough as in mulitcast if I kill on client it kills all multicast)
For each remaining hosts, I store ID, and Name in an array.
I kill the task and do a 1 sec sleep loop till the mutlicast session disappear. (It can take few seconds for the multicast to be removed and without this loop some clients can’t be reinstalled because they are still part of another process.
and finally for each hosts in created array, I create a unicast session (using host id) and reboot the pc using host ip.
@Tom-Elliott said in Multicast timeout:
You’re at least aware of the IPs which most others will not be, but just trying to think this through.
I searched for a more elegant way to get hosts ip and which could be universal, but the lack of time lead me to this rude behaviour 😉
But if someone has an idea on how to do it I would be very please to update this.
To be honest I thought to modify more the init.xz to populate automatically the hostsIP table when it loads but I have a working solution and it’s not even a priority for us but something more comfortable, if I had spent more time on this, someone would have come to break my fingers 😉
Sorry for the long post.