28
8.1 US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp © Copyright IBM Corporation 2009, 2013. All Rights Reserved. AIX system management tools

AIX system management tools

Embed Size (px)

DESCRIPTION

AIX system management tools

Citation preview

  • 8.1US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    AIX system management tools

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Unit objectivesAfter completing this unit, you should be able to: Describe the benefits of the system management tools

    available in AIX Discuss the functionality of SMIT and the IBM Systems

    Director Console for AIX Explain how system management activity is logged Log in to IBM Systems Director Console and use graphic

    interface to manage the system

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    UNIX system administration challenges Lots of commands to remember Complex syntax

    Prone to error! Flat file configuration

    Most UNIX flat files have different layouts, syntax, and options. Again prone to error, sometimes causing bad things to happen.

    # crfs -v jfs -g rootvg -m /test -a size=42M efs=yes

    Usage: crfs -v Vfs {-g Volumegroup | -d Device} -m Mountpoint [-u Mountgroup] [-A {yes|no}] [-t {yes|no}] [-p {ro|rw}] [-l Logpartitions] [-n nodename] [-a Attribute=Value]

    How do I create an encrypted file system?

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    System management objectives Minimize time and resources spent managing systems

    Maximize reliability, performance, and productivity

    Provide remote system management solutions

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    System Management Interface Tool

    (smit)

    High-level commands

    Low-levelcommands

    Intermediate-levelcommands

    IBM Systems Director Console for AIX

    (pconsole)

    Systemcalls

    Kernelservices

    SystemResourceController

    Object DataManager

    ASCIIfiles

    Text based Web Interface

    Designed to make administration on AIX simple

    AIX administration

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    SMIT An interactive application that simplifies virtually every aspect

    of AIX system administration. Part of AIX, SMIT is available by default. SMIT does not use any special hooks. Everything is based on

    standard AIX commands and Korn shell functions. You can see exactly what commands it performs either before or after

    execution. This is especially useful when you need to automate a repetitive task.

    You can then use these commands in your own scripts.

    Text / ASCII based by default. If on a graphical display, such as the Virtual Network Computing (VNC)

    viewer, and the DISPLAY variable is set, a Motif GUI version is displayed.

    Most users prefer the text based version called smitty.

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    # smitSystem Management

    Move cursor to desired item and press Enter.

    Software Installation and MaintenanceSoftware License ManagementDevicesSystem Storage Management (Physical & Logical Storage)Security & UsersCommunications Applications and ServicesWorkload Partition AdministrationPrint SpoolingAdvanced AccountingProblem DeterminationPerformance & Resource SchedulingSystem EnvironmentsProcesses & SubsystemsApplicationsInstallation AssistantCluster Systems ManagementUsing SMIT (information only)

    F1=Help F2=Refresh F3=Cancel F8=ImageF9=Shell F10=Exit Enter=Do

    System Management

    Move cursor to desired item and press Enter.

    Software Installation and MaintenanceSoftware License ManagementDevicesSystem Storage Management (Physical & Logical Storage)Security & UsersCommunications Applications and ServicesWorkload Partition AdministrationPrint SpoolingAdvanced AccountingProblem DeterminationPerformance & Resource SchedulingSystem EnvironmentsProcesses & SubsystemsApplicationsInstallation AssistantCluster Systems ManagementUsing SMIT (information only)

    F1=Help F2=Refresh F3=Cancel F8=ImageF9=Shell F10=Exit Enter=Do

    SMIT main menu (text based)

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Change / Show Day and Time

    Type or select values in entry fields.Press Enter AFTER making all desired changes.

    [Entry Fields]YEAR (00-99) [08] #MONTH (01-12) [10] #DAY (1-31) [08] #HOUR (00-23) [11] #MINUTES (00-59) [23] #SECONDS (00-59) [06] #

    F1=Help F2=Refresh F3=Cancel F4=ListF5=Reset F6=Command F7=Edit F8=ImageF9=Shell F10=Exit Enter=Do

    Change / Show Day and Time

    Type or select values in entry fields.Press Enter AFTER making all desired changes.

    [Entry Fields]YEAR (00-99) [08] #MONTH (01-12) [10] #DAY (1-31) [08] #HOUR (00-23) [11] #MINUTES (00-59) [23] #SECONDS (00-59) [06] #

    F1=Help F2=Refresh F3=Cancel F4=ListF5=Reset F6=Command F7=Edit F8=ImageF9=Shell F10=Exit Enter=Do

    # smit date

    Command preview

    Current fast path:"date"

    Shell exit, very useful to check

    something prior to execution

    Dialog screen

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    COMMAND STATUS

    Command: OK stdout: yes stderr: no

    Before command completion, additional instructions may appear below.

    Wed 8 Oct 11:23:06 2008

    F1=Help F2=Refresh F3=Cancel F6=CommandF8=Image F9=Shell F10=Exit /=Findn=Find Next

    COMMAND STATUS

    Command: OK stdout: yes stderr: no

    Before command completion, additional instructions may appear below.

    Wed 8 Oct 11:23:06 2008

    F1=Help F2=Refresh F3=Cancel F6=CommandF8=Image F9=Shell F10=Exit /=Findn=Find Next

    Command completed

    successfully

    Standard output following command

    execution (stdout)

    No standarderror

    Output screen

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    SMIT log and script files

    $HOME/smit.log Records a log of all menu and dialog screens visited, all commands

    executed, and their output Records any errors during the SMIT session

    $HOME/smit.script Shell script containing all AIX commands executed by SMIT

    $HOME/smit.transaction SMIT transactions log Records date, description, and command script output of the commands

    executed

    smit.log

    smit.script

    smit.transaction

    smitcommand execution

    SMIT output will be redirected to file: /tmp/new-script. No

    commands will be run.# smitty xs /tmp/new-script

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    IBM Systems Director Console for AIX (pconsole) Web-based management interface (starting with AIX 6.1) Enables converged consoles consistent with IBM Systems

    Director: Integrated solutions console Lightweight infrastructure

    Includes links to SMIT tasks Requires Java v5 Installed by default

    # lssrc -s pconsoleSubsystem Group PID Statuspconsole pconsole 737388 active

    # netstat -a |grep 5336tcp 0 0 *.5336 *.* LISTEN

    # lssrc -s pconsoleSubsystem Group PID Statuspconsole pconsole 737388 active

    # netstat -a |grep 5336tcp 0 0 *.5336 *.* LISTEN

    How to check that it is running

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Console interface Web browser-based access

    https://:5336/ibm/console (Defaults to SSL. Use 5335 for non-SSL.)

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    OS Management (new SMIT-based tasks) Portlets/modules

    For example, system health

    Classical SMIT Classic-style smit menus for those who prefer a more traditional look

    and feel

    Distributed Command Execution Manager (DCEM) Used to execute commands on multiple systems in parallel Based on the standard UNIX dsh function

    On AIX, this is part of the Cluster Systems Management (CSM) product, csm.dsh, which is installed as part of a base AIX install.

    Supports groups of systems Supports rsh and ssh authentication

    Console applications

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Console management view New look and feel

    Toolbar

    Work area

    Navigation area

    Define start-up pages

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Portlets: System summary and metric detailsTime to refresh

    Refresh immediately

    Section-specific

    help

    System health (1 of 3)

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    System health (2 of 3) Configuration information

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    System health (3 of 3) Portlets: Top Processes and File Systems

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Classical SMIT

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Graphical driven UNIX dsh

    functionality

    L

    P

    A

    R

    :

    A

    I

    X

    2

    L

    P

    A

    R

    :

    A

    I

    X

    3

    L

    P

    A

    R

    :

    A

    I

    X

    4

    L

    P

    A

    R

    :

    A

    I

    X

    1

    Commands

    dsh

    DCEM portlet (1 of 5)

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Defaults to standard PATH and user root.

    Enter commands to

    run.

    Enter job name and

    description.

    DCEM portlet (2 of 5)

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Specify target

    machines.

    DCEM portlet (3 of 5)

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Defaults to rsh, ssh is optional

    Confirmation that job is running

    DCEM portlet (4 of 5)

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Status: Completed OK

    or failure!

    Report output.Further host output

    can be seen by selecting the links

    below.

    DCEM portlet (5 of 5)

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Console logging and tracing Console logs

    Location: /var/log/pconsole/logs Formatted using XML

    Rotated using file names error-log-#.xml and trace-log-#.xml

    Classical SMIT logs Location: $HOME/wsmit.log & wsmit.script

    DCEM log Location: $HOME/dcem/logs/dcem.log

    # ls /var/log/pconsole/logserror-log-0.xml error-log-5.xml trace-log-3.xmlerror-log-0.xml.lck Log_Viewer.xml trace-log-4.xmlerror-log-1.xml trace-log-0.xml trace-log-5.xmlerror-log-2.xml trace-log-0.xml.lck error-log-3.xml trace-log-1.xml error-log-4.xml trace-log-2.xml

    # ls /var/log/pconsole/logserror-log-0.xml error-log-5.xml trace-log-3.xmlerror-log-0.xml.lck Log_Viewer.xml trace-log-4.xmlerror-log-1.xml trace-log-0.xml trace-log-5.xmlerror-log-2.xml trace-log-0.xml.lck error-log-3.xml trace-log-1.xml error-log-4.xml trace-log-2.xml

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    1. List the three main system management tools available on AIX.a. ______________b. ______________c. ______________

    2. What is the purpose of the smit.script file?

    3. What information can one get from looking at the system configuration details in IBM Systems Director Console?a. ______________b. ______________c. ______________d. ______________e. ______________

    Checkpoint

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Checkpoint solutions1. List the three main system management tools available on AIX.

    a. SMITb. WebSMc. IBM Systems Director console for AIXThe answers are SMIT, WebSM, and IBM Systems Director console for AIX.

    2. What is the purpose of the smit.script file?The answer is to obtain the commands SMIT has just executed.

    3. What information can one get from looking at the system configuration details in IBM Systems Director Console?a. Firmware/model informationb. File system informationc. Paging space informationd. A list of top CPU logging processese. Network configuration, IP address, and so onThe answers are firmware/model information, file system information, paging space information, a list of top CPU logging processes, and network configuration, IP address, and so on.

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    AIX system management

    Exercise

  • IBM Power Systems

    US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp Copyright IBM Corporation 2009, 2013. All Rights Reserved.

    Unit summary

    Having completed this unit, you should be able to: Describe the benefits of the system management tools

    available in AIX Discuss the functionality of SMIT and the IBM Systems

    Director Console for AIX Explain how system management activity is logged Log in to IBM Systems Director Console and use graphic

    interface to manage the system