Friday, October 7, 2011

Tivoli Storage Manager Overview

TSM Version: 5.3.2

IBM Tivoli storage manager stores copies of data offline.

It protects hundreds of computers running a variety of OS

Components:

· Administrative interface

· TSM Server

· Scheduler

· Backup-Archive Client

· TSM Database

· TSM Recovery log

· Storage Pools

· Policy-Based Management

· Tape Library

Administrative interface: TSM Administration center, which operates on the Integrated Solutions Console (ISC), provides a task oriented GUI for storage administrators. Tasks such as creating server maintenance scripts, scheduling, adding storage devices, setting policy domains, user management, viewing the health monitor.

TSM Server: The role of TSM server is to store the backup or archive data from the backup-archive clients that it supports , to storage media. It also has a database of information to keep track of the data it manages, including policy management objects

Scheduler: Administrator defined schedules allow for the automation of Tivoli storage manager server and backup-archive client operations.

Backup-Archive Client: The TSM backup-archive client is a service which sends data to, and retrieves data from TSM server. The TSM backup-archive client must be installed on every machine that needs to transfer data to server managed storage called storage pools.

TSM Database: TSM Saves information in the TSM database about each file, raw LV, database that it backs up, archives. This information includes the File name, size, management class. Data is stored in a storage pool.

TSM Recovery Log: The recovery log keeps track of all changes made to the database, If a system outage were to occur, a record of the changes would be available for recovery.

Storage Pools: Storage pools are collections of like media that provide storage for backed up, archived and migrated files.

Policy-Based Management: Business policy is used to centrally manage backup-archive client data. Policies are created by the administrator and stored in the database on the server.

Tape Library: TSM supports a variety of library types, including manual libraries, SCSI libraries, 349X and 358X libraries.

Backup-Restore functionality:

TSM can perform backups of both files and raw lv’s. When backing up files TSM server database keeps a list of all files and their attributes (time, date, size, access control lists)

Backup: Creates a copy of file to protect against the operational loss or destruction of that file. Customers control backups by defining the backup frequency and number of versions.

Restore: Places backup copies of files into a customer designated system. By default the most recent version of each archive file requested is replaced.

4 levels of backups:

· Byte level ( Small amounts of data)

· Block Level (bigger amount of data)

· File level ( normal files)

· Image level ( includes file system and files)

TSM uses Progressive Backup Methodology also known as Incremental Backups.

Long term storage capabilities through Archive-Retrieve Function:

Archiving is useful when you want to store data that is infrequently accessed but must still be kept available. TSM has the capability of archiving for 30 years.

· Archive: Creates a copy of file or set of files. This feature enables customers to keep unlimited archive copies of a file.

· Retrieve: Allows users to copy an archive file from the storage pool to the work station.

Administration center on the integrated solutions console: GUI for managing IBM TSM administrative function is called the Administration Center.

Automation Capabilities: It includes a central scheduling component that allows the automatic processing of administrative commands and backup-archive client operations during a specific time period when the schedule is activated.

Scheduling is split into 2 categories:

· Administrative scheduling

· Backup-archive client scheduling.

Data storage and Data Management:

Types of storage media on which TSM stores data: Storage media can be disks, optical and tape assigned to a storage pool.

Storage pools contain backup files, archived files and space managed files. These storage pools are chained in order to create a storage hierarchy. The disk pool is usually first in the chain and followed by tape.

Policy –Based Approach: Backup-archive client data managed by business policy. Policies created by the administrator and stored in the database on the server.

Policy Domain: A group of nodes managed by the same set of policy constraints as defined by the policy sets. A node may only to be defined to one policy domain per server.

Policy Set: A collection of management class definitions. A policy domain may contain number of policy sets.

Management Class: A collection of management attributes called copy groups. 2 sets of MC attributes: backup and archive

Copy group: Management attributes describing backup and archive characteristics. There is a backup copy group and an archive copy group.

TSM Licensing:

3 License types: tsmbasic.lic, tsmee.lic and dataret.lic

Tuesday, August 30, 2011

ATAPE Driver installation & Upgradation

From AIX:
List the tape devices: lsdev -Cc tape
Remove the drive and library device names: rmdev -dl
For example, if the drive device name is /dev/rmt1: rmdev -dl rmt1

Upgrade Atape
Ftp the Atape driver in binary mode from IBM FIXCentral:
http://www.ibm.com/support/fixcentral/

Remove the older Atape driver (optional): installp -u Atape.driver

Install and commit the Atape driver. For example, if you downloaded the file to /tmp/Atape.9.3.5.0.bin: installp -acXd /tmp/Atape.9.3.5.0.bin all

Configure the tape device: cfgmgr -v (-v is not required but will show where it hangs if it does)

Verify the new devices are Available: lsdev -Cc tape

(Note: While not always absolutely necessary, it is strongly recommended to reboot the system after upgrading the Atape.driver)

Thursday, May 19, 2011

HMC Critical Consolidated Backup

Backup Critical Console Data :

The Backup Critical Console Data task is used to back up the HMC configuration and profile data to the formatted DVD-RAM media. The backup DVD-ROM media is used only when recovering the HMC from the software or hardware problem. The following data is included in the backup DVD-RAM media:

  • User configuration
  • User preferences, including each user’s home directory
  • HMC configuration files that record the following customizing:
    • TCP/IP
    • Rexec/ssh facility setting
    • Remote virtual terminal setting
    • Time zone setting
  • HMC log files located in the /var/log directory
  • Service functions settings, such as Inventory Scout, Service Agent, and Service Focal Point
  • Partition profile data backup

Procedure to automate Critical Console Data backup :

You can automate the Backup Critical Console Data task using the HMC scheduler. Unless you plan on rotating the DVD media, only the most-recent backup image will be on the DVD. To schedule the Backup Critical Console Data task, do the following:

  1. In the Navigation area, expand the HMC Management folder.
  2. In the Navigation area, click the HMC Configuration icon.
  3. In the Contents area, click Schedule Operations.
  4. From the list, select the HMC you want to back up and click OK.
  5. Select Options > New.
  6. In the Add a Scheduled Operation window, select Backup Critical Console Data and click OK.
  7. In the appropriate fields, enter the time and date that you want this backup to occur.
  8. Click the Repeat tab and select the intervals at which you want the backup to repeat and press Enter.
  9. When you have set the backup time and date, click Save. When the Action Completed window opens, click OK. A description of the operation displays in the Scheduled Operations window

AIX Troubleshooting

1. How to force a failover of an EtherChannel ?
# /usr/lib/methods/ethchan_config -f Etherchannel_Device

2. How to add a backup adapter to an existing etherchannel device ?
# /usr/lib/methods/ethchan_config -a -b Etherchannel_Device Ethernet_Adapter

3. How to change the address to ping attribute of an EtherChannel ?
# /usr/lib/methods/ethchan_config -c Etherchannel_Device netaddr New_Ping_IP_Addr

4. How to list the available major numbers in a system ?
# lvlstmajor

5. How to list the major number of a volume group ?
# lvgenmajor rootvg

6. Consider a situation where you have a VG in a PV. But you have not imported that.
Now you need to find a list of attributes of that volume group before importing/varyon it.
Answer the below questions :

a. How to list the maximum number of logical volumes allowed in the VG ?
# lqueryvg -p PVname -N

b. How to show the PP size ?
# lqueryvg -p PVname -s

c. How to show the number of free PPs in the VG ?
# lqueryvg -p PVname -F

d. How to show the current number of LVs in the VG ?
# lqueryvg -p PVname -n

e. How to list the current number of PVs in the VG ?
# lqueryvg -p PVname -c

f. How to list the total number of VGDAs for the VG ?
# lqueryvg -p PVname -D

g. How to list each LVID, LV name, state for each logical volume ?
# lqueryvg -p PVname -l

h. How to list each PVID, number of VGDAs and state for each PV in the VG ?
# lqueryvg -p PVname -P

i. How to list all the attributes with tags for the vG ?
# lqueryvg -p PVname -At

j. How to list the VGID from that physical volume ?
# lqueryvg -p PVname -v

7. How do you move a physical partition ( actually its just a data between PPs) ?
# lmigratepp -g VGID -p old_PVID -n old_PPNum -P new_PVID -N new_PPNum

8. How to retrive the VG name for a particular LV from ODM ?
# getlvodm -b LVID

9. How to retrive all configured PVs from ODM ?
# getlvodm -C

10. How to retrive the major number for a VGID from ODM ?
# getlvodm -d VGID

11. How to retrive the logical volume allocation characteristics for a LVID from ODM ?
# getlvodm -c LVID

12. How to retrive the free configured PVs from ODM ?
# getlvodm -F

13. How to retrive the strip size for a LVID from ODM ?
# getlvodm -F LVID

14. How to retrive the PV name for a PVID from ODM ?
# getlvodm -g PVID

15. How to retrive all VG names from the ODM ?
# getlvodm -h

16. How to retrive the VGID for a PVID from ODM ?
# getlvodm -j PVID

17. How to retrive the LVs and LVIDs for a VG name or VGID from ODM ?
# getlvodm -L VGDescriptor

18. How to retrive the LVID/LV Name for a LV Name or LVID from ODM ?
# getlvodm -l LVDescriptor

