Pages

Wednesday, August 3, 2011

Hardware Inspection Commands


Aix


For help on P Series Hardware Spares Please mail shailesh.bhanushali@infotrendz.com

how to display the size of a hdisk in AIX

Description


To display the size of disk in AIX:


# bootinfo -s hdiskx

Example


bootinfo -s hdisk0



how to find the number of cores per processor in AIX

Description


To find out how many cores per cpu in AIX:


# lscfg -vpl sysplanar0 | grep -i way

4-WAY PROC CUOD :

4-WAY PROC CUOD :


In this case, we have a quad-core.


# pmcycles -m         [ Cpu core output ]  total no of cores running

# lscfg -vpl sysplanar0 | grep -i way

2-WAY PROC CUOD :

2-WAY PROC CUOD :


In this case, we have a dual-core.

Example


lscfg -vpl sysplanar0 | grep -i way
                                    

#lscfg -vp | grep -e "Memory DIMM" -e "Size"


Will show memory installed in system



how to find the serial number of an IBM p-series machine

Description


To help those who need to check their IBM p-series machine serial number without having to physically go there to look for the serial number:


# lscfg -vp | grep Cabinet

Example


lscfg -vp | grep Cabinet
                                                                       


To find the world-wide name (WWN) or network address of a fibre-channel (FC) card in IBM AIX:


First find the name of your fibre-channel cards:


# lscfg | grep fcs


Then get the WWN (for fcs0 in this example):


# lscfg -vp -l fcs0 | grep "Network Address"

Example


lscfg -vp -l fcs0 | grep "Network Address"


lsdev -Cc adapter -> adapter cards
lsdev -Cc disk -> disks
lsdev -Cc processor -> CPU's
lsattr -El sys0 -> serial number, model number, memory
lsvg -o -> active volume groups
lsvg -p vgname -> disk drives in VG
lsvg -l  vgname -> LV's in VG
lslv  lvname -> LV detail
lslv -l lvname -> LV disk location
lspv -> disks
lspv -l hdisk# -> LV's residing on a disk
lsdev -Cc if -> List network interfaces



HP UX


model - to print hardware model information in HP/UX

Description


To print hardware model information in HP/UX:


# model

pvdisplay - to display physical volume information in HP/UX

Description


To display physical volume information in HP/UX:


# pvdisplay -v /dev/dsk/c#t#d#

Example


pvdisplay -v /dev/dsk/c0t0d0


SOLARIS
 
For help on Sun Hardware Spares Please visit www.infotrendz.com  or call +919769494144



prtconf - to get hardware information in Sun Solaris

Description


To get hardware information in Sun Solaris:


# prtconf -v

Example


prtconf -v
           


prtdiag - to list hardware configuration in Sun Solaris

Description


To list hardware configuration in Sun Solaris:


# /usr/platform/`uname -i`/sbin/prtdiag -v


Note: works on sun4u and sun4d only

Example


/usr/platform/`uname -i`/sbin/prtdiag -v


psrinfo - display information about processors in Sun Solaris

Description


To display information about processors in Sun Solaris:


# psrinfo [-v] [processor_id...]


# psrinfo -s processor_id


Without the processor_id operand, psrinfo displays one line for each configured processor, displaying whether it is on-line, non-interruptible (designated by no-intr), off-line, or powered off, and when that status last changed. Use the processor_id operand to display information about a specific processor.


The -v flag displays info about all configured processors in verbose mode.

Example


psrinfo 1

No comments:

Post a Comment