Operating System - HP-UX
1834240 Members
2423 Online
110066 Solutions
New Discussion

shell script commands like pdp11,hp9000s200,hp9000s300,hp9000s500,hp9000s800

 
SOLVED
Go to solution
Deepak_7
Occasional Advisor

shell script commands like pdp11,hp9000s200,hp9000s300,hp9000s500,hp9000s800

Hi,

Are there any reasons, why these architecture
scripts are there on the HP-UX machine.
uname -m would give the architecure.

They just return exit 1/0
What is the signigicance of it.

Please let me know, if anyone knows about it.

Thanks and Regards
Deepak

4 REPLIES 4
Michael Tully
Honored Contributor

Re: shell script commands like pdp11,hp9000s200,hp9000s300,hp9000s500,hp9000s800

Hi Deepak,

In years gone by I am sure that using the
uname -m command resulted in the system
model as well as the model command.

e.g a T500 used to be called an 891, a
T600 an 897, therefore 'uname -m' would
return 800/891 or 800/897

I suspect that this is historical only,
but I could be wrong....

-Michael
Anyone for a Mutiny ?
Carlos Fernandez Riera
Honored Contributor

Re: shell script commands like pdp11,hp9000s200,hp9000s300,hp9000s500,hp9000s800


It is a easy way to says if your box is a hp900s200 or what..

grep "exit" hp?*
hp-mc680x0:exit 1
hp-pa:exit 0
hp9000s200:exit 1
hp9000s300:exit 1
hp9000s400:exit 1
hp9000s500:exit 1
hp9000s700:exit $?
hp9000s700_8MB:exit 1
hp9000s800:exit 0

It is used in system integration scripts.

Can you say what machine type is this?
unsupported
Wodisch
Honored Contributor
Solution

Re: shell script commands like pdp11,hp9000s200,hp9000s300,hp9000s500,hp9000s800

Hello Deepak,

these script might still exist for historical reasons, but as well some existing software could
use it like that way:

if hp9000s800
then echo "Do some server work"
else echo "Do some workstation work"
fi

so I would not delete them until I am 100% certain
that NO SCRIPT AT ALL does use it any more...

Just my $0.02,
Wodisch

PS: you might try something like
find / -type f -print | while read name; do
case "$(file $name)" in
*text*) grep "hp9000s[23478]00" $name /dev/null;;
esac;done

A. Clay Stephenson
Acclaimed Contributor

Re: shell script commands like pdp11,hp9000s200,hp9000s300,hp9000s500,hp9000s800

This was the standard mechanism for determining the architecture. Uname output has varied over the years and across flavors of unix. The typical mechanism for not only to test for the output of the command but also the existence of the command.
If it ain't broke, I can fix that.