unique identifier for binary compatibility similar to uname

unique identifier for binary compatibility similar to uname

Post by Dale Lew » Thu, 05 Mar 1992 04:09:53



     I have a heterogeneous network of *IX machines (Sun,SGI,HP,Mips).
I am trying to create a directory structure in which I can store files
which would normally go under the /usr/local directory on each machine.
     I intend to write a script which will create symbolic links to these
files in each machines' /usr/local directory.  In order for all of this to
be automatic, I need the script to know what executables go with each
machine.
     This is the directory structure I am thinking of using:

                                  /home/local
                                       |
                       product1--------+--------product2
                          |                        .
        etc--src----------+--bin------------lib    .
         .    .               |
         .    . sun4--sun3--hp/pa-risc--hp/400--mips--sgi...

What I need is names for this bottom level of directories that will uniquely
identify binary compatible computers.  I am thinking of using the output from
the uname command with a -m qualifier.  On most machines, this gives an
intelligible response of what the machine type is (i.e. sun4c for a
Sparcstation 1+, IP12 for an SGI Indigo).  But there are some instances,
as with the SGI line that are binary compatible but have different cpu's,
and thus different responses from uname -m.  Is there any more succinct and
readable way to classify binaries?  Let me know if you've tackled this
problem.  E-mail would be preferrable, but post if you can't e-mail me.
   Thank you very much ahead of time.
--
|~~~~~\  /~~\  |~~~~~\ |~|  /~~\  |~\_|~|   Dale W. Lewis, Sys. Adm.

|_|~|_\/_|~~|_\|_____/ |_|/_|~~|_\|_|\__|   Box 201088 Austin, TX 78720
C   O   R   P   O   R   A   T   I   O   N   All opinions solely my own

 
 
 

1. Neet to retrieve a unique system identifier

Hi,

I am working on Solaris 5.7
here is the output from uname:
SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10

I want to programatically retrieve a unique system identifier for this
machine other that the following serial number

sysinfo(SI_HW_SERIAL, buf, 20);

Does another unique system identifier exist for solaris and how can I
get it.

Thanks,
Enda

2. ELSA WINNER 1000 TRIO/V

3. Creating a unique identifier

4. Respond to ping from selected hosts only

5. Linux Unique Identifier

6. hard drives?

7. Move unique identifier to header.

8. CPU Speed

9. Failed to execute binary (UML); binary compatibility broken?

10. cd /bin; ./uname -i; /bin/uname -i different result?

11. unamex Returns Binary Form of uname Data?

12. How to embed uname output into a binary [Q]