Hello Experts,
Is there a way to generate Universally Unique identifiers on all Unix flavours such as Solaris, RHELinux,Suse Linux, MacOS,HP UX etc?
If i can get a system command or a system call or an algorithm/script/program to generate a unique identifier, it will be helpful.
Thanks in advance.
Your post is incomplete. How will you need to generate / parse / collect / compare those values, what will they serve ? 'hostid' command, for example, is present on both Linux and Solaris, it returns something like : 0x7f0200
You can, however, write your own application to do the host mapping and reporting, but it will still depend on what exactly you need to achieve.
Update : just thought of 'dmidecode' - according to its man pages, it's known to work on multiple OSes.