19. How to retrive the mount point for a LVID from ODM ?
# getlvodm -m LVID

20. How to retrive the stripe width for a LVID from ODM ?
# getlvodm -N LVID

21. How to retrive the PVID/PN name for a PV name or PVID from ODM ?
# getlvodm -p PVDesciptor

22. How to retrive the PV names, PVIDs and VGs of all configured PVs from ODM ?
# getlvodm -P

23. How to retrive the relocatable flag for a LVID from ODM ?
# getlvodm -r LVID

24. How to retrive the VG state for a VG from ODM ?
# getlvodm -s VGDescriptor

25. How to retrive the timestamp for a VG from ODM ?
# getlvodm -T VGDescriptor

26. How to retrive the VG name for a VGID from ODM ?
# getlvodm -t VGID

27. How to retrive the auto-on value for a VG name or VGID from ODM ?
# getlvodm -v VGDesciptor

28. How to retrive the VGID for a vG name ?
# getlvodm -v VGDesciptor

29. How to retrive the PV names and PVIDs for a VG from ODM ?
# getlvodm -w VGDesciptor

30. How to retrive the LV type ffor a LVID from ODM ?
# getlvodm -y LVID

31. How to retrive the concurrent capable flag for a VG from ODM ?
# getlvodm -X VGDescriptor

32. How to retrive the auto-on concurrent flag for a VG from ODM ?
# getlvodm -x VGDescriptor

33. How to display the contents of LVCB ?
# getlvcb -A LVName

34. How to list the number of copies of a LV from LVCB ?
# getlvcb -c LVName

35. How to list the file system name of a LV from LVCB ?
# getlvcb -f LVName

36. How to list the label of a LV from LVCB ?
# getlvcb -L LVName

37. How to display the type of the file system from LVCB ?
# getlvcb -t LVName

38. How to display the upper limit from LVCB ?
# getlvcb -u LVName

39. How to list the current defrag state of a file system ?
# defrag -q Filesystem

40. How to lsit the current and future (if degragmented) state of a file system ?
# degrag -r Filesystem

41. How to defragment a file system ?
# defrag Filesystem

42. How to run fsck on 2 filesystems simultaneously on different drives ?
# dfsck FileSystem1 FileSystem2

43. How to list the superblock, i-name map, disk map information for a file system ?
# dumpfs Filesystem

44. Where is the magic file located ?
/etc/magic

45. How do you remove a file system data from /etc/filesystems ?
# imfs -x -l LVName

46. How do you list inode, last update/modify/access timestamp of a file ?
# istat FileName

47. How do you update the i-node table and write buffered files to the hard disk ?
# sync

48. How do you list the filesystems in a volume group ?
# lsvgfs VGName

49. How do you redefine the set of PVs of a VG in the ODM ?
# redefinevg -d PVName VGName

50. How do you replace a PV in a VG ?
# replacepv SourcePV DestinationPV

Flashcopy Commands


## INITIATING FLASH COPY ON DS8000 USING MKFLASH ##

mkflash -dev -record 0014:0030 0015:0031 000D:0032 000E:0033 000F:0034 0108:0035 0109:0036 010A:0037 0003:0038 0004:0039 0005:003A 0006:003B 0007:003C 0008:003D 0009:003E 000A:003F 0100:0040 0101:0041 0102:0042 0103:0043 001C:0044 0114:0045 0115:0046 0116:0047 002B:0048 002F:0049 010D:004A 010E:004B 0106:004F 000C:004E 000B:004D 010F:004C 001E:0050 001F:0051 0020:0052 0021:0053

## CHECK FLASH COPY STATUS ON DS8000 USING LSFLASH ##

lsflash -dev -l 0014:0030 0015:0031 000D:0032 000E:0033 000F:0034 0108:0035 0109:0036 010A:0037 0003:0038 0004:0039 0005:003A 0006:003B 0007:003C 0008:003D 0009:003E 000A:003F 0100:0040 0101:0041 0102:0042 0103:0043 001C:0044 0114:0045 0115:0046 0116:0047 002B:0048 002F:0049 010D:004A 010E:004B 0106:004F 000C:004E 000B:004D 010F:004C 001E:0050 001F:0051 0020:0052 0021:0053

## INITIATING INCREMENTAL FLASH COPY ON DS8000 USING RESYNCFLASH ##

resyncflash -dev -l 0014:0030 0015:0031 000D:0032 000E:0033 000F:0034 0108:0035 0109:0036 010A:0037 0003:0038 0004:0039 0005:003A 0006:003B 0007:003C 0008:003D 0009:003E 000A:003F 0100:0040 0101:0041 0102:0042 0103:0043 001C:0044 0114:0045 0115:0046 0116:0047 002B:0048 002F:0049 010D:004A 010E:004B 0106:004F 000C:004E 000B:004D 010F:004C 001E:0050 001F:0051 0020:0052 0021:0053

## REMOVING FLASH COPY MAPPINGS ON DS8000 USING RMFLASH ##

rmflash -dev -l 0014:0030 0015:0031 000D:0032 000E:0033 000F:0034 0108:0035 0109:0036 010A:0037 0003:0038 0004:0039 0005:003A 0006:003B 0007:003C 0008:003D 0009:003E 000A:003F 0100:0040 0101:0041 0102:0042 0103:0043 001C:0044 0114:0045 0115:0046 0116:0047 002B:0048 002F:0049 010D:004A 010E:004B 0106:004F 000C:004E 000B:004D 010F:004C 001E:0050 001F:0051 0020:0052 0021:0053




Saturday, May 14, 2011

NTP Configuration on VIO server

NTP Configuration on VIO server:


  • vi /home/padmin/config/ntp.conf

  • startnetsvc xntpd ( stopnetsvc xntpd )

  • check your ntp.log file

  • lsnetsvc xntpd

  • ntpdate –d

NTP Configuration on HMC

NTP Configuration on HMC:






Migrating AIX version from 5.3 to 6.1

Migrating AIX version from 5.3 to 6.1:



  • Take an mksysb backup for rootvg on bootable media

  • Make a copy: /etc/inetd.conf, /etc/inittab, /etc/motd, /usr/dt/config/Xservers

  • Check and remove restricted tunables in /etc/nextboot

  • Ensure root user is primary authentication method of system. Lsuser –a auth1 root; chuser auth1=system root

  • Users who have logged must be log off

  • Check error log: errpt

  • Verify the processor capacity(32/64bit): prtconf –c

  • Insert 6.1 dvd and mount it: mount –v cdrfs –o ro /dev/cd0 /mnt

  • Copy file /mnt/usr/lpp/bos/pre_migration to /tmp and run /tmp/pre_migration. The output will be stored in /home/pre_migration.yymmddhhmmss

  • Shutdown –F

  • Manually turn on system and boot from DVD

  • Select current console as the system console

  • Select English language

  • Select change/show installation settings and make sure the installation type is migration

  • Run /usr/lpp/bos/post_migration

Upgrade HBA firmware

Upgrade HBA firmware:



  • Determine the FRU number and microcode level of the adapter installed in the target system: lsdev –Cgrep "fcs"

  • Check the current micro code level on the adapter: lscfg –vl fcs0; lsmcode –d fcs0 Ex: CS3.91X4

  • Download RPM packages for aix system

  • Make a directory on an AIX system to receive the RPM format file

  • Unpack the file by rpm –ivh –ignoreos

  • Diag –d fcs1 –T

  • Backout procedure: diag –d fcs1 –T "download –f –l previous"

SDD Upgradation

SDD Upgradation:



  • If hacmp running gracefully stop

  • Uninstall sddserver.rte

  • Deactivate the paging space if it is activating on SDD device

  • Umount file systems

  • Varyoffvg vg_name

  • Stopsrc –s sddsrv

  • Rmdev –dl dpo –R

  • Deinstall the sdd. Using smitty deinstall

  • Smitty install à to install new sdd version

  • Configure all SDD vpath devices to available state using smitty device

  • Verify the sdd using lsvpcfg

  • Varyonvg vg

  • Mount fs

SDD Installation

SDD Installation:



  • Download code from web site

  • Move the downloaded files to the /usr/sys/inst.images

  • Change directory

  • Untar using tar –xvf devices.sdd.52.rte.tar

  • Update the .toc file

  • Using Smitty install_update install the SDD

HMC Command Line Interface

