+ All Categories
Home > Documents > System Startup and Shutdown

System Startup and Shutdown

Date post: 14-Apr-2018
Category:
Upload: draju19886148
View: 237 times
Download: 1 times
Share this document with a friend

of 17

Transcript
  • 7/30/2019 System Startup and Shutdown

    1/17

    SYSTEM STARTUP

    AND SHUTDOWN

  • 7/30/2019 System Startup and Shutdown

    2/17

    Introduction

    This topic discusses how the systemenvironment should be managed.

    It will explain the boot options suchas normal boot, maintenance boot,management services anddiagnostics.

    And also it tells about startupprocess and shutdown process.

  • 7/30/2019 System Startup and Shutdown

    3/17

    Objectives

    Describe the system startup process

    Describe how to shutdown theprocess

    Describe the contents of the/etc/inittab file

    Manage the system environment

  • 7/30/2019 System Startup and Shutdown

    4/17

    Alog command

    Description

    The alog command reads standardinput, writes to standard output, and

    copies the output into a fixed-size file. This works with log files that are

    specified on the command line or with logsthat are defined in the alog configurationdatabase.

  • 7/30/2019 System Startup and Shutdown

    5/17

    Flags

    -C

    Changes the attributes for a specifiedLogType. Use the -C flag with the -f, -s,

    and -w flags to change the File, Size, andVerbosity attributes for the specifiedLogType. The -t LogType flag is required.

    -o

    Lists the contents of LogFile. Writes thecontents of LogFile to standard output insequential order.

  • 7/30/2019 System Startup and Shutdown

    6/17

    -L

    Lists the log types currentlydefined in the alog configurationdatabase.

    -vWrites the current value of the

    Verbosity attribute for LogType thatis defined in the alog configurationdatabase to standard output.

  • 7/30/2019 System Startup and Shutdown

    7/17

    Example

    To list the contents of /tmp/sample.loglog file as,

    alog -f /tmp/sample.log o

    To record the current date and time in

    a log file named sample. log,date | alog -f /tmp/sample.log

  • 7/30/2019 System Startup and Shutdown

    8/17

    Specified log Type

    To display the current attributes of aspecified log type,

    alog -L [ -t LogType ]

    Example:

    To change the name of the log file for thelog type sample to /var/sample.log in the

    alog configuration database,alog -C -t sample -f /var/sample.log

  • 7/30/2019 System Startup and Shutdown

    9/17

    SYSTEM RESOURCE CONTROLLER

    The system resource controller(SRC) provides a set of commands tomake it easier for the administrator

    to control subsystems.Subsystem- A subsystem is a

    program or set of related programsis designed to perform a function.This can be further divided intoSubservers.

  • 7/30/2019 System Startup and Shutdown

    10/17

    Subservers- subservers are similarto daemons.

    Group- SRC was designed tominimize the need for userintervention since it provides controlof individual subsystem or group of

    subsystems.Some subsystem have subservers.

    For example the tcp/ip group

    contains a subsystem, inetd, thatcontains several subservers forexample ftp and telnet.

  • 7/30/2019 System Startup and Shutdown

    11/17

    System Resource Controller Syntax

    List SRC status1.The lssrc command is used to

    show the status of SRC.

    2. In following example we arechecking the status of spooler groupusing g.

    # lssrc g spooler

    3.To list the all processesa flag

    is used.

  • 7/30/2019 System Startup and Shutdown

    12/17

    Start a subsystem

    1.Startsrc command is usedto start the subsystems or groups.

    2.In following example we arestarting the lpd subsystem.

    # startsrc s lpd

    3.-s and g options are usedto control the subsystems orsubsystem groups respectively.

  • 7/30/2019 System Startup and Shutdown

    13/17

    Stop a subsystem

    1.Stopsrc is used to stop the

    subsystems or groups.

    2.lpd subsystem will be stoppedby following command.

    # stopsrcs lpd

    Kill command

    Which processes are notcontrolled by SRC those can be stopped bykill command.

  • 7/30/2019 System Startup and Shutdown

    14/17

    Refresh a subsystem

    1.Refresh command forcesthe subsystem to reread any of isconfiguration files.

    2.Here we are refreshing thelpd daemon.

    # refresh s lpd

    3.lpd

    The daemon thatcontrols the print server.

  • 7/30/2019 System Startup and Shutdown

    15/17

    System Shutdown

    Gracefully stops all activity on thesystem and advises all log on users.

    Warns users of a impendingshutdown.

    The SMIT shutdown fastpath or theshutdown command is used to shutthe system down cleanly.

  • 7/30/2019 System Startup and Shutdown

    16/17

    Flags

    -F Does the fast shutdown. -h Halts the operating system

    completely.

    -I Specifies interactive mode.

    -k Avoids shutting down thesystem.

    -m Brings the system down to

    maintenance(singleuser)mode. -t Restarts the system on the date

    specified by mmddHHMM.

  • 7/30/2019 System Startup and Shutdown

    17/17

    -r Restarts the system after being

    shutdown with reboot command.

    Example:

    To shutdown the system tosingle user mode.

    #cd /

    #shutdown -m


Recommended