1825003 Members
2716 Online
109678 Solutions
New Discussion юеВ

Re: ioscan -F

 
John Mannion
Occasional Advisor

ioscan -F

ioscan -F produces a compact listing of fields
however when run the order of these fields does
not match the order listed in ioscan(1M) manpage.

Anyone got any ideas why or what the correct order is ?

Does this order differ between HP-UX versions ?
4 REPLIES 4
Darren Prior
Honored Contributor

Re: ioscan -F

Hi,

Can you post a sample of your ioscan -F output, and let us know which version of HP-UX you are using.

regards,

Darren.
Calm down. It's only ones and zeros...
John Mannion
Occasional Advisor

Re: ioscan -F

Using:

HP-UX B.11.22 ia64

# ioscan -FunC disk
scsi:wsio:T:T:F:31:188:0:disk:sdisk:0/0/2/0.0.0.0:5 128 2 49 0 0 0 0 178 176 193 12 0 0 0 0 :0:root.sba.lba.side_ba.ide_ch.tgt.sdisk:sdisk:CLAIMED:DEVICE:TEAC DV-28E-B:0
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
scsi:wsio:T:T:F:31:188:131072:disk:sdisk:0/1/1/0.0.0:0 0 3 18 0 0 0 0 93 189 29 62 27 141 77 151 :1:root.sba.lba.mpt.tgt.sdisk:sdisk:CLAIMED:DEVICE:HP 36.4GST336753LC:2
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
scsi:wsio:T:T:F:31:188:135168:disk:sdisk:0/1/1/0.1.0:0 0 3 18 0 0 0 0 93 189 29 62 12 219 51 41 :2:root.sba.lba.mpt.tgt.sdisk:sdisk:CLAIMED:DEVICE:HP 36.4GST336753LC:2
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
scsi:wsio:T:T:F:31:188:204800:disk:sdisk:0/1/1/1.2.0:0 0 3 18 0 0 0 0 93 189 29 62 62 150 217 75 :3:root.sba.lba.mpt.tgt.sdisk:sdisk:CLAIMED:DEVICE:HP 36.4GST336753LC:3
/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s1 /dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s1 /dev/rdsk/c3t2d0s2

Thanks
Ralph Grothe
Honored Contributor

Re: ioscan -F

I cannot moan, my ioscan manpage (HP-UX 11.00) reports the fields in the correct sequence.

e.g.

# man - ioscan|col -b|sed -n '/Fields/,/follows:/p'|grep -Ev '^[[:space:]]+$|- [0-9] -|\(1M\)'
Fields
The -F option can be used to generate a compact listing of fields
separated by colons (:), useful for producing custom listings with
awk. Fields include the module's bus type, cdio, is_block, is_char,
is_pseudo, block major number, character major number, minor number,
class, driver, hardware path, identify bytes, instance number, module
path, module name, software state, hardware type, a brief description,
and card instance. If a field does not exist, consecutive colons hold
the field's position. Fields are defined as follows:


Compared to one line of ext_bus entries:

# ioscan -kFCext_bus|tail -1
pci:wsio:F:F:F:0:0:393216:ext_bus:fcpdev:1/10/0/0.8.0.255.0:2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 :6:r
oot.sba.lba.fcT1.fcp.fcpdev:fcpdev:CLAIMED:INTERFACE:FCP Device Interface:6


How are you parsing the output.

If you use Perl there is a CPAN module that could greatly ease the task.
Please, check the HPUX::Ioscan module:

http://www.cpan.org/modules/by-module/HPUX/
Madness, thy name is system administration
John Waller
Esteemed Contributor

Re: ioscan -F

Reading the man page it does state:
The -F option can be used to generate a compact listing of fields
separated by colons (:), useful for producing custom listings with
awk. Fields include the module's bus type, cdio, is_block, is_char,
is_pseudo, block major number, character major number, minor number,
class, driver, hardware path, identify bytes, instance number, module
path, module name, software state, hardware type, a brief description,
and card instance. If a field does not exist, consecutive colons hold
the field's position. Fields are defined as follows:

I believe that this is a more accurate order than the section that follows.

Its just a poorly phrased man page.