HMC Command Line Interface
HMC Command Line Interface (CLI) support is provided so that users can write scripts to automate their system management tasks. Therefore, it is the intent to provide a command line interface for every HMC function that users may want to automate. Command line interfaces for other HMC functions will also be provided as required.
The command line interface is not available from a remote HMC. From a local HMC, the interface is available by right-clicking on the desktop (outside of the HMC web user interface screen). Click on 'Terminals' and 'rshlogin'. A restricted shell command line window will appear.
AudienceAll parts of this course are directed toward IBM customers.
Prerequisites
A basic understanding of web site navigation is all you need. No prior knowledge of command line interface information is assumed. However, before doing any work with managed systems, be sure you have an understanding of the difference between logical partitions (LPARs), partition profiles, and system profiles.
Migration Considerations
While the HMC for Power6 systems does not support legacy systems, it is still desirable to support the existing syntax when possible. Because eServer p6 hardware and requirements are vastly different from legacy hardware and requirements, the syntax of many commands has been changed, and the old syntax has been deprecated. Deprecated syntax is not supported on eServer p6 and OpenPower systems.
When a command is issued using deprecated syntax, if there is a replacement command that performs an equivalent function then an error message is displayed that gives the new command syntax to use. If there is not a replacement command available, then a general invalid syntax error message is displayed.
Command Help
Help text is available for each HMC command. The help text for a command consists of the command usage statement, a brief description of the command's function, a brief description of each of the command's parameters, and a list of any attributes that can be specified with the command. (An index of all Command Attributes can be found here.) The help text refers you to the man pages and publications for examples and additional information.
The intent of a command's help text is to remind you what the parameters and attribute names are for the command. As such, it is not intended to give detailed information for the first-time user. First-time users should go to the man pages or publications for detailed information about commands.
To display help text, all HMC commands support the --help parameter. In addition, the help text is displayed for a command when a command is entered without any parameters.
When the --help parameter is included with a command, any other parameters entered with the command are ignored, and the help text for the command is displayed.

Command Conventions
The following UNIX conventions are used for command names:
· mk is used for create/make actions.
· ls is used for list/query actions.
· ch is used for change/modify actions.
· rm is used for remove/delete actions.
Commands are of the form: verb followed by an abbreviated name of the object on which the command will be performed. For example, lssyscfg is the command to list system configuration, lshmcusr is the command to list HMC users, etc.
Commands must always have a return value. A return code of 0 is returned if the command was successful, and a non-zero return code is returned if the command failed.
If a command fails, an appropriate error message is printed. All command error messages are printed to stderr. All other command output are printed to stdout.
In general, commands should not print warning messages, and should not require interactive input from users. Since many users will write scripts to issue HMC commands, warning messages and interactive input would not be useful.
Whenever parameter data consists of non-alphanumeric characters, the data must be enclosed in double quotes.
All parameters that are a single character must be preceded with a single dash. All parameters longer than a single character must be preceded with a double dash.
Non-numerical parameter and attribute values should be meaningful. Meaningful string values are preferred over arbitrary numerical values.
Attribute names should be consistent across all commands. The same is true for parameter names, parameter values, filter names, and attribute values. Words that are abbreviated should always be abbreviated in the same way. Common abbreviations should be used to reduce the number of characters the user needs to type.
The names of attributes and filters that accept lists should be plural.
All commands must have man pages.
All commands must support the --help parameter.
All list commands must support the -F parameter. This facilitates tokenizing the output. List commands should also print a well-formatted report if the -F parameter is not specified.
Note: throughout this course, command elements that are representative examples are enclosed in "arrow" brackets. Here is an example:
lssyscfg -r sys -m
In this example, means that in a real command, you would enter the actual name of the managed system.
A value for is required for most commands. This can either be the user-defined name for the managed system, or be in the form MODEL-TYPE*SERIAL.
A value for is always preceded by the -m flag.
Setting the Power Off Policy
The default power off policy for a managed system is that the system powers itself down when the last partition has been powered down. It is recommended that the managed system's power off policy be set to 1, so that the managed system continues to run after the last partition has been powered off.
To do this, type the following command:
chsyscfg -r sys -m -i "power_off_policy=1"
Powering Off the Manufacturing Installed Partition
The preconfigured manufacturing partition with an ID of 1 has been assigned all of the system's resources. You will need some free resources when you create partitions. Therefore, it is recommended that you power off the manufacturing installed partition before creating partitions.
To do this, type the following command:
chsysstate -r lpar -m -o off --id l
Commands by Task:
Activate CoD Advanced Functions - chvet
Activate On/Off CoD resources - chcod
Activate partition - chsysstate
Activate system profile - chsysstate
Add memory to a partition - chhwres
Add processors to a partition - chhwres
Change the number of Utility CoD processors - chcod
Create LPAR - mksyscfg
Create LPAR profile - mksyscfg
Create system profile - mksyscfg
Deactivate all On/Off CoD processors - chcod
Deactivate all On/Off CoD resources - chcod
Delete LPAR - rmsyscfg
Delete LPAR profile - rmsyscfg
Delete system profile - rmsyscfg
Display activation code generation information - lsvet
Display activation history log - lsvet
Enter a Capacity on Demand (CoD) code - chcod
Fast power off the managed system - chsysstate
Get LPAR state - lssyscfg
Hard partition reset - chsysstate
List all partitions in a managed system - lssyscfg
List all systems managed by the HMC - lssyscfg
List CoD capacity information - lscod
List CoD code generation information - lscod
List CoD history log - lscod
List HMC remote access settings - lshmc
List HMC network settings - lshmc
List HMC VPD information - lshmc
List HMC version - lshmc
List I/O resources for a managed system - lshwres
List Licensed Internal Code levels - lslic
List LPAR profile properties - lssyscfg
List LPAR properties - lssyscfg
List managed system properties - lssyscfg
List memory resources - lshwres
List On/Off CoD billing information - lscod
List processor resources - lshwres
List reference code entries - lsrefcode
List system profile properties - lssyscfg
List virtual I/O resources for a managed system - lshwres
Modify LPAR profile properties - chsyscfg
Modify LPAR properties - chsyscfg
Modify managed system properties - chsyscfg
Modify system profile properties - chsyscfg
Move a physical I/O slot from one partition to another - chhwres
Move memory from one partition to another - chhwres
Move processors from one partition to another - chhwres
Power off the managed system - chsysstate
Power on the managed system - chsysstate
Re-IPL the managed system - chsysstate
Remove a physical I/O slot from a partition - chhwres
Remove memory from a partition - chhwres
Remove processors from a partition - chhwres
Set a Utility CoD processor minute usage limit - chcod
Soft partition reset - chsysstate
Update Licensed Internal Code - updlic
Validate a system profile - chsysstate
Commands by Name:
asmmenu - launch the ASM interfacebkconsdata - back up critical HMC databkprofdata - back up profile data for the managed-systemchaccfg - change access control configuration
chcod - perform Capacity on Demand (CoD) operations
enter a CoD code
activate an amount of CoD resources
change the number of Utility CoD processors
deactivate all On/Off CoD processors
deactivate all On/Off CoD resources
set a Utility CoD processor minute usage limit
chhmc - change HMC configuration informationchhmcusr - change HMC user attributechhwres - change system memory and processor resources
add memory to a partition
add processors to a partition
move memory from one partition to another
move processors from one partition to another
remove memory from a partition
remove processors from a partition
chkmedia - check media readinesschled - change LEDchlparutil - change utilization data collection settingschsacfg - change Service Agent configurationchsvcevent - update serviceable events on the HMCchsyscfg - change system configuration
modify LPAR properties
modify LPAR profile properties
modify managed system properties
modify system profile properties

chsyspwd - change system passwordchsysstate - change system state
activate partition
activate system profile
fast power off the managed system
hard partition reset
power off the managed system
power on the managed system
re-IPL the managed system
soft partition reset
chvet - activate Capacity on Demand advanced funtions
enter an activation code
cpdump - copy dumpscpsysplan - copy system plandefsysplanres - define system plan resourcedeploysysplan - deploy system plandump - perform dump operationgetdump - get dumpgetupgfiles - get upgrade fileshmcshutdown - shut down the HMChmcwin - proide screen capture on the HMCinstallios - install the Virtual I/O Serverlogssh - log ssh command usagelpar_netboot - retrieve MAC address and physical location code from network adapters for a partition or instruct a partition to network bootlpcfgop - perform a partition configuration image operationlsaccfg - list access control configuration informationlscod - list Capacity on Demand resources for a managed system
list CoD capacity information
list CoD code generation information
list CoD history log
list On/Off CoD billing information
lsdump - lists dump informationlshmc - List HMC Configuration Information
list HMC remote access settings
list HMC network settings
list HMC VPD information
list HMC version
lshmcusr - list HMC user informationlshwinfo - list environmental informationlshwres - list the hardware resources of a managed system
determine DRC indexes for physical I/O slots
determine memory region size
list I/O resources for a managed system
list memory resources
list processor resources
list virtual I/O resources for a managed system

lsled - list LEDslslic - list Licensed Internal Code (LIC) levels
list LIC levels active on a managed system
list LIC levels available in a repository

lslock - list lock informationlslparutil - list utilization datalsmediadev - list storage media deviceslsrefcode - list reference code entries for partitions or managed systems
list reference code entries for all partitions
list reference code entries for a managed system

lssacfg - list Service Agent configuration informationlssvcevents - list console or serviceable eventslssyscfg - list system configuration information

get LPAR state
list all partitions in a managed system
list all systems managed by the HMC
list LPAR profile properties
list LPAR properties
list managed system properties
list system profile properties

lssysconn - list system connectionslssysplan - list system planslssysplanres - list system plan resources
lvet - list Capacity on Demand advanced functions
display activation code generation information
display activation history log
migrcfg - migrate configurationmkaccfg - create access control objectmahmcusr - create an HMC usermksyscfg - create system configuration
create LPAR profile
create system profile

