Unix OS Aix Device file command

** Myself
Device
block device : random access
charector device / raw device : scan from first block
Physical device hardisk have multiple logical devices
ex logical device
hdisk0 --> block
rhdisk0 --> char
rmt0
rmt0.1
if Major number is same then device kernel same
Add hardware
cfgmgr (if defined is must available else loade predefine to device driver)
# create device new file but pararell port is not support
Device states
smit devices
(lsdev -c=class -s=subclass -H=showheader)

Predefind (support but is not available,cfgmgr)
lsdev -P -H
list adapter
lsdev -P -c adapter
Customize
lsdev -C -H
list adapter
lsdev -C -c adapter
list disk
lsdev -C -c disk
list disk attribute
lsattr -EHl hdisk1
list system
lsattr -EHl sys0
list CPU speed
lsattr -EHl proc0
list Memory size

lsattr -EHl mem0
move device file from customize available to Customize defined
rmdev -l fdisk4
move device file from customize available to Predefined
rmdev -dl fdisk4
#Defined was not usable
#Available is Ready for use
if add hw but is not create devie file to
smit devices --> Install/config device add --> cdrom aix1
Location code(from cpu code and spec)
10=pci or isa
80=plug and play(A-Z is integrated)
00=single scsi/connector id (other dual scsi bus is internal bus or external bus)
2,0=scsi address,lun(logical unit number)
show slot physical from machine
lsdev -C -H -F "name status physloc location description"
lsdev -C |grep 10-80
cd0 Available 10-80-00-3,0 SCSI Multimedia CD-ROM Drive
hdisk1 Available 10-80-00-2,0 16 Bit SCSI Disk Drive
hdisk2 Available 10-80-00-4,0 16 Bit SCSI Disk Drive
scsi0 Available 10-80 Wide/Fast-20 SCSI I/O Controller (default is 7)
## if hdiskX defind is not usable
Adapter connected serial port
smitty tty
rs222 (9pin)
list serial,manufacture
lscfg -vp
lscfg -vpl hdisk1 ( serial number)
System configuration variables
getconf -a

    0 comments:

    Loading