How is the Machine ID created when a new machine is added? #336
danross826
started this conversation in
General
Replies: 1 comment 3 replies
-
This is a use case I had never planned on. I suspect you could fill in your machine entry with whatever the client will eventually pass to the server and it would send back the ID for the record you've created. But if any value does not match up, then the server will create a new record. What happens now is that:
machine.Name You can also configure the server to check by a specific value as well. Why do you want to create the record first? Just curious please. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I have my ghosts api set up. Whenever I install a ghosts client on a new machine and link to my ghosts api server, it adds the machine to the database with a new machine id. However, I want to use the api to add machines before I install the client on them. Every machine has a machine id that's created an assigned to it when the client connects. How is this machine Id created? I've been looking through the code and I can see a function called at various points that creates a GUID. Is that function in the code somewhere (I can't find it if it is) or is it an inbuilt function of the language ghosts is using?
Beta Was this translation helpful? Give feedback.
All reactions