mksysconn - create system connectionmksysplan - make system plan filemkvterm - open a virtual terminal sessionmonhmc - monitor HMC subsystems and system resourcespedbg - Product Engineering debug toolspesh - provide PE Shell accessrmaccfg - remove access control objectrmhmcusr - remove an HMC userrmlock - remove lockrmlparutil - remove utilization datarmprofdata - remove profile datarmsyscfg - remove system configuration
delete LPAR
delete LPAR profile
delete system profile

rmsysconn - remove system connectionrmsysplan - remove system planrmsysplanres - remove system plan resourcermvterm - close a vertual terminal sessionrsthwres - restore hardware resourcesrstprofdata - restore profile datarstupgdata - restore upgrade datasaveupgdata - save upgrade datasendfile - transfer file from the HMC to a remote systemstartdump - start dumpupdhmc - update code on the HMCupdlic- update Licensed Internal Code (LIC)
retrieve, install, activate updates
retrieve and install updates
remove the last update
change LIC update control to HMC
change LIC update control to operating system
viosvrcmd - issue virtual I/O server command

Powering On the Managed System
Use the chsysstate command to power on the managed system. This power on option is similar to a "White Button" power on. Enter the following:chsysstate -r sys -m -o on
Powering Off the Managed System
Use the chsysstate command to power off the managed system. This can be done in two ways.
To power off a managed system normally, type the following:
chsysstate -r sys -m -o off
You can also perform a fast power off (operator panel function 8) of a managed system. To do this, type the following command:
chsysstate -r sys -m -o off --immed
Updating Licensed Internal Code
Use the updlic command to retrieve, install, and activate Licensed Internal Code on a managed system. Use the -q parameter to determine if the update is disruptive.
To determine if the latest CPC update from IBM Retain is disruptive:
updlic -m -o a -t cpc -l latest -r ibmretain -q
To change LIC update control on the managed system from HMC to operating system:
updlic -m -o o
Listing HMC Current Configuration
Use the lshmc command to list the current remote access settings, network settings, version, and Vital Product Data (VPD) information for the HMC.
To list the remote access settings for ssh, websm, and http:
lshmc -r
To list the HMC hostname and network IP address:
lshmc -n -F hostname,ipaddr
To list the HMC Vital Product Data (VPD) information:
lshmc -v
Display the HMC version information:
lshmc -V
Listing all Systems Managed by the HMC
Use the lssyscfg command to list system configuration and managed system MTMS information. To list the properties of all systems managed by this HMC, enter the following:
lssyscfg -r sys
To list only the user-defined names, model types, serial numbers, and states for all of the systems managed by this HMC, enter:
lssyscfg -r sys -F name,type_model,serial_num,state --header
Note that after executing this command, concatenated with * then with represents the MODEL-TYPE*SERIAL, or MTMS, for the managed system.
Listing a Managed System's Properties
To list a specific managed system's properties, enter:
lssyscfg -r sys -m
Modifying the Managed System Properties
Use the chsyscfg command to change the properties of a managed system. The following example shows how to change the managed system's user-defined name and power off policy:
chsyscfg -r sys -m –i "new_name=newsys1,power_off_policy=0"
Valid attributes, specified with the –i flag, include:
new_name
power_on_side
power_off_policy
power_on_speed
service_lpar_id
power_on_speed_override
service_lpar_name

Instead of entering configuration information on the command line with the -i flag, the information can be placed in a file and the filename specified with the -f flag.
For more information about the valid attributes listed in this command example, refer to the Command Attributes table.
Listing Reference Codes for a Managed System or Partition
Use the lsrefcode command to list SRC entries for a managed system or partition. Entries may be filtered by lpar name or lpar id.
To list the last 10 SRC entries for the managed system:
lsrefcode -m -r sys -n 10
To list the current SRC entry for each partition on the managed system:
lsrefcode -m -r lparDisplay the last 50 SRC entries for partition p1:
lsrefcode -m -r lpar -n 50 --filter "lpar_names=p1"
Restarting the Managed System
To restart the managed system, enter:
chsysstate -r sys -m -o off --immed --restart
Listing Licensed Internal Code Levels for a Managed System
Use the lslic command to list the LIC levels (cpc or power) on a partition or managed system that have been installed, activated, and accepted. You may also list available levels in a repository.
To list current CPC LIC levels on a managed system:
lslic -m -t cpc
To list available POWER LIC levels in a repository:
lslic -m -t power -r
Listing Capacity on Demand Information for a Managed System
Use the lscod command to list memory and processor Capacity on Demand information for a managed system, including capacity, code generation, and CoD history logs for Capacity Upgrade on Demand (CUoD) and On/Off Capacity on Demand (OOCoD). More CoD operations are covered in 10.0 CLI: Performing Capacity on Demand (CoD) Operations.
To list On/Off CoD processor capacity information:
lscod -m -t cap -r proc -c onoff
To list CUoD memory activation code generation information:
lscod -m -t code -r mem -c cuod
To list the Capacity on Demand history log:
lscod -m -t hist
To Display On/Off Capacity on Demand memory billing information:
lscod -m -t bill -r mem -c onoff
Creating LPARs
Use the mksyscfg command to create a partition.
The following is an example of how to create an AIX/Linux partition:
mksyscfg -r lpar -m –i "lpar_id=2,name=aixlinux_lpar2,profile_name=prof1, lpar_type=aixlinux,boot_mode=norm, desired_procs=1,min_procs=1, max_procs=1,min_proc_units=0.1, desired_proc_units=0.5,max_proc_units=0.5, proc_type=shared,sharing_mode=cap,desired_mem=400, min_mem=400, max_mem=400,auto_start=1, power_ctrl_lpar_ids=0,io_slots=553713666/65535/1"
The following is an example of how to create an i5/OS (OS/400) partition:
mksyscfg -r lpar -m –i "lpar_id=3,name=os400_lpar3,profile_name=prof1, lpar_type=os400, desired_procs=1,min_procs=1,max_procs=1, min_proc_units=0.1,desired_proc_units=0.5, max_proc_units=0.5,proc_type=shared, sharing_mode=cap,desired_mem=400, min_mem=400, max_mem=400,auto_start=1,power_ctrl_lpar_ids=0, io_slots=553713699/65535/1, load_source_slot=553713699, console_slot=553713699,min_interactive=0, desired_interactive=0, max_interactive=0"
Valid attributes, specified with the –i flag, include:
name
desired_proc_units
min_proc_units
lpar_id
max_proc_units
ecs_slot
profile_name
lpar_io_pool_ids
sni_windows
lpar_type
io_slots
alt_console_slot
cluster_id
boot_mode
sni_device_ids
sharing_mode
max_virtual_slots
console_slot
desired_procs
auto_start
sni_config_mode
min_procs
power_ctrl_lpar_ids
alt_load_source_slot
max_procs
virtual_opti_pool_id
virtual_serial_adapters
desired_mem
hsl_opti_pool_id
load_source_slot
min_mem
min_interactive
virtual_scsi_adapters
max_mem
desired_interactive
uncap_weight
proc_type
max_interactive
virtual_eth_adapters
lnstead of entering configuration information on the command line with the -i flag, the information can instead be placed in a file, and the filename specified with the -f flag.
For more information about the valid attributes listed in this command example, refer to the Command Attributes table.
Listing All Partitions in a Managed System
Use the lssyscfg command to list all partitions in a managed system. To do this, enter:
lssyscfg -r lpar -m
To list only the names, IDs, and states of all partitions in a managed system, enter:
lssyscfg -r lpar -m -F name,lpar_id,state --header
Listing LPAR Properties
Use the lssyscfg command to list the properties of a specific partition. Type the following:
lssyscfg -r lpar -m --filter "lpar_ids="
Note that the partition name can be specified instead of the partition ID by using the lpar_names filter in place of the lpar_ids filter. Also, more than one partition may be specified in the filter list.
For information on using the lshwres command to list a partition's I/O, virtual I/O, processor, and memory resources, see Listing Hardware Resources.
Getting the LPAR State
Use the lssyscfg command to display the state of a partition. Type the following:
lssyscfg -r lpar -m --filter "lpar_names=" -F state
Note that the partition ID can be specified instead of the partition name by using the lpar_ids filter in placeof the lpar_names filter. Also, more than one partition may be specified in the filter list.
Listing All Partitions in a Managed System
Use the lssyscfg command to list all partitions in a managed system. To do this, enter:
lssyscfg -r lpar -m
To list only the names, IDs, and states of all partitions in a managed system, enter:
lssyscfg -r lpar -m -F name,lpar_id,state --header
Listing LPAR Properties
Use the lssyscfg command to list the properties of a specific partition. Type the following:
lssyscfg -r lpar -m --filter "lpar_ids="
Note that the partition name can be specified instead of the partition ID by using the lpar_names filter in place of the lpar_ids filter. Also, more than one partition may be specified in the filter list.
For information on using the lshwres command to list a partition's I/O, virtual I/O, processor, and memory resources, see Listing Hardware Resources.
Getting the LPAR State
Use the lssyscfg command to display the state of a partition. Type the following:
lssyscfg -r lpar -m --filter "lpar_names=" -F state
Note that the partition ID can be specified instead of the partition name by using the lpar_ids filter in placeof the lpar_names filter. Also, more than one partition may be specified in the filter list.
Using a Soft Partition Reset
Use the chsysstate command to perform a soft reset of a partition. Type the following:
chsysstate -r lpar -m -o reset -n
The partition ID can be specified instead of the partition name by using the --id parameter instead of the -n parameter.
Using a Hard Partition Reset
Use the chsysstate command to perform a hard reset of a partition. Type the following:
chsysstate -r lpar -m -o off --id
The partition name can be specified instead of the partition ID by using the -n parameter instead of the --id parameter.
Deleting an LPAR
Use the rmsyscfg command to remove a partition. Type the following:rmsyscfg -r lpar -m -n
This command removes the specified partition and all of its associated partition profiles from the specified managed system. The partition’s profiles are also removed from any system profiles that contain them.
The partition ID can be specified instead of the partition name by using the --id parameter instead of the -n parameter

