1833465 Members
2490 Online
110052 Solutions
New Discussion

Problem with rad

 
SOLVED
Go to solution
Davor Bira?
Frequent Advisor

Problem with rad

Hy,

I'm trying to match PCI slots with H/W paths, and I'm using command /usr/bin/rad -q.
But on my rp 8400, it doesn't work and displays this message:
/usr/bin/rad:ERROR::No such device

HELP?
11 REPLIES 11
Matthew_50
Valued Contributor

Re: Problem with rad

Is your hpux version 11.23, use `uname -a` to check it.

if the version is 11.23, we can use the 'olrad' or 'pdweb' commands.

if the version is 11.11, then you may use 'rad -q'
Davor Bira?
Frequent Advisor

Re: Problem with rad

IT is HPUX 11.11, and I'm using rad, as you can see.
So it isn't problem wich command to use, but why rad isn't working?
Arunvijai_4
Honored Contributor

Re: Problem with rad

Use # rad in single user mode. If you are in multi user mode, use # sam instead.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Problem with rad

Before experiencing with new command, plz read man page first.

rad man page says ,

rad command should be used while the system is in single-user state, when SAM is unavailable.

You can use ioscan or sam when you are not in single user mode to get h/w path informations from,

ioscan
sam

hth.
Easy to suggest when don't know about the problem!
Mugilvannan
Valued Contributor

Re: Problem with rad

check ur run level first as who -r. If it is not 1 then,

use sam as,

sam -> Peripheral Devices -> Device List

-mugil
If U need a helping hand, U will find one at the end of your arm
Davor Bira?
Frequent Advisor

Re: Problem with rad

Yes, I read man pages.
And reson why I started this thread is:
on rp7420 I have this output in multiuser mode:
xxx:/ # who -r
. run-level 3 Sep 5 10:54 3 0 S
xxx:/ # rad -q
Driver(s)
Slot Path Bus Max Spd Pwr Occu Susp Capable Max Mode
Num Spd Mode
0-0-0-1 0/0/8/1 64 133 66 On Yes No Yes PCI-X PCI
0-0-0-2 0/0/10/1 80 133 66 On Yes No Yes PCI-X PCI
0-0-0-3 0/0/12/1 96 133 66 On Yes No Yes PCI-X PCI
0-0-0-4 0/0/14/1 112 133 66 On Yes No Yes PCI-X PCI
0-0-0-5 0/0/6/1 48 133 66 On Yes No Yes PCI-X PCI
0-0-0-6 0/0/4/1 32 133 66 Off No N/A N/A PCI-X PCI
0-0-0-7 0/0/2/1 16 133 66 Off No N/A N/A PCI-X PCI
0-0-0-8 0/0/1/1 8 133 66 Off No N/A N/A PCI-X PCI
0-0-1-1 1/0/8/1 64 133 66 Off No N/A N/A PCI-X PCI
0-0-1-2 1/0/10/1 80 133 66 Off No N/A N/A PCI-X PCI
0-0-1-3 1/0/12/1 96 133 66 Off No N/A N/A PCI-X PCI
0-0-1-4 1/0/14/1 112 133 66 Off No N/A N/A PCI-X PCI
0-0-1-5 1/0/6/1 48 133 66 Off No N/A N/A PCI-X PCI
0-0-1-6 1/0/4/1 32 133 66 On Yes No Yes PCI-X PCI
0-0-1-7 1/0/2/1 16 133 66 On Yes No Yes PCI-X PCI
0-0-1-8 1/0/1/1 8 133 66 On Yes No Yes PCI-X PCI

So why it works on rp7420 in multiuser mode and why it doesn't work on rp8400. Could it be problem with patch level?
And output from SAM isn't what I'm looking for, because it doesn't show SLOT column.
Stefan Stechemesser
Honored Contributor
Solution

Re: Problem with rad

Hi,

1.) check if /dev/olar exists
2.) check if the major number of /dev/olar is the same as displayed by lsdev| grep dev_olar
3.) make sure the following drivers are included in the kernel (look in /stand/system or use sam):
olar_psm
olar_psm_if
dev_olar

best regards

Stefan
Davor Bira?
Frequent Advisor

Re: Problem with rad

Hi Stefan,
point 1) and 2) are OK, but 3) is not.
These 3 drivers are not present in /stand/system.
So this means, that kernel should be recreated with these drivers, or there is less painful way ?
Stefan Stechemesser
Honored Contributor

Re: Problem with rad

Hi,

I'm sorry, but I see no other way than recreating the kernel with these three drivers included.
By the way, the slot to hardware path mapping on rp7420 and rp8400 is the same (expect that the 4th digit of the hardware path is "0" instead of "1" on rp8400, cell is first digit of hw path).

Example of rad -q on rp8400 (cell 1):

# rad -q
Driver(s)
Slot Path Bus Speed Power Occupied Suspended Capable
0-0-1-1 1/0/8/0 64 33 On Yes No Yes
0-0-1-2 1/0/10/0 80 33 On Yes N/A N/A
0-0-1-3 1/0/12/0 96 66 On Yes No Yes
0-0-1-4 1/0/14/0 112 33 On Yes No Yes
0-0-1-5 1/0/6/0 48 33 Off No N/A N/A
0-0-1-6 1/0/4/0 32 33 Off No N/A N/A
0-0-1-7 1/0/2/0 16 33 Off No N/A N/A
0-0-1-8 1/0/1/0 8 33 Off No N/A N/A

best regards

Stefan
Davor Bira?
Frequent Advisor

Re: Problem with rad

Thanks Stefan
Davor Bira?
Frequent Advisor

Re: Problem with rad

Closed