ABC Of AIX

Welcome to the World of AIX learning!!!

Posts Tagged ‘/dev

Devices

with 2 comments

Devices:

1. Command used for listing of /dev directory:

# ls –l /dev

2. Predefined means supported. (PdDv)

Command used:

# lsdev –PH

3. Customized means configured / defined (entry in ODM class CuDV) / available (CuDV)

Command used is:

# lsdev –CH

4. How is the location code understood:

AB-CD-EF-GH

Means

AB: Drawer

CD: Slot

EF: Connector

GH: Port

AB-CD together is adapter

Happy Learning!

Additional Information On AIX System Administration – IV

leave a comment »

# lsfs command gives the following output:

Hd1 – home

Hd2 – USR

HD3 – TMP

HD4 – Root

HD5 – BLV

HD6 – Paging Space (2 types: primary, secondary)

HD7 – Not Found

HD8 – JFS

HD9 – VAR

HD10 – MNT

HD11 – admin (available in AIX V 6.1)

LED code 0c0 means successful completion of dump.

To view extended permissions, command used is:

# ls –e <filename>

Command used to set tty port for bidirectional mode:

# share <port attributes>

Commands used to setup quota for file system for end users are:

# vi /etc/<file system>

# edquota /<file system> <username>

# quotaon <file system>

# quotaon /<file system>

To initiate system dump, command used is:

# sysdumpstart –P (for primary)

# sysdumpstart –S (for secondary)

SNAP is generally used to gather system information.

Some of the SNAP commands are:

# snap –a

# snap –g

# snap –D

Image.data contains information about VG’s and LV’s.

Bosinst.data contains information about installation flow control.

To view mksysb tape and to restore particular file from mksysb tape, commands used are:

# tctl –f /dev/<tape drive name>

# restore –tvf /dev/<tape drive name>

# restore –xvf /dev/<tape drive name>

For eg:

# tctl –f /dev/rmt0

# restore – tvf /dev/rmt0

# restore – xvf /dev/rmt0

Tctl command is basically used to rewind the tape drive.

To list NIM objects, command used:

# lsnim

NIM stands for network installation management.

To see NIM log, command used is:

# nim –o showlog –a full_log = yes –a log_type = logtype NIMclient

Logtype can be boot, script etc.

NIMClient is the hostname / ip address of the client machine.

Sources of this command : IBM AIX Forum

# smit system command is used to change the server time.

# smit date command is used to change system date.

Time synchronization is either done by running time demon or ntp demon.

P5 family:

  1. Entry :

i.      P5 510

ii.      P5 520

iii.      P5 550

  1. Mind Range :

i.      P5 570

  1. High End :

i.      P5 575

ii.      P5 590

iii.      P5 595

Physical Volume (PV) id can be found in Cuat ODM class.

Device in defined state means there is an entry in ODM class CuDV.

Procedure to change bootlist from hdisk0 to hdisk1:

Go to SMS mode by pressing F1 and change the bootlist by running the following command:

# bootlist –m normal hdisk0 hdisk1

If a machine keeps rebooting and repeating POST, it means either there is invalid bootlist or corrupted BLV or hardware failure of boot device.

More we will discuss about AIX System Administration in the coming posts.

Till then,

Happy Learning !

Additional Information On AIX System Administration – I

with 2 comments

This post will discuss about some additional information about AIX OS that can be used in production environment.

If the admin wants to filescan the root file system:

  • Admin must go into the maintenance mode after booting from the disk.
  • Type the following command:
  • # /etc/continue <bootdisk> exit
  • For eg:
  • # /etc/continue hdisk0 exit
  • # fsck /dev/hd4

To filescan the /usr directory:

  • To do this, /usr should be unmounted. Unmounting is not an easy process as /bin directory is linked to /usr directory in /usr/bin. So admin must go into the maintenance mode first and then run
  • # getrootfs <bootdisk> sh
  • For eg:
  • # getrootfs hdisk0 sh
  • After running this command, next command user needs to run is:
  • # fsck /dev/hd2

To change the parameters (for eg: number of processes per user run), command used is:

  • # lsattr –EH –l sys0 –a maxuproc
  • # chdev –EH –l sys0 –a maxuproc = 200

To list all the virtual printers a print queue is using, command used is:

  • # lsvirprt

To check if AIX has a PTF applied to it or not, command used is:

  • # lslpp –B1 UXXXXXXX
  • Where
  • UXXXXXXX is the PTF number

PTF stands for program temporary fix.

Click cancel or F10 to exit from SMIT menu.

To check inode statistics, command used is:

  • # istat /etc/passwd

Various degraf commands are:

  • # defrag –q

Or

  • # defrag –r

Or

  • # defrag –s

Alog information is available in /var/adm/ras directory.

  • # smit alog_show
  • Command can also be used for the same output on smit screen as that of alog command.

Fileset Revision Level Identification (FRLI)

  • XX.XX.XXXX.XXXX
  • XX stands for Version (0-2)
  • XX stands for release (0-2)
  • XXXX stands for modification (1-4)
  • XXXX stands for Fix level (1-4)
  • # smit update_all command can also be used for modification and fix level information.

JFS stands for journeled file system.

File system:

  • Hd1 : Home
  • Hd2 : USR
  • Hd3 : TMP
  • Hd4 : ROOT
  • Hd5 : BLV
  • Hd6 : Paging Space
  • Hd7 : Not Found
  • Hd8 : JFS / JFS2
  • Hd9 : VAR
  • Hd10 : OPT

Happy Learning!