Use the chhwres command to to perform dynamic logical partitioning (DLPAR) operations on running partitions. DLPAR operations can be performed for memory, physical I/O slots, and processor resources.
Memory
Memory can be dynamically added to a partition, removed from a partition, or moved from one partition to another. In the following commands, the quantity of memory to be added, removed, or moved must be specified with the -q flag. This quantity is in megabytes, and must be a multiple of the memory region size for the managed system.
Determining Memory Region Size
To see what the memory region size is for the managed system, enter this command:
lshwres -r mem -m –-level sys -F mem_region_size
The value returned is the memory region size in megabytes.
Adding Memory to a Partition
To add memory to a partition, enter this command:
chhwres -r mem -m -o a -p -q
Removing Memory from a Partition
To remove memory from a partition, enter this command:
chhwres -r mem -m -o r -p -q
Moving Memory from One Partition to Another
To move memory from one partition to another partition, enter this command:
chhwres -r mem -m -o m -p -t -q
Physical I/O Slots
A physical I/O slot can be dynamically added to a partition, removed from a partition, or moved from one partition to another. In the following commands, the DRC index of the I/O slot to be added, removed, or moved must be specified with the -s flag.
Note that only one physical I/O slot can be added, removed, or moved at a time.
Determining DRC Indexes for Physical I/O Slots
To see the DRC indexes for all of the physical I/O slots that are on the managed system, enter this command:
lshwres -r io --rsubtype slot -m
The DRC index for each slot is returned via the drc_index attribute.
Adding a Physical I/O Slot to a Partition
To add a physical I/O slot to a partition, enter this command:
chhwres -r io -m -o a -p -s
Removing a Physical I/O Slot from a Partition
To remove a physical I/O slot from a partition, enter this command:
chhwres -r io -m -o r -p -s
Moving a Physical I/O Slot from One Partition to Another
To move a physical I/O slot from one partition to another partition, enter this command:
chhwres -r io -m -o m -p -t -s

Processors
Processing resources can be dynamically added to a partition, removed from a partition, or moved from one partition to another. These processing resources depend on the type of processors used by the partitions:
· For partitions using dedicated processors, processing resources are dedicated processors.
· For partitions using shared processors, processing resources include virtual processors and processing units.
Note: Currently, AIX/Linux partitions using shared processors do not support processor DLPAR operations.
In the following commands, for partitions using dedicated processors, the quantity of processors to be added, removed, or moved are specified with the --procs flag.
For partitions using shared processors, the quantity of virtual processors to be added, removed, or moved are also specified with the --procs flag. The quantity of processing units to be added, removed, or moved are specified with the --procunits flag. Both of these flags can be specified, but only one is required.
Note that the quantity of processing units must be multiplied by 100 for the command. For example, to add, remove, or move .5 processing units, specify a quantity of 50.
Adding Processors to a Partition
To add processors to a partition using dedicated processors, enter this command:
chhwres -r proc -m -o a -p --procs
To add processors to a partition using shared processors, enter this command:
chhwres -r proc -m -o a -p --procs --procunits

Removing Processors from a Partition
To remove processors from a partition using dedicated processors, enter this command:
chhwres -r proc -m -o r -p --procs
To remove processors from a partition using shared processors, enter this command:
chhwres -r proc -m -o r -p --procs --procunits
Moving Processors from One Partition to Another
To move processors from a partition using dedicated processors to another, enter this command:
chhwres -r proc -m -o m -p -t --procs
To move processors from a partition using shared processors to another, enter this command:
chhwres -r proc -m -o m -p -t --procs --procunits
Processing resources can also be moved between partitions using dedicated processors and partitions using shared processors. To move processing resources from a partition using dedicated processors to a partition using shared processors, specify the quantity of processors using the --procs flag. This quantity is converted to processing units (by multiplying the quantity by 100) by the HMC for the target partition.
To move processing resources from a partition using shared processors to a partition using dedicated processors, specify the quantity of processing units (which must be a multiple of 100) using the --procunits flag. This quantity is converted to processors (by dividing the quantity by 100) by the HMC for the target partition. The --procs flag cannot be specified in this case.

Creating an LPAR Profile
Use the mksyscfg command to create a partition profile. The following is an example of how to create a partition profile:
mksyscfg -r prof -m -i "name=prof3,lpar_id=2,boot_mode=norm, sfp_surveillance=1,desired_procs=2, min_procs=1,max_procs=2,min_proc_units=0.1, desired_proc_units=0.5,max_proc_units=0.5, proc_type=shared,sharing_mode=cap, desired_mem=400,min_mem=400,max_mem=400, auto_ipl=1,power_ctrl_lpar_ids=0, io_slots=553713666/65535/1"
Valid attributes, specified with the -i flag, include:
name
lpar_id lpar_name
power_ctrl_lpar_ids
desired_procs
min_procs
max_procs
desired_mem
min_mem
max_mem
proc_type
uncap_weight
sharing_mode
load_source_slot
alt_load_source_slot
console_slot
alt_console_slot
ecs_slot
min_proc_units
desired_proc_units
max_proc_units
lpar_io_pool_ids
io_slots
boot_mode
sfp_surveillance
sni_windows
virtual_opti_pool_id
hsl_opti_pool_id
min_interactive
desired_interactive
max_interactive
max_virtual_slots
virtual_eth_adapters
virtual_scsi_adapters
virtual_serial_adapters
sni_config_mode
sni_device_ids
auto_ipl


The profile name (name) and the partition (lpar_id or lpar_name) must be specified. Instead of entering configuration information on the command line with the -i flag, the information can instead be placed in a file, and the filename specified with the -f flag.
For more information about the valid attributes listed in this command example, refer to the Command Attributes table.
Listing LPAR Profile Properties
Use the lssyscfg command to list a partition profile. Type the following:
lssyscfg -r prof -m -–filter"lpar_names=, profile_names="
Use the --filter parameter to specify the partition for which partition profiles are to be listed, and to specify which profile names to list. While the filter can only specify a single partition, it can specify multiple profile names for that partition.
Note that the partition ID can be specified instead of the partition name by using the lpar_ids filter in place of the lpar_names filter.

Modifying LPAR Profile Properties
Use the chsyscfg command to modify a partition profile’s properties. The following example shows how to change prof1's memory amounts:
chsyscfg -r prof -m -i "name=prof1,lpar_name=lpar3,min_mem=256, max_mem=512,desired_mem=512"
Valid attributes, specified with the -i flag, include:
name
lpar_name lpar_id
new_name
desired_procs
min_procs
max_procs
desired_mem
min_mem
max_mem
proc_type
uncap_weight
sharing_mode
load_source_slot
alt_load_source_slot
console_slot
alt_console_slot
ecs_slot
min_proc_units
desired_proc_units
max_proc_units
lpar_io_pool_ids
io_slots
boot_mode
sfp_surveillance
sni_windows
virtual_opti_pool_id
hsl_opti_pool_id
min_interactive
desired_interactive
max_interactive
max_virtual_slots
virtual_eth_adapters
virtual_scsi_adapters
virtual_serial_adapters
sni_config_mode
sni_device_ids
auto_ipl
power_ctrl_lpar_ids

Instead of entering configuration information on the command line with the -i flag, the information can instead be placed in a file, and the filename specified with the -f flag.
For more information about the valid attributes listed in this command example, refer to the Command Attributes table.
Deleting an LPAR Profile
Use the rmsyscfg command to remove a partition profile. Type the following:
rmsyscfg -r prof -m -n -p
The partition ID can be specified instead of the partition name by using the --id parameter in place of the -p parameter.

Creating a System Profile
Use the mksyscfg command to create a system profile. In the following example, the user is making a system profile named sysprof1, with partition profile prof1 for partition lpar1 and partition profile prof1 for partition lpar2.
mksyscfg -r sysprof -m –i "name=sysprof1,\"lpar_names=lpar1,lpar2\", \"profile_names=prof1,prof1\""
Partition IDs can be specified instead of partition names when creating a system profile. This is done by using the lpar_ids attribute instead of the lpar_names attribute.
Instead of entering configuration information on the command line with the-i flag, the information can instead be placed in a file, and the filename specified with the -f flag.
Activating a System Profile
Use the chsysstate command to activate a system profile. Type the following:
chsysstate -r sysprof -m -o on -n
Validating a System Profile
Use the chsysstate command to validate a system profile. Type the following:
chsysstate -r sysprof -m -n - -test
To validate a system profile, then activate that system profile if the validation is successful, type the following:
chsysstate -r sysprof -m -o on -n - -test

