18
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.2 © Copyright IBM Corporation 2009 Unit 5 AIX System Management Tools

Unit 5 AIX System Management Tools - MSU

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Unit 5 AIX System Management Tools - MSU

Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.2

© Copyright IBM Corporation 2009

Unit 5AIX System Management Tools

Page 2: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

Unit objectives

After completing this unit, you should be able to:

• Describe the benefits of the system management tools available with AIX version 6.1

• Discuss the functionality of SMIT, WebSM, and the new IBM Systems Director Console for AIX

• Explain how system management activity is logged

• Look at how we can use IBM Systems Director Console to monitor system health and to run commands concurrently on multiple hosts

Page 3: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

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 filesystem?

Page 4: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

System management objectives

• Minimize time and resources spent managing systems

• Maximize reliability, performance, and productivity

• Provide remote system management solutions

Page 5: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

AIX administration

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

Web-basedSystem

Manager(WebSM)

Text based Java GUI Web Interface

Designed to make Administration on AIX simple

New in AIX6

Page 6: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

SMIT• An interactive application that simplifies virtually every aspect of AIX

system administration

• Part of AIX, available by default

• SMIT doesn't 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

Page 7: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

SMIT main menu (text based)# smit

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

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

Page 8: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

Dialog screen

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

Page 9: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

Output screen

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 Standard

error

Page 10: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

Web-Based System Manager• A Java based GUI, similar to SMIT in functionality

• Part of AIX (available by default), based on a client/server model

• Resource intensive and more cumbersome to use than SMIT

• For AIX6, users should consider using IBM Systems Director Console for AIX

Page 11: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

IBM Systems Director Console for AIX• New web based management interface in AIX 6.1• Enables converged consoles

– Integrated solutions console– Lightweight infrastructure

• Includes links to SMIT and WebSM tasks• Requires Java v5 • Installed by default

– sysmgt.pconsole.rte– sysmgt.pconsole.apps.wdcem– sysmgt.pconsole.apps.websm– sysmgt.pconsole.apps.wrbac– sysmgt.pconsole.apps.wsmit– lwi.runtime

# 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

Page 12: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

Console interface• Web browser-based access

– https://<hostname (or IP)>:5336/ibm/console (Defaults to SSL. Use 5335 for non-SSL)

Page 13: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

Console management view

• New look and feel Toolbar

Work area

Navigation area

Define start-up pages

Page 14: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

System health (1 of 3)

• Portlets: System summary and Metric DetailsTime to refresh

Refresh immediately

Section-specific

help

Page 15: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

System health (2 of 3)

• Configuration Information

Page 16: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

System health (3 of 3)

• Portlets: Top Processes and File Systems

Page 17: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

Classical SMIT

Page 18: Unit 5 AIX System Management Tools - MSU

© Copyright IBM Corporation 2009

IBM Power Systems

Unit summary

Having completed this unit, you should be able to:

• Describe the benefits of the system management tools available with AIX version 6.1

• Understand the functionality of SMIT, WebSM, and the new IBM Systems Director Console for AIX

• Explain how system management activity is logged

• Look at how we can use IBM Systems Director Console to monitor system health and to run commands concurrently on multiple hosts