Devices
ioscan
ioscan scans system hardware, usable I/O system devices, or kernel I/O system data structures as appropriate, and lists the results. For each hardware module on the system, ioscan displays by default the hardware path to the hardware module, the class of the hardware module, and a brief description.
ioscan -N displays output using the agile view instead of the legacy view -s lists the stale entries present in the system -b Explicitly defers a binding operation until the next reboot. -B Lists any pending deferred binding operations -r Removes any pending deferred binding operations.
–b, -r, -B Initiates, removes, and lists deferred bindings.
The existing –M and –H options force a named driver to bind to a specified hardware path. If that driver does not support online binding or the currently bound driver cannot unbind, then the binding operation is deferred until the next reboot. The –b option explicitly requests a deferred binding rather than an immediate one. The -r option, when used with the -H option, removes a deferred binding. The -B option lists all deferred bindings.
lssf and rmsf for stale devices
lssf -s # Displays stale DSFs—devices that have no associated hardware. rmsf -x # Removes stale entries from the I/O configuration as well as their associated DSFs.
To list all the fibre scsi cards on a HP-UX system
ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
fc 0 0/8/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td0
fc 1 1/10/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td1
To list the physical memory present
# ioscan -Fnc memory
To List all the disks
# ioscan -FunC disks
To find out number of Processors
# ioscan -FnC processor
To find out the number of ethernet cards
# ioscan -FnC lan
To find the system type and user license
# uame -a
To find the model number
# model
To find the system serial number
# getconf MACHINE_SERIAL
To get the ioscan output in single line for all disks
# ioscan -funC disk | awk '$1=="disk" { getline L2; print $0,L2 }'
To get only the claimed disks and remove extra spaces
# ioscan -funNC disk | awk '{if ($5=="CLAIMED") {L1=$0;getline; sub (" *","");print L1,$0}}'
# ioscan -funC disk | awk '$1=="disk" {L1=$0;getline; sub (" *",""); print L1,$0}'
Support Tools Manager
stm - Runs support tools manager mstm - Menu Based STM running from terminals cstm - Command based STM xstm - Xwindows based STM
It allows you to access and run various support tools (information modules, firmware update tools, verifiers, diagnostics, exercisers, and utilities, depending upon your level of licensing privilege) on one or more PA-RISC machines
To get the processor information using cstm
# cstm Running Command File (/usr/sbin/stm/ui/config/.stmrc). -- Information -- Support Tools Manager Version C.56.00 --- --- cstm> map ## To list all the devices cstm> select device <device #> cstm> info cstm> infolog
To list the WWN, linkspeed, current status of fibre adapters
# fcmsutil /dev/td1
Vendor ID is = 0x00103c
Device ID is = 0x001029
XL2 Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x00128c
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0x632b13
N_Port Node World Wide Name = 0x50060b000024eda9
N_Port Port World Wide Name = 0x50060b000024eda8
Driver state = ONLINE
Hardware Path is = 1/10/0/0
Number of Assisted IOs = 120739
Number of Active Login Sessions = 1
Dino Present on Card = NO
Maximum Frame Size = 2048
Driver Version = @(#) PATCH_11.11: libtd.a : Dec 12 2003, 14:34:15, PHSS_28509
# machinfo
CPU info:
4 Intel(R) Itanium 2 9100 series processors (1.42 GHz, 12 MB)
532 MT/s bus, CPU version A1
8 logical processors (2 per socket)
Memory: 65504 MB (63.97 GB)
Firmware info:
Firmware revision: 04.03
FP SWA driver revision: 1.18
IPMI is supported on this system.
BMC firmware revision: 5.23
Platform info:
Model: "ia64 hp server rx6600"
Machine ID number: df386377-1d23-11de-978b-4f36ee938173
Machine serial number: USE49087YK
OS info:
Nodename: aemtest2
Release: HP-UX B.11.31
Version: U (unlimited-user license)
Machine: ia64
ID Number: 3745014647
vmunix _release_version:
@(#) $Revision: vmunix: B.11.31_LR FLAVOR=perf
Disks
To set the queue depth of a disk to 32 from default value of 8
# scsictl -m queue_depth=32 /dev/rdisk/disk14
To display the data moved through each lun path
# iostat -L 5
lunpath bps sps msps
disk16_lunpath6 3046 70.1 1.0
disk17_lunpath7 3288 26.1 1.0
disk16_lunpath11 3035 70.1 1.0
disk17_lunpath12 3289 26.1 1.0
disk16_lunpath6 14950 272.5 1.0
disk17_lunpath7 17072 42.9 1.0
disk16_lunpath11 15286 272.3 1.0
disk17_lunpath12 16929 43.1 1.0
disk16_lunpath6 12118 194.0 1.0
disk17_lunpath7 18365 45.6 1.0
disk16_lunpath11 12121 194.0 1.0
disk17_lunpath12 18486 45.6 1.0