Deleting a System Profile
Use the rmsyscfg command to remove a system profile. Type the following:
rmsyscfg -r sysprof -m -n
Listing System Profile Properties
Use the lssyscfg command to list a system profile’s properties. Type the following:
lssyscfg -r sysprof -m --filter "profile_names="
To list all system profiles for the managed system, type the following:lssyscfg -r sysprof -m
Modifying System Profile Properties
Use the chsyscfg command to modify system profile properties. In the following example, the user is adding profiles prof1 for partition lpar3 and prof2 for partition lpar4 to system profile sysprof1:
chsyscfg -r sysprof -m -i "name=sysprof1,\"lpar_names+=lpar3,lpar4\",\"profile_names+=prof1,prof2\""
Valid attributes, specified with the –i flag, include:
new_name
profile_names
lpar_names lpar_ids
name
Instead of entering configuration information on the command line with the-i flag, the information can instead be placed in a file, and the filename specified with the -f flag.
For more information about the valid attributes listed in this command example, refer to the Command Attributes table.
The lshwres command, which lists the hardware resources of a managed system, can be used to display I/O, virtual I/O, processor, and memory resources.
Listing I/O Resources for a Managed System
Use the following commands to list:
· I/O units on the managed systemlshwres -m -r io --rsubtype unit
· I/O buses on the managed systemlshwres -m -r io --rsubtype bus
· I/O slots on the managed systemlshwres -m -r io --rsubtype slot
· All partitions participating in an I/O pool and all slots assigned to an I/O poollshwres -m -r io --rsubtype iopool
· Tagged I/O for i5/OS (OS/400) partitionslshwres -m -r io --rsubtype taggedio
Listing Processor Resources
Use the following commands to list processor information for:
· The managed systemlshwres -m -r proc --level sys
· Partitionslshwres -m -r proc --level lpar
· The shared poollshwres -m -r proc --level pool

Listing Virtual I/O Resources for a Managed System
Use the following commands to list:
· Virtual Ethernet adapterslshwres -m -r virtualio --rsubtype eth --level lpar
· System level virtual Ethernet informationlshwres -m -r virtualio --rsubtype eth --level sys
· Virtual OptiConnect pool informationlshwres -m -r virtualio --rsubtype virtualopti --level lpar
· HSL OptiConnect pool informationlshwres -m -r virtualio --rsubtype hslopti --level lpar
· Virtual serial adapterslshwres -m -r virtualio --rsubtype serial --level lpar
· Virtual serial servers with open connectionslshwres -m -r virtualio --rsubtype serial --level openserial
· Virtual SCSI adapterslshwres -m -r virtualio --rsubtype scsi --level lpar
· Partition-level virtual slot informationlshwres -m -r virtualio --rsubtype slot --level lpar
· Virtual slot informationlshwres -m -r virtualio --rsubtype slot --level slot
Listing Memory Resources
Use the following commands to list:
· Memory information for a managed systemlshwres -m -r mem --level sys
· Memory information for partitionslshwres -m -r mem --level lpar

Entering a Capacity on Demand Code
To enter an CoD code:
chcod -o e -m -k
Activating an Amount of On/Off CoD Resources
To activate an amount of On/Off CoD memory for a certain number of days:
chcod -m -o a -c onoff -r mem -q -d
Changing the Number of Utility CoD Processors
To decrease the number of Activated Utility CoD processors:
chcod -m -o a -c utility -r proc -q
Deactivating all On/Off CoD Processors
To deactivate all On/Off CoD processors:
chcod -m -o d -c onoff -r proc
Deactivating all On/Off CoD Resources
To deactivate all On/Off CoD resources:
chcod -m -o d -c onoff -r mem
Setting a Utility CoD Processor Minute Usage Limit
To set a Utility CoD processor minute usage limit::
chcod -m -o s -c utility -r proc -l
Activating Capacity on Demand (CoD) Advanced Functions
CoD advanced functions include Advanced POWER Virtualization and Endterprise Enablement. CoD advanced functions are sometimes referred to as Virtualization Engine systems technologies. To enter an activation code:
chvet -m -o e -k
Displaying Activation Code Generation Information
To display activation code generation information:
lsvet -m -t code
Displaying the Activation History Log
To display activation history log:
lsvet -m -t his

NIM Commands

NIM Commands
nimconfig -a pif_name=en0 -a netname=net1
To initialise the NIM master with network name net1
nimconfig -r To rebuild /etc/niminfo file which contains the variables for NIM
nim -o define -t lpp_source -a source=/dev/cd0 -a server=master -a
location=/export/lpp_source/lpp_source1 lpp_source1
To define lpp_source1 image in /export/lpp_source/lpp_source directory from source cd0
nim -o define -t mksysb -a server=master -a location=/resources/mksysb.image mksysb1
To define mksysb resource mksysb1, from source /resources/mksysb.image on master
nim -o remove inst_resource
To remove the resource inst_resource
nim -o check lpp_source1
To check the status of lpp_source lpp_source1
nim -o allocate -a spot=spot1 -a lpp_source=lpp_source1 node1
To allocate the resources spot1 and lpp_source1 to the the client node1
nim -o bos_inst node1
To initialise NIM for the BOS installation on node1 with the allocated resources
nim -o dkls_init dcmds
To initialize the machine dcmds as diskless operation
nim -o dtls_init dcmds
To initialize the machine dcmds for dataless operation
nim -o cust dcmds
To initialize the machine dcmds for customize operation
nim -o diag dcmds
To initialize the machine dcmds for diag operation
nim -o maint dcmds
To initialize the machine dcmds for maintenance operation
nim -o define -t standalone -a platform=rspc -a if1="net1 dcmds xxxxx" -a cable_type1=bnc dcmds
To define the machine dcmds as standalone with platform as rspc and network as net1 with cable
type bnc and mac address xxxxx
nim -o unconfig master
To unconfigure nim master master
nim -o allocate -a spot=spot1 dcmds
To allocate the resource spot1 from machine dcmds
nim -o deallocate -a spot=spot1 dcmds
To de allocate the resource spot1 from machine dcmds
nim -o remove dcmds
To remove machine dcmds after removing all resources associated to it
nim -o reboot dcmds
To reboot ther client dcmds
nim -o define -t lpp_source -a location=/software/lpp1 -a server=master -a source=/dev/cd0 lpp1

Saturday, May 7, 2011

Script for NIM MKSYSB

Script for Taking MKSYSB from NIM

#!/bin/ksh
set -x MKSYSB_DIR=/backup_fs/mksysb_backups
MAX_BACKUPS=100
remove_old=1
machine_list=
no_make=
if [ -z "$machine_list" ];
then machine_list=`lsnim -c machines awk ' !/master/ { print $1 }'`
fi
# Backup machine(s)
for m in $machine_list
do
MKSYSB_LOG=/backup_fs/mksysb_logs/"$m"_log_`date +%Y%m%d%H%M`
touch $MKSYSB_LOG
echo "### Creating NIM mksysb Resource for $m ###" >> $MKSYSB_LOG
date
cd $MKSYSB_DIR 2>/dev/null
n_backups=$(ls $m* wc -l )
if [ ! -z "$remove_old" ]; then
oldest=$(ls -lt $m* tail -1 awk '{print $9}')
if [ ! -z $oldest ]; then
echo Removing oldest file and nim resource: $oldest >> $MKSYSB_LOG
nim -o remove $oldest
/usr/bin/rm $oldest else echo "Can not remove oldest file. No files to remove. $oldest" >> $MKSYS B_LOG
fi
fi
if [ -z "$no_make" ]; then
filename="$m"_`date +%Y%m%d%H%M`
time nim -o define -t mksysb -aserver=master -amk_image=yes -alocation=$MK SYSB_DIR/$filename -asource=$m $filename >> $MKSYSB_LOG
else
echo "Script invoked with no_make option. Backup of $m was not made." >> $ MKSYSB_LOG
fi
echo "-----" >> $MKSYSB_LOG
done

Script for AIX system configuration

