Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 19

DEVICE MANAGEMENT

Submitted by PRATHESH PK

What is devices management?


Device: A device is a unit of hardware that is capable of providing input to the essential computer or of receiving output or of both.

Device management: Activating and controlling the peripheral devices in a computer.

Device terminology
Physical devices- actual hardware Ports-physical connector/adapter Device drivers-software in the kernel Logical devices-software interface/special files

/dev directory-contains all the logical devices

Types of devices
Block devices - Structured random access device. - Buffering is used to acess. - Usually only disk file systems. - Eg: cd0 CD-ROM hdisk0 Physical Volume

Type of devices
Character devices: - Character device is a sequential, stream oriented device. - no buffering is required. -eg: tty0 Terminal tape devices

description
Most block devices also have an equivalent character device. hdisk0=rhdisko Devices has two numbers major number-software section code in the kernel minor number-particular device of that type

ls l /dev

Object data manager(odm)


Object oriented database. Stores information about devices,software and tcp/ip configuration. Predefined devices database. Customized devices database.

Predefined devices: Information about all supported devices on AIX system. Customized devices: Information about all configured devices on the system.

Commands:

lsdev P H lsdev Pc disk lsdev C H lsattr EH l sys0

Device states

Configuring devices
Cfgmgr command Checks in predefined database(pdDv) Entry in the customized database(cuDv) Loads device driver into the AIX kernel Logical device entry in /dev

*devices which are connected via parallel or parallel potrs.

Device addressing
The location code for a device is information about where exactly is that devices connection in your machine.

Its a path from the adapter, through the bus and to the device. Location code is made up of 4 fields of information.

Location code for a non scsi device


AB-CD-EF-GH AB 00 ->devices attached to the processor 01 ->devices attached to the ISA bus 04 ->devices attached to the PCI bu CD 01-99 ->pluggable cards A-Z,0 ->integrated adapter cards EF ->Connector ID GH ->Port identifier, FRU for the device

Non scsi location code

Location Code Format for SCSI Devices


AB-CD-EF-G,H AB-CD -> Identifies the bus and the adapter location same as non-scsi EF -> For a single SCSI bus 00 For a dual SCSI bus: Internal bus - 00 External bus - 01 G -> SCSI address (SCSI ID) of the device H -> Logical unit number of the device

Scsi location code

Device commands
Lsattr El sys0 list all attributes under sys0

Chdev l sys0 a maxproc=80


Cfgmgr I path install the drivers

Lsslots C pci list al devices connected to pci bus


Cfgmgr l fs0 to configure detected devices to the fsc0

adapter
Lscfg vpl ent0 shows location code,mac address Lscfg v manufacture,type, model etc.

THANK U

You might also like