I do not know exactly your architecture of the solution, but there are two possibilities that I could recommend to you if you are implementing a bi-directional communication with Link-OS printers.
The first one to personalize the name of the printer, you can modify the friendly_name of the printer, and the printer will be unique for any search you will be doing through a network.
The command to set up this friendly name would be:
! U1 setvar "device.friendly_name" "Any_name"
Or there are two more variables that you can modify and these would be unique for that particular printer:
! U1 setvar "device.user_p1" "Any_name_decription"
! U1 setvar "device.user_p2" "Any_name_description"
For getting the string back during the searching for the printers you can use the following SGD command:
! U1 getvar "device.friendly_name"
! U1 getvar "device.user_p1"
! U1 getvar "device.user_p2"
I hope this works.
Thank you for your answer, Manuel!
We finally had decided not to store unique information of each printer on the server-side and started to go toward other direction, but your advice is really helpful and appreciate it.
I haven't thought about SGD. Thanks!
There is also the SGD "device.unique_id" if you just want to get the fixed and unique serial number of the printer
That's great. Thank you very much!