Script for generating complete AIX system configuration
SName=` hostname -s `DT=$(date +%d%b%y"_"%H%M)FL=/tmp/$SName"_config_"$DT".txt"; touch ${FL} export LANG=Cecho "\n aix_srv_config: Generating SW/HW configuration"
echo "\n\n\n C O N F I G U R A T I O N S U M M A R Y O U T P U T\n\n\n" > ${FL}echo "# date" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} date >> ${FL}echo " " >> ${FL}
echo "# hostname -s" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} hostname -s >> ${FL}echo " " >> ${FL}
echo "# df -k on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} df -k >> ${FL}echo " " >> ${FL}
echo "# ifconfig -a on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} ifconfig -a >> ${FL}echo "file://n//n" >> ${FL} echo "# cat /etc/inittab on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat /etc/inittab >> ${FL}echo "file://n//n" >> ${FL}
echo "# cat /etc/syslog.conf on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat /etc/syslog.conf >> ${FL}echo "file://n//n" >> ${FL}
echo "# cat /etc/ntp.conf on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat /etc/ntp.conf >> ${FL}echo "file://n//n" >> ${FL}
echo "# cat /etc/passwd on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat /etc/passwd >> ${FL}echo "file://n//n" >> ${FL}
echo "# netstat -r on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} netstat -r >> ${FL}echo "file://n//n" >> ${FL}
echo "# netstat -rn on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} netstat -rn >> ${FL}echo "file://n//n" >> ${FL}
echo "# netstat -in on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} netstat -in >> ${FL}echo "file://n//n" >> ${FL}
echo "# netstat -rm on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} netstat -rm >> ${FL}echo "file://n//n" >> ${FL}
echo "# lsattr -El mem0 on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsattr -El mem0 >> ${FL}echo "file://n//n" >> ${FL}
echo "# lsattr -El sys0 on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsattr -El sys0 >> ${FL}echo "file://n//n" >> ${FL}
echo "# lsdev -Cc tape on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsdev -Cc tape >> ${FL}echo "file://n//n" >> ${FL}
cd /echo "# ls -l under / on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} ls -l >> ${FL}echo "file://n//n" >> ${FL}
echo "# ls -l grep ^d under / on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} ls -l grep ^d >> ${FL}echo "file://n//n" >> ${FL}
echo "# ls -l under /dev on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cd /dev ls -l >> ${FL} cd /echo "file://n//n" >> ${FL}
echo "# showmount -e on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} showmount -e >> ${FL}echo "file://n//n" >> ${FL}
echo "# cat /etc/exports on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat /etc/exports >> ${FL}echo "file://n//n" >> ${FL}
echo "# cat /etc/hosts on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat /etc/hosts >> ${FL}echo "file://n//n" >> ${FL}


