View Single Post

   
  #2 (permalink)  
Old 02-15-2008, 06:40 PM
Rob
 
Posts: n/a
Default Re: Jonathan Schilling: Get system data problem in Java

carl@eatontown.net wrote:
> I need to get the serial number (3aannnnnn)
> of a SCO 5.0.x or 6.0.x enterprise system
> in Java.
>
> I can get some info in Java such as:
> System.getProperty("os.name"));
> However, the serial number System.getProperty eludes me.
>
> I can do it in C with:
> strncpy(sys_ser, unamedata.sysserial, 10);
>
> Is there a way to get the serial number in Java direct?
>
> Or, can I do some sort of system call to do a:
> "uname -X > myfile" and open the myfile
> as a properties file?
>
> Or, can I call/link a C program as a subroutine
> (I assume using a getsn.o file) of Java?
>
> Any ideas would be appreciated.
>
>
>
> Carl
>


From the system/shell point of view on SCO OS 5.0.x:

grep IQM_ACTIVATION_KEY /var/adm/ISL/iqm_file
grep IQM_SERIAL_NUMBER /var/adm/ISL/iqm_file

For 6.0.0, haven't tried yet :-(

--
Roberto Zini - r.zini<@AT@>strhold.it
---------------------------------------------------------------------
"Has anybody around here seen an aircraft carrier?"
(Pete "Maverick" Mitchell - Top Gun)
Reply With Quote