[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 System Management Guide: Operating System and Devices

Identifying System Run Levels

Before performing maintenance on the operating system or changing the system run level, you may need to examine the various run levels. This procedure describes how to identify the run level at which the system is operating and how to display a history of previous run levels. The init command determines the system run level.

Identifying the Current Run Level

At the command line, type cat /etc/.init.state and press the Enter key. The system displays one digit; that is the current run level. See the init command or the /etc/inittab file for more information about run levels.

Displaying a History of Previous Run Levels

You can display a history of previous run levels using the fwtmp command.

Note: The bosext2.acct.obj code must be installed on your system to use this command.
  1. Log in as root user.
  2. Type /usr/lib/acct/fwtmp </var/adm/wtmp |grep run-level and press the Enter key.

    The system displays information similar to the following:

    run-level 2  0 1 0062 0123 697081013 Sun Feb  2 19:36:53 CST 1992
    run-level 2  0 1 0062 0123 697092441 Sun Feb  2 22:47:21 CST 1992
    run-level 4  0 1 0062 0123 698180044 Sat Feb 15 12:54:04 CST 1992
    run-level 2  0 1 0062 0123 698959131 Sun Feb 16 10:52:11 CST 1992
    run-level 5  0 1 0062 0123 698967773 Mon Feb 24 15:42:53 CST 1992

[ Previous | Next | Contents | Glossary | Home | Search ]