echo "# lsuser -a id home ALL on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsuser -a id home ALL >> ${FL}echo "file://n//n" >> ${FL}
echo "# cat /etc/group on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat /etc/group >> ${FL}echo "file://n//n" >> ${FL}
echo "# lsgroup -a id ALL on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsgroup -a id ALL >> ${FL}echo "file://n//n" >> ${FL}
#cd /etc#echo "# cat /etc/.rhosts on $SName" >> ${FL} #echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} #cat /.rhosts >> ${FL} #echo "file://n//n" >> ${FL}#cd /
echo "# oslevel on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} echo "oslevel " `oslevel` >> ${FL} echo "oslevel -r " `oslevel -r` >> ${FL} echo "file://n//n" >> ${FL}
echo "# instafix -i grep ML on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} instfix -i grep ML >> ${FL} echo "file://n//n" >> ${FL}
echo "# lspv on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lspv >> ${FL} echo "file://n//n" >> ${FL} for i in $(lspv awk '{print $1}' ) do echo "# lspv $i on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lspv $i >> ${FL} echo "file://n//n" >> ${FL} echo "# lspv -l $i on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lspv -l $i >> ${FL} echo "file://n//n" >> ${FL} echo "# lspv -p $i on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lspv -p $i >> ${FL} echo "file://n//n" >> ${FL} done
echo "# lsvg on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsvg >> ${FL} echo "file://n//n" >> ${FL}
echo "# lsvg -o on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsvg -o >> ${FL} echo "file://n//n" >> ${FL} for j in $(lsvg) do echo "# lsvg $j on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsvg $j >> ${FL} echo "file://n//n" >> ${FL} echo "# lsvg -l $j on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} lsvg -l $j >> ${FL} echo "file://n//n" >> ${FL}done
echo "# lsvpcfg on $SName" >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}lsvpcfg >> ${FL}echo "file://n//n" >> ${FL}
echo "# User license on $SName" >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}lslicense >> ${FL}echo "file://n//n" >> ${FL}
echo "# vmo on $SName" >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}vmo -a >> ${FL}echo >> ${FL}vmo -L >> ${FL}echo "file://n//n" >> ${FL}
echo "# ioo on $SName" >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}ioo -a >> ${FL}echo >> ${FL}ioo -L >> ${FL}echo "file://n//n" >> ${FL}
echo "# ulimits on $SName" >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}ulimit -a >> ${FL}echo "file://n//n" >> ${FL} cd /var/spool/cron/crontabsfor i in $(ls)do echo "# crontab -l of $i on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat $i >> ${FL} echo "file://n//n" >> ${FL}done
cd /var/spool/cron/atjobsfor i in $(ls)do echo "# atjobs -l of $i on $SName" >> ${FL} echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL} cat $i >> ${FL} echo "file://n//n" >> ${FL}donecd
#echo "# errpt > /tmp/$SName"_errpt_"$DT".txt" " >> ${FL}#echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}#errpt > /tmp/$SName"_errpt_"$DT".txt"#chmod o+r /tmp/$SName"_errpt_"$DT".txt"#echo "file://n//n" >> ${FL}
#echo "# errpt -a > /tmp/$SName"_errpta_"$DT".txt" " >> ${FL}#echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}#errpt -a > /tmp/$SName"_errpta_"$DT".txt"#chmod o+r /tmp/$SName"_errpta_"$DT".txt"#echo "file://n//n" >> ${FL}
#echo "# lslpp -l grep cluster* on $SName " >> ${FL}#echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}#lslpp -l grep clust* >> ${FL}#echo "file://n//n" >> ${FL}
#echo "# lssrc -g cluster on $SName " >> ${FL}#echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}#lssrc -g clust* >> ${FL}#echo "file://n//n" >> ${FL}
#echo "# HACMP Cluster Config info $SName " >> ${FL}#echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}#/usr/es/sbin/cluster/utilities/cltopinfo >> ${FL}#RGP=$(/usr/es/sbin/cluster/utilities/cltopinfogrep "Resource Group"cut -f3 -d" ")#echo >> ${FL}#/usr/es/sbin/cluster/utilities/clshowres -g $RGP >> ${FL}#echo "file://n//n" >> ${FL}
echo "# lslpp -l " >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}lslpp -l >> ${FL}echo "file://n//n" >> ${FL}
echo "# lscfg -vp " >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}lscfg -vp >> ${FL} echo "file://n//n" >> ${FL}
echo "# prtconf " >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}prtconf >> ${FL} echo "file://n//n" >> ${FL}
echo "# lppchk -v" >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}lppchk -v >> ${FL}echo "file://n//n" >> ${FL}
echo "# lppchk -c" >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}lppchk -c >> ${FL}echo "file://n//n" >> ${FL}
echo "# list of created file with the script" >> ${FL}echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${FL}ls -ltr /tmp/*$DT* >> ${FL}echo "file://n//n" >> ${FL}cd if [ $# -ne 0 ]then echo "aix_srv_config: usage: aix_srv_config" echo " NO PARAMETERS ARE REQUIRED" exit -1fi
echo "\n\nHostname: " `/bin/hostname -s` >> ${FL}echo "Time config run: " `/bin/date` >> ${FL}echo "AIX VRLM (oslevel): " `oslevel` >> ${FL}
echo "\n\nPROCESSOR TYPE (uname -m)" >> ${FL}echo "--------------------------\n" >> ${FL}uname -m >> ${FL}echo " ## = model" >> ${FL}
echo "\n\nMEMORY (bootinfo -r): " `bootinfo -r` >> ${FL}echo "MEMORY (lscfg -l memN)" >> ${FL}echo "-----------------------\n" >> ${FL}lscfg -l mem* >> ${FL}
# get current paging space infoecho "\n\nPAGING SPACES (lsps -a)" >> ${FL}echo "------------------------\n" >> ${FL}lsps -a >> ${FL}
echo "\n\nPAGING SPACES (lsps -s)" >> ${FL}echo "------------------------\n" >> ${FL}lsps -s >> ${FL}
echo "\n\nHARDWARE DETAILS" >> ${FL}echo "----------------\n" >> ${FL}lsdev -C /bin/grep Available /bin/awk 'BEGIN { FS = "-" }/-/ { LINE=substr($0,24,70) ; printf LINE "\n" }' /bin/sort /bin/awk 'BEGIN {}/^-00-0K-/ { DATA=substr($0,11,70) ; printf " " DATA "\n"}/^-00-S1 / { DATA=substr($0,11,70) ; printf " " DATA "\n"}/^-00-S1-/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-00-S2 / { DATA=substr($0,11,70) ; printf " " DATA "\n"}/^-00-S2-/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-00-0P / { DATA=substr($0,11,70) ; printf " " DATA "\n"}/^-00-0P-/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-01 / { DATA=substr($0,11,70) ; printf "Slot 1 contains " DATA "\n"}/^-01-0/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-02 / { DATA=substr($0,11,70) ; printf "Slot 2 contains " DATA "\n"}/^-02-0/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-03 / { DATA=substr($0,11,70) ; printf "Slot 3 contains " DATA "\n"}/^-03-0/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-04 / { DATA=substr($0,11,70) ; printf "Slot 4 contains " DATA "\n"}/^-04-0/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-05 / { DATA=substr($0,11,70) ; printf "Slot 5 contains " DATA "\n"}/^-05-0/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-06 / { DATA=substr($0,11,70) ; printf "Slot 6 contains " DATA "\n"}/^-06-0/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-07 / { DATA=substr($0,11,70) ; printf "Slot 7 contains " DATA "\n"}/^-07-0/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}/^-08 / { DATA=substr($0,11,70) ; printf "Slot 8 contains " DATA "\n"}/^-08-0/ { DATA=substr($0,11,70) ; printf " -- " DATA "\n"}' >> ${FL}
# get detail device infoecho "\f\n\nPHYSICAL / LOGICAL DEVICE DETAILS (lsdev -C)" >> ${FL}echo "---------------------------------------------\n" >> ${FL}lsdev -C >> ${FL}
# get current physical volume namesecho "\f\n\nPHYSICAL VOLUMES (lspv)" >> ${FL}echo "------------------------\n" >> ${FL}lspv >> ${FL}
# get detail physical volume infofor i in `lspv /bin/cut -c1-15` do echo "\n\nPHYSICAL VOLUME DETAILS FOR $i (lspv -l $i)" >> ${FL} echo "------------------------------------------------------\n" >> ${FL} lspv -l $i >> ${FL} 2>&1 done
# get detail volume group infofor i in `lsvg -o` do echo "\n\nVOLUME GROUP DETAILS (lsvg -l $i)" >> ${FL} echo "---------------------------------------\n" >> ${FL} lsvg -l $i >> ${FL} done
# get current mount infoecho "\f\n\nMOUNTED FILESYSTEMS (mount)" >> ${FL}echo "----------------------------\n" >> ${FL}mount >> ${FL}
echo "\n\nFILE SYSTEM INFORMATION: (lsfs -q)" >> ${FL}echo "-----------------------------------\n" >> ${FL}lsfs -q >> ${FL} 2>&1
echo "\n\nFILE SYSTEM SPACE: (df)" >> ${FL}echo "------------------------\n" >> ${FL}df >> ${FL}
for LV in $(lsvg -olsvg -ilawk '{print $1}'egrep -v ':LV') do echo "\n\nLOGICAL VOLUME DETAILS (lslv $LV)" echo "---------------------------------------\n" lslv $LV echo done >> ${FL}
# collect schedtune and vmtune current settingsecho "\n\nSCHEDTUNE SETTINGS (schedtune)" >> ${FL}echo "--------------------------------\n" >> ${FL}if [ -f /usr/samples/kernel/schedtune ] then /usr/samples/kernel/schedtune >> ${FL} else echo "/usr/samples/kernel/schedtune not installed" >> ${FL} echo " This program is part of the bos.adt.samples fileset" >> ${FL} fi
echo "\n\nVMTUNE SETTINGS (vmtune)" >> ${FL}echo "-------------------------\n" >> ${FL}if [ -f /usr/samples/kernel/vmtune ] then /usr/samples/kernel/vmtune >> ${FL} else echo "/usr/samples/kernel/vmtune not installed" >> ${FL} echo " This program is part of the bos.adt.samples fileset" >> ${FL} fi# get verbose machine configuration# added because it is the only way to tell between 601 and 604 upgrades#echo "\f\n\nVERBOSE MACHINE CONFIGURATION (lscfg -v)" >> ${FL}#echo "-----------------------------------------\n" >> ${FL}lscfg -v >> ${FL}
# get system dump config infoecho "\n\nSYSTEM DUMP INFO (sysdumpdev -l;sysdumpdev -e)" >> ${FL}echo "----------------------------------------------\n" >> ${FL}sysdumpdev -l >> ${FL}sysdumpdev -e >> ${FL}
# get ulimit valuesecho "\n\nulimit values" >> ${FL}echo "----------------------------------------------\n" >> ${FL}ulimit -a >> ${FL}
# get sample iostatecho "\n\nsample iostats" >> ${FL}echo "----------------------------------------------\n" >> ${FL}iostat 1 5 >> ${FL}
# get sample vmstatecho "\n\nsample vmstats" >> ${FL}echo "----------------------------------------------\n" >> ${FL}vmstat 1 5 >> ${FL}
# get inittab setupecho "\n\ninittab setup" >> ${FL}echo "----------------------------------------------\n" >> ${FL}tail /etc/inittab >> ${FL}
# get sync daemon setupecho "\n\nsync daemon setup" >> ${FL}echo "----------------------------------------------\n" >> ${FL}ps -ef grep syncd >> ${FL}
# get syslog setupecho "\n\nis syslog daemon running " >> ${FL}echo "----------------------------------------------\n" >> ${FL}ps -ef grep syslo* >> ${FL}echo "\n\nsyslog setup " >> ${FL}echo "----------------------------------------------\n" >> ${FL}tail /etc/syslog.conf >> ${FL}
# TCP KeepIdle Param Valueecho "\n\nTCP KeepIdle Setup" >> ${FL}echo "----------------------------------------------\n" >> ${FL}no -o tcp_keepidle >> ${FL}
# Users on systemecho "\n\nUsers on system" >> ${FL}echo "----------------------------------------------\n" >> ${FL}w -u >> ${FL}

chmod o+r ${FL}chmod o+r ${FL}clearecho "file://n//n//n//n"echo "Please take a copy of ${FL} file ... and ... "echo "file://n/"ls -ltr /tmp/*$DT* awk '{print $9}'echo "file://n//n"

HACMP Complete Configuration

HACMP Complete Configuration
Check the filesets:
labserver101:/usr/es/sbin/cluster > lslpp -l grep rsct
labserver101:/usr/es/sbin/cluster > lslpp -l grep cluster
labserver101 /etc/hosts :
16.138.184.177 labserver101
16.138.184.171 labserver101_svc
10.1.1.1 labserver101_boot
11.1.1.1 labserver101_stdby
16.138.184.181 labserver201
10.1.1.2 labserver201_boot
11.1.1.2 labserver201_stdby
labserver201 /etc/hosts :
16.138.184.177 labserver101
16.138.184.171 labserver101_svc
10.1.1.1 labserver101_boot
11.1.1.1 labserver101_stdby
16.138.184.181 labserver201
10.1.1.2 labserver201_boot
11.1.1.2 labserver201_stdby

From Labserver101 - > Smitty hacmp -> Extend Configuration -- Define the Cluster name

































































RG Name : saprg
Participating nodes : labserer101 labserver201















Enhanced concurrent Vg creation From Labserver101
labserver101:/usr/es/sbin/cluster > lspv grep hdisk1
hdisk1 0005e8e07d6b9991 None
labserver101:/usr/es/sbin/cluster > lspv grep 0005e8e07d6b9991
hdisk1 0005e8e07d6b9991 None
labserver201:/usr/es/sbin/cluster > lspv
hdisk0 0005e8d2c756518f rootvg active
hdisk1 0005e8e07d6b9991 None
labserver201:/usr/es/sbin/cluster > lspv grep 0005e8e07d6b9991
hdisk1 0005e8e07d6b9991 None


labserver101:/usr/es/sbin/cluster > lsvg
rootvg
testvg
labserver101:/usr/es/sbin/cluster > lsvg -o
rootvg
labserver101:/usr/es/sbin/cluster > ls -l /dev/hdisk1
brw------- 1 root system 17, 1 Jul 01 18:55 /dev/hdisk1
labserver201:/dev > ls -l /dev/hdisk1
brw------- 1 root system 17, 1 Jun 29 14:45 /dev/hdisk1
Create the file system /oracle in testvg
Lv01 -> /oracle



































labserver101:/usr/es/sbin/cluster/utilities > ./cltopinfo
Cluster Name: hpcluster
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
There are 2 node(s) and 1 network(s) defined
NODE labserver101:
Network net_ether_01
labserver101_svc 16.138.184.171
labserver101_boot 10.1.1.1
labserver101_stdby 11.1.1.1
NODE labserver201:
Network net_ether_01
labserver101_svc 16.138.184.171
labserver201_boot 10.1.1.2
labserver201_stdby 11.1.1.2
Resource Group saprg
Startup Policy Online On Home Node Only
Fallover Policy Fallover To Next Priority Node In The List
Fallback Policy Fallback To Higher Priority Node In The List
Participating Nodes labserver101 labserver201
Service IP Label labserver101_svc












labserver101:/usr/es/sbin/cluster > lssrc -ls clstrmgrES
Current state: ST_STABLE
sccsid = "@(#)36 1.135.1.82 src/43haes/usr/sbin/cluster/hacmprd/main.C, hacmp.pe, 52haes_r541, 0747B_hacmp541 11/13/07 10:40:55"
i_local_nodeid 0, i_local_siteid -1, my_handle 1
ml_idx[1]=0
There are 0 events on the Ibcast queue
There are 0 events on the RM Ibcast queue
CLversion: 9
local node vrmf is 5410
cluster fix level is "0"
The following timer(s) are currently active:
Current DNP values
DNP Values for NodeId - 0 NodeName - labserver101
PgSpFree = 0 PvPctBusy = 0 PctTotalTimeIdle = 0.000000
DNP Values for NodeId - 0 NodeName - labserver201
PgSpFree = 0 PvPctBusy = 0 PctTotalTimeIdle = 0.000000


labserver201:/usr/es/sbin/cluster > lssrc -ls clstrmgrES
Current state: ST_INIT
sccsid = "@(#)36 1.135.1.82 src/43haes/usr/sbin/cluster/hacmprd/main.C, hacmp.pe, 52haes_r541, 0747B_hacmp541 11/13/07 10:40:55"
labserver201:/usr/es/sbin/cluster >