Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting system type from 4.0x

Rob Leadbeater
Honored Contributor

Getting system type from 4.0x

Hi,

Does anyone know of a simple way of programitcally getting the machine type of a Tru64 4.0x machine - without using sys_check ?

From looking at the source of sys_check, I know I can get it by passing a rather obtuse string to dbx, however I'm sure there must be an easier way...

Thanks in advance,

Rob
3 REPLIES
Khairy
Esteemed Contributor

Re: Getting system type from 4.0x

hi rob,

try:

# uerf -R 300 | more

navigate thru and you will your system model and cpu type.

This is from my server:
----- EVENT INFORMATION -----

EVENT CLASS OPERATIONAL EVENT
OS EVENT TYPE 300. SYSTEM STARTUP
SEQUENCE NUMBER 1.
OPERATING SYSTEM DEC OSF/1
OCCURRED/LOGGED ON Sun Apr 6 12:58:58 2008
OCCURRED ON SYSTEM datasys01
SYSTEM ID x000B000C CPU TYPE: DEC 7000
SYSTYPE x0000000E
MESSAGE Alpha boot: available memory from
_0x55aa000 to 0xfff58000
Digital UNIX V4.0F (Rev. 1229); Tue
_Apr 13 07:02:04 SST 1999
physical memory = 4096.00 megabytes.
available memory = 4009.71 megabytes.
using 15718 buffers containing 122.79
_megabytes of memory
stdin
Firmware revision: 6.6-15
PALcode: Digital UNIX version 1.90-101
Compaq AlphaServer GS140 6/700
Master cpu at slot 0.
Created FRU table binary error log
_packet


As you see, it says compaq alphaserver gs140.

ps: really appreciate if u could assign some points if this answer yr question. Thanks!
Rob Leadbeater
Honored Contributor

Re: Getting system type from 4.0x

Hi Khairy,

I know I can get the machine type via uerf, however I was hoping to be able to get it without having to rely on what might be some quite vague use of grep etc.

I also need to be able to get it remotely (probably via rsh) for a large number of machines...

Cheers,

Rob
Rob Leadbeater
Honored Contributor

Re: Getting system type from 4.0x

Hi,

A bit more Googling took me to this old post from the Tru64 managers list:

http://unix.derkeiler.com/Mailing-Lists/Tru64-UNIX-Managers/2003-06/0078.html

Using some of the code there I knocked up a quick C routine, which uses getsysinfo(GSI_PLATFORM_NAME,....) to do what I need.

Regards,

Rob