Aix Script 1 PDF
Aix Script 1 PDF
• AIX
• IBM i
• MAINFRAME
• POWER
• Video
• Buyers Guide
• Newsletters
• About Us
• Subscribe
• Current Issue
• Archive
• App
« Making the Case for AIX and Power Systems | Main | Can
You Restore? Now's the Time to Find Out »
tcl-8.4.7-3.aix5.1.ppc.rpm
tk-8.4.7-3.aix5.1.ppc.rpm
expect-5.42.1-3.aix5.1.ppc.rpm
http://ibmsystemsmag.blogs.com/aixchange/2008/05/another-great-a.html 9/27/2013
AIXchange: Another Great AIX Script Page 2 of 5
AIX, NIM Make System Restoration User array name = 'COE-DS4700' Announcements
Easier dac0 ACTIVE dac1 ACTIVE
AS/400
BYOD's Slippery Slope Disk DAC LUN Logical Drive
hdisk2 dac1 0 coenim_nim ASO
Power Systems Experts Weigh In hdisk3 dac1 1 coesap01_disk1 backup
The OpenPOWER Consortium can
========================= Best Practices
take Power in New Directions VIO server --> coevios2
More on the IBM PowerLinux
========================= Blades
Announcement ---dar0--- Capacity on Demand
An AIX on Power Performance User array name = 'COE-DS4700' Cell phone
Primer dac0 ACTIVE dac1 ACTIVE
Commands
Virtualization on Power Resources Disk DAC LUN Logical Drive
hdisk2 dac1 0 coenim_nim Computer mouse
hdisk3 dac1 1 coesap01_disk1
Archives Current Affairs
And here's a command that I ran in my environment:
Customer service
September 2013
./dshvio.ksh -r "lscfg | grep disk"
Daylight Savings Time
August 2013 =========================
VIO server --> vios1 Disaster Recovery
July 2013 =========================
DS6800
June 2013 vios1:/home/padmin # oem_setup_env
+ hdisk0 U787F.001.DPM1XRD-P1-T10-L3-L0 16 Bit DS8000
May 2013
LVD SCSI
DS8300
April 2013 Disk Drive (73400 MB)
+ hdisk1 U787F.001.DPM1XRD-P1-T10-L4-L0 16 Bit dual HMCs
March 2013 LVD SCSI
Disk Drive (73400 MB) Fibre cards
February 2013
+ hdisk2 U787F.001.DPM1XRD-P1-T10-L5-L0 16 Bit
Fibre Channel
January 2013 LVD SCSI
Disk Drive (73400 MB) FlexSystems Manager
December 2012 =========================
VIO server --> vios3 FLRT
=========================
SEPTEMBER 2013 FSC
vios3:/home/padmin # oem_setup_env
Sun Mon Tue Wed Thu Fri Sat FTP
* hdisk0 U787F.001.DPM1XRD-P1-C1-T1-
1 2 3 4 5 6 7 W5005076801103022-L0 Games
8 9 10 11 12 13 14 MPIO Other FC SCSI Disk Drive
15 16 17 18 19 20 21 * hdisk1 Geocaching
22 23 24 25 26 27 28 U787F.001.DPM1XRD-P1-C6-T1-W5005076801202FFF-
L1000000000000 MPIO Gmail
29 30
Other FC SCSI Disk Drive
GUI
* hdisk2 U787F.001.DPM1XRD-P1-C6-T1-
W5005076801202FFF- hard disk drives
MPIO Other FC SCSI Disk Drive
help desk
This means that I can run commands across all of my VIO
servers from my AIX machine, in either the padmin or HMC
oem_setup_env environment when I specify the -r option. I
HMC Scanner
welcome any changes or improvements that readers might
suggest, and I hope that Dean continues to share these useful HyperSwap
tools with us.
IBM
#!/bin/ksh
# Created by Dean Rowswell, IBM, April 26, 2006 IBM Electronic Support for AIX
# Modified by Dean Rowswell, IBM, October 11, 2007 and Power Systems
# Added a check for the -r flag for a root user command
IBM Flash System 820
# NOTE: this flag will require the expect RPM package to be
installed IBM i
# Modified by Dean Rowswell, IBM, October 12, 2007
# Added a check for the -n flag to specify a single or multiple IBM Power Champions
VIO servers
# IBM PureFlex
#---------------------------------------------------------------------- IBM storage
--------
# Assumption: this server is a trusted host for running ssh IBM Technical University
commands to
# the VIO server(s) IBM training sessions
# To set this up:
IM
# ssh-keygen -t dsa (press ENTER for all prompts)
# scp $HOME/.ssh/id_dsa.pub Integrated Virtualization
padmin@VIOserver:.ssh/authorized_keys2 Manager
#
# NOTE: if the VIO server responds with "rksh: ioscli: not IRC
found" then
IT Administration
# login to the VIO server and change to the root shell via
oem_setup_env. IT education
# Edit /etc/ssh/sshd_config
# Change: PermitUserEnvironment no IT Personnel
# To: PermitUserEnvironment yes
IVM
# Run: stopsrc -s sshd ; startsrc -s sshd
#---------------------------------------------------------------------- Jeopardy!
--------
#===========================================================# Keyboards
# Define the list of VIO servers in this variable
#===========================================================# Linear Tape Open
VIOS="vios1 vios3" Linux
#===========================================================#
http://ibmsystemsmag.blogs.com/aixchange/2008/05/another-great-a.html 9/27/2013
AIXchange: Another Great AIX Script Page 3 of 5
SystemMirror
TrackBack Systems Director
Television
Comments Time
Tivoli
topas
THis is a great idea
Travel
Posted by: Thomas | August 12, 2009 at 10:04 AM
TSM
Twitter
#!/bin/ksh
# Created by Dean Rowswell, IBM, April 26, 2006 UNIX
# Modified by Dean Rowswell, IBM, October 11, 2007
# Added a check for the -r flag for a root user command VIOS
# NOTE: this flag will require the expect RPM package to be
VIOS Advisor
installed
http://ibmsystemsmag.blogs.com/aixchange/2008/05/another-great-a.html 9/27/2013
AIXchange: Another Great AIX Script Page 4 of 5
#===================================================================================#
# Define the list of VIO servers in this variable
#===================================================================================#
VIOS="vios01 vios02 vios03 vios04 dr-vios01 dr-vios02"
#===================================================================================#
DisplayUsage() {
echo "Syntax: dshvio COMMAND\n Run dshvio -? for the valid
parameters"
exit
}
if [ ${#*} -eq 0 ]
then
DisplayUsage
else
while getopts :rn: PARMS
do
case $PARMS in
r) lslpp -L|grep -w expect >/dev/null
if [ $? -ne 0 ]
then
echo "ERROR: cannot use -r flag because expect RPM package is
not installed"
exit 1
else
ROOT=1
fi ;;
n) VIOS=${OPTARG}
VIOS=`echo ${VIOS}|sed 's/,/ /g'`;;
?) echo "Valid parameters are:\n -r for a root command\n -n for
a list of VIO servers\n -n vios1\n -n vios1,vios2" ; exit ;;
esac
done
http://ibmsystemsmag.blogs.com/aixchange/2008/05/another-great-a.html 9/27/2013
AIXchange: Another Great AIX Script Page 5 of 5
Post a comment
Comments are moderated, and will not appear until the author
has approved them.
Your Information
(Name and email address are required. Email address will not be
displayed with the comment.)
Name
Email Address
Post Preview
• AIX
• IBM i
• Mainframe
• Home Page
• About Us
• Contact Us
• Subscriptions
• Reprints
• Advertise With Us
• Privacy Policy
• Terms of Service
IBM Systems Magazine is a trademark of International Business Machines Corporation. The editorial content of IBM Systems Magazine is placed on this
website by MSP TechMedia under license from International Business Machines Corporation.
http://ibmsystemsmag.blogs.com/aixchange/2008/05/another-great-a.html 9/27/2013