1828258 Members
2778 Online
109975 Solutions
New Discussion

Shell script help

 
SOLVED
Go to solution
Adam W.
Valued Contributor

Shell script help

I have this script but some of the output isn't working It is supposed to give me:
CPU_binary:
Processor Type:
CPU speed:
No. of CPU's:
etc......
etc......

But here is the output I get.

CPU_BINARY : PA-RISC 2.0
PROCESSOR TYPE : PA8600
CPU-SPEED : 1000 MHz
NO. OF CPUS : 8
symbol not found
KERNEL SUPPORT : 32 BITS
expr: Syntax error

System Memory : MB
OS VER : HP-UX B.11.11

Can someone take a look and tell me what I am missing?
There are two types of people in the world, Marines and those who wish they were.
3 REPLIES 3
Ivan Krastev
Honored Contributor

Re: Shell script help

Some parameters are missing/replaced.
This script is useful for older versions of HP-UX.

Here is an more info about 1st error - http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=38535

regards,
ivan
James R. Ferguson
Acclaimed Contributor
Solution

Re: Shell script help

Hi Adam:

The "symbol not found" is from 'adb' not being able to find the string you are asking it to match.

The "expr: Syntax error" arises from trying to evaluate an empty value. In this case $MM for your memory.

You have essentially all this information in your Ignite print_manifest;

/var/opt/ignite/recovery/latest/manifest

...which you gret for "free" every time you run an Ignite recovery which I'm sure you do routinely :-)

Regards!

...JRF...
Adam W.
Valued Contributor

Re: Shell script help

Thanks guys.
There are two types of people in the world, Marines and those who wish they were.