<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AIX Solaris HPUX UNIX Linux system storage administration ksh/perl scripting</title>
	<atom:link href="http://www.aixmind.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.aixmind.com</link>
	<description>UNIX administrator blog tips experience command log knowledge base</description>
	<lastBuildDate>Fri, 17 May 2013 20:32:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Build date failure updating from 6100-07-07 to 6100-08-02</title>
		<link>http://www.aixmind.com/?p=2894</link>
		<comments>http://www.aixmind.com/?p=2894#comments</comments>
		<pubDate>Fri, 17 May 2013 20:32:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[build date errors]]></category>
		<category><![CDATA[IV42218]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2894</guid>
		<description><![CDATA[Problem: When attempting to update from 6100-07-07 to 6100-08-02 results in build date errors for the following filesets. devices.pciex.df1020e214103c04.rte devices.pciex.df1020e214103c04.diag devices.pciex.df1020e214100f04.rte devices.pciex.df1020e214100f04.diag Solution: To resolve this issue, download the fix for APAR IV42218, and include the images into the same directory as the 6100-08-02 Service Pack prior to updating. This issue only occurs when updating [...]]]></description>
				<content:encoded><![CDATA[<h4>Problem:</h4>
<p><a>When attempting to update from 6100-07-07 to 6100-08-02 results in build date errors for the following filesets.</a></p>
<ul>
<li>devices.pciex.df1020e214103c04.rte</li>
<li>devices.pciex.df1020e214103c04.diag</li>
<li>devices.pciex.df1020e214100f04.rte</li>
<li>devices.pciex.df1020e214100f04.diag</li>
</ul>
<h4>Solution:</h4>
<p><a>To resolve this issue, download the fix for APAR <strong>IV42218</strong>, and include the images into the same directory as the 6100-08-02 Service Pack prior to updating.</a></p>
<p>This issue only occurs when updating from the 6100-07-07 Service Pack.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2894</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How many virtual processors are active in my AIX LPARs?</title>
		<link>http://www.aixmind.com/?p=2890</link>
		<comments>http://www.aixmind.com/?p=2890#comments</comments>
		<pubDate>Thu, 16 May 2013 20:45:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[kdb]]></category>
		<category><![CDATA[virtual processors]]></category>
		<category><![CDATA[vpm]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2890</guid>
		<description><![CDATA[Question: &#160; How many virtual processors are active in my AIX LPARs? &#160; Solution: &#160; You can use kdb command and the sub-command vpm: As you see, the number of active virtual processors is 4. # echo vpm &#124; kdb START END &#60;name&#62; 0000000000001000 0000000004090000 start+000FD8 F00000002FF47600 F00000002FFDF9C0 __ublock+000000 000000002FF22FF4 000000002FF22FF8 environ+000000 000000002FF22FF8 000000002FF22FFC errno+000000 [...]]]></description>
				<content:encoded><![CDATA[<h3>Question:</h3>
<p>&nbsp;</p>
<p>How many virtual processors are active in my AIX LPARs?</p>
<p>&nbsp;</p>
<h3>Solution:</h3>
<p>&nbsp;</p>
<p>You can use kdb command and the sub-command vpm:</p>
<p>As you see, the number of active virtual processors is 4.</p>
<pre># echo vpm | kdb
 START END &lt;name&gt;
0000000000001000 0000000004090000 start+000FD8
F00000002FF47600 F00000002FFDF9C0 __ublock+000000
000000002FF22FF4 000000002FF22FF8 environ+000000
000000002FF22FF8 000000002FF22FFC errno+000000
F1000F0A00000000 F1000F0A10000000 pvproc+000000
F1000F0A10000000 F1000F0A18000000 pvthread+000000
read vscsi_scsi_ptrs OK, ptr = 0x0
(0)&gt; vpm
VPM Tunables
vpm_interval............... 000003E8 schedp.vpm_fold_threshold.. 00000031
vpm_fold_limit............. 00000008 vpm_unfold_limit........... 00000002
vpm_be_threshold........... 0000000A</pre>
<pre>VPM Data
.........................vpm_mgmt :01
........................vpm_flags :01 USE_BEST_ENERGY
....................vpm_prev_time :1368736952449027431 ns
.....................vpm_interval :1001004500 ns
....................vpm_prev_intr :20125205922335 ns
.........................vpm_intr :11899421 ns</pre>
<pre>VPM Core Buckets
INDX ID TYPE SR CORE LAST ACTI HEAD UTIL STATE
 0 0 SRAD 1 1 1 0 0 51844765</pre>
<pre>VPM Core State
 POS CORE NEXT PRIO BEST C STATE
 0 0 NONE 0 0 0 GP ACTIVE</pre>
<pre>VPM Sleep Data.
........................vsd_state :03
..............vsd_sleep_specifier :00000002
................vsd_sleep_latency :0000000000000000 sec 00989680 nsec
....................vsd_min_sleep :0000000000000000 sec 1DCD6500 nsec
....................vsd_prod_lock :@F100010021622400
....................vsd_prod_head :0000000000000000</pre>
<pre>VSD Thread State.
 CPU VP_STATE SLEEP_STATE PROD_TIME: SECS NSECS CEDE_LAT</pre>
<pre>0 ACTIVE AWAKE 0000000000000000 00000000 00
 1 ACTIVE AWAKE 0000000000000000 00000000 00
 2 ACTIVE AWAKE 0000000000000000 00000000 00
 3 ACTIVE AWAKE 0000000000000000 00000000 00</pre>
<pre>(0)&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2890</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In case your WebShpere Administrator is away.</title>
		<link>http://www.aixmind.com/?p=2886</link>
		<comments>http://www.aixmind.com/?p=2886#comments</comments>
		<pubDate>Thu, 16 May 2013 15:37:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Webspere]]></category>
		<category><![CDATA[WAS]]></category>
		<category><![CDATA[WebShere]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2886</guid>
		<description><![CDATA[After reading this attached PDF, you may probably step up while your WAS administrator is away and your company is looking after a person knows a little about WebShere. PDF download: WebSphere Application Server &#8211; Being the Back-Up Administrator]]></description>
				<content:encoded><![CDATA[<p>After reading this attached PDF, you may probably step up while your WAS administrator is away and your company is looking after a person knows a little about WebShere.</p>
<p>PDF download:</p>
<p><a href="http://www.aixmind.com/wp-content/uploads/2013/05/WebSphere-Application-Server-Being-the-Back-Up-Administrator.pdf">WebSphere Application Server &#8211; Being the Back-Up Administrator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2886</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Hitachi Data Systems HOMRCF and HORC with DB2 UDB Enterprise Edition</title>
		<link>http://www.aixmind.com/?p=2881</link>
		<comments>http://www.aixmind.com/?p=2881#comments</comments>
		<pubDate>Mon, 13 May 2013 20:59:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[CCI]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[Hitachi]]></category>
		<category><![CDATA[HOMRCF]]></category>
		<category><![CDATA[HORC]]></category>
		<category><![CDATA[Open Remote Copy]]></category>
		<category><![CDATA[Open ShadowImage]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2881</guid>
		<description><![CDATA[This PDF takes you through a sample configuration setup using DB2 UDB – Enterprise &#8211; Extended Edition (EEE) Version 7.2 with Hitachi Open ShadowImage and Hitachi Open Remote Copy. Detail: Hitachi® Data Systems 7700E Open ShadowImage™ (HOMRCF) Open Remote Copy (HORC) with IBM® DB2® Universal Database™ Enterprise-Extended Edition Version 7.2 PDF Download: Using Hitachi Data [...]]]></description>
				<content:encoded><![CDATA[<p>This PDF takes you through a sample configuration setup using DB2 UDB –</p></div>
<div dir="ltr" data-font-name="Times" data-canvas-width="677.8925069370272">Enterprise &#8211; Extended Edition (EEE) Version 7.2 with Hitachi Open ShadowImage and</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="222.8544088554382">Hitachi Open Remote Copy.</div>
</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="486.68026299438475"></div>
<div dir="ltr" data-font-name="Times" data-canvas-width="486.68026299438475">Detail:</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="486.68026299438475"></div>
<div dir="ltr" data-font-name="Times" data-canvas-width="486.68026299438475">Hitachi® Data Systems 7700E</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="465.838661050415">Open ShadowImage™ (HOMRCF)</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="444.9521695022583">Open Remote Copy (HORC)</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="64.96808285980225">with</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="634.8351952133179">IBM® DB2® Universal Database™ Enterprise-Extended Edition Version 7.2</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="634.8351952133179"></div>
<div dir="ltr" data-font-name="Times" data-canvas-width="634.8351952133179">PDF Download:</div>
<div dir="ltr" data-font-name="Times" data-canvas-width="634.8351952133179"></div>
<div dir="ltr" data-font-name="Times" data-canvas-width="634.8351952133179"><a href="http://www.aixmind.com/wp-content/uploads/2013/05/Using-Hitachi-Data-Systems-HOMRCF-and-HORC-with-DB2-UDB-Enterprise-Edition.pdf">Using Hitachi Data Systems HOMRCF and HORC with DB2 UDB Enterprise Edition</a></div>
<div dir="ltr" data-font-name="Times" data-canvas-width="634.8351952133179"></div>
<div dir="ltr" data-font-name="Times" data-canvas-width="634.8351952133179"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2881</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Level Recommendation Tool (FLRT) scripting</title>
		<link>http://www.aixmind.com/?p=2877</link>
		<comments>http://www.aixmind.com/?p=2877#comments</comments>
		<pubDate>Mon, 13 May 2013 18:03:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Fix Level Recommendation Tool]]></category>
		<category><![CDATA[FLRT]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2877</guid>
		<description><![CDATA[FLRT allows administrators of IBM systems to monitor recommendations and assist in service planning. For AIX only, FLRT supports the ability to create a script, running on your machine, that can periodically query FLRT online for recommended updates. The documentation, commands and sample script provided on this page apply to the AIX operating system only. [...]]]></description>
				<content:encoded><![CDATA[<p>FLRT allows administrators of IBM systems to monitor recommendations and assist in service planning. For AIX only, FLRT supports the ability to create a script, running on your machine, that can periodically query FLRT online for recommended updates. The documentation, commands and sample script provided on this page apply to the AIX operating system only.</p>
<p>&nbsp;</p>
<p>This is really convenient for AIX system administrators.</p>
<p>&nbsp;</p>
<p>To be able to use the FLRT scripting capabilities, you need to install wget or other HTTP retrieval program on the AIX servers.</p>
<p>&nbsp;</p>
<p>Sample scripts:</p>
<p>&nbsp;</p>
<div>
<h2>Sample scripts (Use the Feedback link to suggest improvements.)</h2>
<div>
<h3>Sample script 1</h3>
<p>This sample script collects inventory from multiple partitions.</p>
<div>
<pre>#/bin/ksh 
# Sample script using wget to gather product versions and query FLRT. 
# This current sample script provides commands for gathering MTM, 
# AIX version, and System Firmware. 
# 
# The rest of the product queries are samples which are commented out, 
# and have sample values hardcoded, to show sample output. 
# 
# Please provide additional samples through the feedback button at: 
# http://www14.software.ibm.com/webapp/set2/sas/f/flrt/scripting.html 

################################################################################ 
getHost() { 
 HOSTNAME=""; 
 if [[ "$1" = "localhost" ]] 
 then 
 HOSTNAME=`hostname` 
 else 
 HOSTNAME=`ssh $1 'hostname'` 
 fi 
} 

################################################################################ 
getMTM() { 
 # Determine the System Model 
 if [[ "$1" = "localhost" ]] 
 then 
 MTMVALUE=`prtconf | grep "System Model" | cut -f 2 -d ,` 
 else 
 MTMVALUE=`ssh $1 'prtconf | grep "System Model" | cut -f 2 -d ,'` 
 fi 
} 

################################################################################ 
getMHZ() { 
 # MHZ - processor speed. 
 if [[ "$1" = "localhost" ]] 
 then 
 MHZVALUE=`prtconf | grep "Processor Clock Speed" | cut -f4 -d " "` 
 else 
 MHZVALUE=`ssh $1 'prtconf | grep "Processor Clock Speed" | cut -f4 -d " "'` 
 fi 
} 

################################################################################ 
getAIX() { 
 # AIX service pack level. 
 if [[ "$1" = "localhost" ]] 
 then 
 AIXv=`oslevel -s` 
 else 
 AIXv=`ssh $1 'oslevel -s 2&gt;/dev/null'` 
 fi 
 if [[ -z "$AIXv" ]] 
 then 
 AIXVALUE="" 
 else 
 AIXVALUE=$AIXv 
 fi 
} 

################################################################################ 
getFW() { 
 # System firmware (booted) version 
 if [[ "$1" = "localhost" ]] 
 then 
 SFIRMWAREVALUE=`lsmcode -r system | cut -f1 -d " " | cut -f2 -d":"` 
 else 
 SFIRMWAREVALUE=`ssh $1 'lsmcode -r system | cut -f1 -d " " | cut -f2 -d":"'` 
 fi 
} 

################################################################################ 
getVIOS() { 
 if [[ "$1" = "localhost" ]] 
 then 
 VIOSv=`ioslevel 2&gt;/dev/null` 
 else 
 VIOSv=`ssh -o PasswordAuthentication=no padmin@$1 'ioscli ioslevel'|cut -f1 -d'-'` &gt; /dev/null 2&gt;&amp;1 
 fi 
 if [[ -z "$VIOSv" ]] 
 then 
 VIOSVALUE="" 
 else 
 VIOSVALUE=$VIOSv 
 fi 
} 

################################################################################ 
getHACMP() { 
 #HACMP version 
 if [[ "$1" = "localhost" ]] 
 then 
 HACMPv=`lslpp -L cluster.es.server.rte 2&gt;/dev/null | grep cluster.es.server.rte | cut -f3 -d":"` 
 else 
 HACMPv=`ssh $1 'lslpp -L cluster.es.server.rte 2&gt;/dev/null | grep cluster.es.server.rte | cut -f3 -d":"'` 
 #BRAD - hardcode 
 HACMPv=5.3 
 fi 
 if [[ -z "$HACMPv" ]] 
 then 
 HACMPVALUE="" 
 else 
 HACMPVALUE=$HACMPv 
 fi 
} 

################################################################################ 
getGPFS() { 
 #GPFS version 
 if [[ "$1" = "localhost" ]] 
 then 
 GPFSv=`lslpp -Lc gpfs.base 2&gt;/dev/null | grep gpfs.base | cut -f3 -d":"` 
 else 
 GPFSv=`ssh $1 'lslpp -Lc gpfs.base 2&gt;/dev/null | grep gpfs.base | cut -f3 -d":"'` 
 fi 
 if [[ -z "$GPFSv" ]] 
 then 
 GPFSVALUE="" 
 else 
 GPFSVALUE=$GPFSv 
 fi 
} 

################################################################################ 
getCSM() { 
 if [[ "$1" = "localhost" ]] 
 then 
 CSMv=`lslpp -Lc csm.client 2&gt;/dev/null | grep csm.client | cut -f3 -d":"` 
 else 
 CSMv=`ssh $1 'lslpp -Lc csm.client 2&gt;/dev/null | grep csm.client | cut -f3 -d":"'` 
 fi 
 if [[ -z "$CSMv" ]] 
 then 
 CSMVALUE="" 
 else 
 CSMVALUE=$CSMv 
 fi 
} 

################################################################################ 
getHMC() { 
 # HMC version requires a call to the HMC box. Using ssh is one way to do this. 
 # This requires setup of ssh which is not discussed here. 
 if [[ -z "$HMC_USER" ]] 
 then 
 HMCVALUE="" 
 else 
 HMC_OUTPUT=`ssh -l $HMC_USER $HMC_HOST lshmc -V &gt; hmc.out` 
 HMC_VERSION=`grep -i version hmc.out | grep -v base_version| cut -f 3 -d " "` 
 HMC_RELEASE=`grep -i release hmc.out | cut -f 3 -d " "` 
 HMCVALUE=$HMC_VERSION.$HMC_RELEASE 
 fi 
} 

################################################################################ 
processAIX() { 
 # Parse AIX results 
 AIXVer=`grep ^aix getflrt.rpt|cut -f2 -d' '` 
 if [[ -z $AIXVer ]] 
 then 
 #no AIX results returned 
 AIXVer=none 
 else 
 AIXRes=`grep ^aix getflrt.rpt|cut -f3- -d' '` 
 if [[ $AIXRes == "ok" ]] 
 then 
 echo " AIX Version installed: $AIXVer - OK" 
 else 
 echo "** AIX Version installed: $AIXVer - Lower than recommended" 
 AIXRec=`grep "The current recommended SP level for this AIX TL is" getflrt.rpt` 
 echo \\t$AIXRec 
 fi 
 echo 
 fi 
} 

################################################################################ 
processFW() { 
 # Parse System Firmware results 
 FWVer=`grep ^fw getflrt.rpt|cut -f2 -d' '` 
 if [[ -z $FWVer ]] 
 then 
 #no firmware results returned 
 FWVer=none 
 else 
 FWRes=`grep ^fw getflrt.rpt|cut -f3 -d' '` 
 FWRec=`grep ^fw getflrt.rpt|cut -f4 -d' '` 
 if [[ $FWRes == "ok" ]] 
 then 
 echo " System Firmware version: $FWVer - OK" 
 else 
 echo "** System Firmware version: $FWVer - Upgrade recommended" 
 echo \\tRecommended version: $FWRec 
 fi 
 echo 
 fi 
} 

################################################################################ 
processVIOS() { 
 # Parse VIOS results 
 VIVer=`grep ^vios getflrt.rpt|cut -f2 -d' '` 
 if [[ -z $VIVer ]] 
 then 
 #no vios results returned 
 VIVer=none 
 else 
 VIRes=`grep ^vios getflrt.rpt|cut -f3 -d' '` 
 VIRec=`grep ^vios getflrt.rpt|cut -f4 -d' '` 
 if [[ $VIRes == "ok" ]] 
 then 
 echo " VIOS version: $VIVer - OK" 
 else 
 echo "** VIOS version: $VIVer - Upgrade recommended" 
 echo \\tRecommended version: $VIRec 
 fi 
 echo 
 fi 
} 

################################################################################ 
processHACMP() { 
 # Parse HACMP results 
 HAVer=`grep ^hacmp getflrt.rpt|cut -f2 -d' '` 
 if [[ -z $HAVer ]] 
 then 
 #no hacmp results returned 
 HAVer=none 
 else 
 HARes=`grep ^hacmp getflrt.rpt|cut -f3 -d' '` 
 HARec=`grep ^hacmp getflrt.rpt|cut -f4 -d' '` 
 if [[ $HARes == "ok" ]] 
 then 
 echo " HACMP version: $HAVer - OK" 
 else 
 echo "** HACMP version: $HAVer - Unsupported" 
 HAMessage=`grep ^hacmp getflrt.rpt` 
 echo \\tMessage: $HAMessage 
 fi 
 echo 
 fi 
} 

################################################################################ 
processGPFS() { 
 # Parse GPFS results 
 GPFSVer=`grep ^gpfs getflrt.rpt|cut -f2 -d' '` 
 if [[ -z $GPFSVer ]] 
 then 
 #no GPFS results returned 
 GPFSVer=none 
 else 
 GPFSRes=`grep ^gpfs getflrt.rpt|cut -f3 -d' '` 
 GPFSRec=`grep ^gpfs getflrt.rpt|cut -f4 -d' '` 
 if [[ $GPFSRes == "ok" ]] 
 then 
 echo " GPFS version: $GPFSVer - OK" 
 else 
 echo "** GPFS version: $GPFSVer - Upgrade recommended" 
 echo \\tRecommended version: $GPFSRec 
 fi 
 echo 
 fi 
} 

################################################################################ 
processCSM() { 
 # Parse CSM results 
 CSVer=`grep ^csm getflrt.rpt|cut -f2 -d' '` 
 if [[ -z $CSVer ]] 
 then 
 #no CSM results returned 
 CSVer=none 
 else 
 CSRes=`grep ^csm getflrt.rpt|cut -f3 -d' '` 
 CSRec=`grep ^csm getflrt.rpt|cut -f4 -d' '` 
 if [[ $CSRes == "ok" ]] 
 then 
 echo " Cluster Systems Management version: $CSVer - OK" 
 else 
 echo "** Cluster Systems Management version: $CSVer - Upgrade recommended" 
 echo \\tRecommended version: $CSRec 
 fi 
 echo 
 fi 
} 

################################################################################ 
processHMC() { 
 # Parse HMC results 
 HMVer=`grep ^hmc getflrt.rpt|cut -f2 -d' '` 
 if [[ -z $HMVer ]] 
 then 
 #no hmc results returned 
 HMVer=none 
 else 
 HMRes=`grep ^hmc getflrt.rpt|cut -f3 -d' '` 
 HMRec=`grep ^hmc getflrt.rpt|cut -f4 -d' '` 
 if [[ $HMRes == "ok" ]] 
 then 
 echo " HMC version: $HMVer - OK" 
 else 
 echo "** HMC version: $HMVer - Upgrade recommended" 
 echo \\tRecommended version: $HMRec 
 fi 
 echo 
 fi 
} 

################################################################################ 
################################################################################ 
# MAIN 
################################################################################ 
################################################################################ 

FLRTURL="http://www14.software.ibm.com/webapp/set2/flrt" 

HMC_USER=hscroot 
HMC_HOST=9.3.108.4 

WGET=`which wget` 

if [[ -z $WGET ]] 
then 
 echo "wget not found, quitting" 
 exit 1 
fi 

TR=/usr/bin/tr 
format="text" 
hostlist="" 
ts=`date +"%d %h %Y %r"` 
name="FLRT Report $ts" 
typeset -i system_number 
system_number=0 

############################################################ 
# process arguments 
############################################################ 
while [ $# -gt 0 ] 
do 
 case "$1" in 
 -f) #format 
 shift 
 format=$1 
 ;; 
 *) #host name 
 hostlist="$hostlist $1" 
 ;; 
 esac 
 shift 
done 

if [[ $hostlist = "" ]]; then 
 hostlist="localhost" 
fi 

if [[ $format != "html" ]] &amp;&amp; [[ $format != "btext" ]] &amp;&amp; [[ $format != "text" ]]; then 
 echo "Error: format must be html, text, or btext" 
 exit 1 
fi 

# need temporary files to hold inventory info 
TMP=/tmp/tmp_inventory_`date +%s`_$$ 
TMPF="/tmp/testQuery$$" 

trap '/bin/rm -f $TMP $TMPF' 0 
trap "exit 2" 1 2 3 13 15 

echo "reportname=$name" &gt; $TMP 

# gather information for inventory file 

first_host="true" 
for host in `echo $hostlist` 
do 
 #check for special vios handling 
 isvios=`echo $host|cut -f1 -d':'` 
 if [[ "$isvios" = "vios" ]]; then # vios processing 
 realhost=`echo $host|cut -f2 -d':'` 
 host=$realhost 
 getVIOS $host 
 AIXVALUE="" 
 else 
 getAIX $host 
 VIOSVALUE="" 
 fi 
 getHost $host 
 #getAIX $host 
 if [[ -z $AIXVALUE &amp;&amp; -z $VIOSVALUE ]] 
 then 
 # Non-AIX systems aren't going to support most of the commands we'll be using 
 echo $HOSTNAME does not appear to be an AIX or VIOS partition, cannot continue processing this partition 
 continue; 
 else 
 let system_number+=1 
 # gather data for host 
 #getMHZ $host 
 #getHMC $host 
 #getVIOS $host 
 #getHACMP $host 
 getGPFS $host 
 #getCSM $host 
 # data collected, write to inventory file 
 if [[ $first_host = "true" ]]; then 
 getMTM $host 
 getFW $host 
 first_host="false" 
 echo mtm=$MTMVALUE &gt;&gt; $TMP 
 echo fw=$SFIRMWAREVALUE &gt;&gt; $TMP 
 fi 
 echo p$system_number.parnm=$HOSTNAME &gt;&gt; $TMP 
 echo p$system_number.os=aix &gt;&gt; $TMP 
 if [[ $AIXVALUE != "" ]]; then 
 echo p$system_number.aix=$AIXVALUE &gt;&gt; $TMP 
 fi 
 if [[ $HACMPVALUE != "" ]]; then 
 echo p$system_number.hacmp=$HACMPVALUE &gt;&gt; $TMP 
 fi 
 if [[ $CSMVALUE != "" ]]; then 
 echo p$system_number.csm=$CSMVALUE &gt;&gt; $TMP 
 fi 
 if [[ $VIOSVALUE != "" ]]; then 
 echo p$system_number.vios=$VIOSVALUE &gt;&gt; $TMP 
 fi 
 if [[ $GPFSVALUE != "" ]]; then 
 echo p$system_number.gpfs=$GPFSVALUE &gt;&gt; $TMP 
 fi 

 #$WGET "$FLRTURL/query?format=text&amp;$MHZVALUE$$$HMCVALUE$$$GPFSVALUE$$CSMHAVALUE" -o getflrt.stdout -O getflrt.rpt 
 #process results 
 #processAIX 
 #processFW 
 #processGPFS 
 #processHACMP 
 #processVIOS 
 #processCSM 
 fi 
done 

#echo $TMP 
$TR '\n' '&amp;' &lt; ${TMP} &gt; $TMPF 
echo "&amp;format=$format" &gt;&gt; $TMPF 

URL=${FLRTURL}"/query" 
#echo URL $URL 

#$WGET -nv -O out --post-file=${TMPF} ${URL} 
 $WGET -q -O out --post-file=${TMPF} ${URL} 

cat out 

exit</pre>
</div>
</div>
</div>
<div>
<div>
<p>Sample script 2</p>
<p>This sample script uses an inventory file, saved from the FLRT application, to generate a report.</p>
<div>
<pre>#/bin/ksh 

# Sample script to update preexisting inventory file to FLRT, and 
# display the results 

if [[ $# -eq 0 ]];then 
 print "usage: flrt_inventory.ksh [inventory file]" 
 print " uploads [inventory file] to FLRT, displays results" 
 exit 
fi 

WGET=`which wget` 

if [[ -z $WGET ]] 
then 
 echo "wget not found, quitting" 
 exit 1 
fi 

FLRTURL="http://www14.software.ibm.com/webapp/set2/flrt" 

TR=/usr/bin/tr 
URL=${FLRTURL}"/query" 
format="text" 
TMPF="/tmp/testQuery$$" 

trap '/bin/rm -f $TMP $TMPF' 0 
trap "exit 2" 1 2 3 13 15 

$TR '\n' '&amp;' &lt; ${1} &gt; $TMPF 
echo "&amp;format=$format" &gt;&gt; $TMPF 

$WGET -q -O out --post-file=${TMPF} ${URL} 

cat out</pre>
</div>
</div>
</div>
<p>&nbsp;</p>
<div>
<h2>Syntax details for writing your own script</h2>
<div>
<p><b>HTTP GET URL:</b> http://www14.software.ibm.com/webapp/set2/flrt/query</p>
<div></div>
<h3>Product codes</h3>
<p>For the complete list of codes for all supported products, refer to <a href="http://www-304.ibm.com/webapp/set2/flrt/doc?page=prodTable">FLRT products and codes</a>. The entry in the <b>Codes</b> column represents the HTTP attribute to use in the script for the indicated product.</p>
<div></div>
<h3>Values for HTTP attributes</h3>
<p>The following list shows samples of the attribute values to use with the HTTP attribute codes for some of the products supported in FLRT.</p>
<table width="100%">
<tbody>
<tr>
<th>Product</th>
<th>HTTP attribute</th>
<th>Sample value</th>
</tr>
<tr>
<td>AIX</td>
<td>sseq6u</td>
<td>9999-99-99 or 9999-99-CSP</td>
</tr>
<tr>
<td>General Parallel File System</td>
<td>sg6msp</td>
<td>version (for example, 3.3.0)</td>
</tr>
<tr>
<td>Hardware Management Console</td>
<td>swg20</td>
<td>version (for example, 6.1.2)</td>
</tr>
<tr>
<td>PowerHA</td>
<td>sgl4g4</td>
<td>version (for example, 5.4.1.0)</td>
</tr>
<tr>
<td>Parallel Environment</td>
<td>sg6mu7</td>
<td>version (for example, 4.2)</td>
</tr>
<tr>
<td>Parallel ESSL</td>
<td>sg4psl</td>
<td>version (for example, 3.3.0)</td>
</tr>
<tr>
<td>Virtual I/O Server</td>
<td>sgs8jy</td>
<td>version (for example, 2.1.3)</td>
</tr>
</tbody>
</table>
<p>The following list entails HTTP attributes that are used for product family or non-product items, along with sample values for those attributes.</p>
<table width="100%">
<tbody>
<tr>
<th>HTTP attribute</th>
<th>Sample value</th>
</tr>
<tr>
<td>mtm</td>
<td>9999-XXX (for example, 9119-FHA or 8233-E8B)</td>
</tr>
<tr>
<td>delim</td>
<td>a delimiter character used for returning results (default=&#8217; &#8216;)</td>
</tr>
<tr>
<td>disk*</td>
<td>DS9999 (for example, DS5200)</td>
</tr>
<tr>
<td>dsfw</td>
<td>disk firmware version (for example, 7.60.x)</td>
</tr>
<tr>
<td>fw</td>
<td>AA999_999 or 999_999 (for example, AM720_064 or 720_064)</td>
</tr>
<tr>
<td>format</td>
<td>text | btext | html (default=&#8217;text&#8217;)</td>
</tr>
<tr>
<td>ghz</td>
<td>cpu speed in decimal gigahertz (for example, 1.9)</td>
</tr>
</tbody>
</table>
<p><b>*</b>For FLRT to report on more than one disk system for the same partition or host, disk product codes must be modified with a suffix. These suffixes are used by FLRT to associate disk software data in the HTTP request with disk hardware data. The suffixes are of the form &#8220;<b>_g9</b>&#8221; where &#8220;<b>9</b>&#8221; represents a positive integer. Parameter names for versions of disk software components must have the same suffix as the parameter name of the disk hardware version that they are associated with. Any positive integer may be used as long as associated product versions use the same integer, and unassociated product versions use distinct integers.</p>
<p>For example, suppose that a host contains a DS5100 disk system running controller firmware 7.50.x, and a DS4500 system running 6.23.x firmware. Valid parameters corresponding to this configuration would be:</p>
<p><tt>disk_g3=DS5100 dsfw_g3=7.50.x disk_g1=DS4500 dsfw_g1=6.23.x</tt></p>
<div></div>
<p><b>Example of wget command</b>:</p>
<p>Note that although the following command wraps in the browser, there are no spaces in the URL part of the command:</p>
<p>./wget &#8220;http://www14.software.ibm.com/webapp/set2/flrt/query?format=text<br />
&amp;mtm=9117-570&amp;ghz=4.7&amp;sseq6u=5300-04-03&amp;fw=SF240_219&#8243;</p>
<p>&nbsp;</p>
</div>
</div>
<p>Link:</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2877</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two ways to read PVID from disk</title>
		<link>http://www.aixmind.com/?p=2873</link>
		<comments>http://www.aixmind.com/?p=2873#comments</comments>
		<pubDate>Mon, 13 May 2013 17:40:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[lquerypv]]></category>
		<category><![CDATA[od]]></category>
		<category><![CDATA[pvid]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2873</guid>
		<description><![CDATA[lspv and other high level lvm commands are reading the pvid from the ODM database, not from the disk itself. &#160; Sometimes you need to read it from the disk. There are two ways to fulfill this: &#160; 1. Using lquerypv command: &#160; # lquerypv -h /dev/hdisk10 80 10 00000080 00C4469D 5E6002A5 00000000 00000000 &#124;..H.^`..........&#124; [...]]]></description>
				<content:encoded><![CDATA[<p>lspv and other high level lvm commands are reading the pvid from the ODM database, not from the disk itself.</p>
<p>&nbsp;</p>
<p>Sometimes you need to read it from the disk. There are two ways to fulfill this:</p>
<p>&nbsp;</p>
<p>1. Using lquerypv command:</p>
<p>&nbsp;</p>
<pre># lquerypv -h /dev/hdisk10 80 10
00000080   00C4469D 5E6002A5 00000000 00000000  |..H.^`..........|

2. Using od command:

# od -A n -j 128 -N 8 -x /dev/hdisk10</pre>
<pre>00c4 469d 5e60 02a5</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2873</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the PVID and VGID of rootvg</title>
		<link>http://www.aixmind.com/?p=2870</link>
		<comments>http://www.aixmind.com/?p=2870#comments</comments>
		<pubDate>Mon, 13 May 2013 15:57:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[ghostdev]]></category>
		<category><![CDATA[pvid]]></category>
		<category><![CDATA[VGID]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2870</guid>
		<description><![CDATA[You can change the physical volume identifier (PVID) and the volume group identifier (VGID) of the rootvg volume group during the system boot phase. To change the PVID and VGID of the rootvg, set the sys0 dev ghostdev attribute with a value of 2 and reboot the system. The sys0 device ghostdev attribute is a [...]]]></description>
				<content:encoded><![CDATA[<p>You can change the physical volume identifier (PVID) and the volume group identifier (VGID) of the rootvg volume group during the system boot phase.</p>
<div>To change the PVID and VGID of the rootvg, set the <em>sys0 dev ghostdev</em> attribute with a value of 2 and reboot the system. The <em>sys0 device ghostdev</em> attribute is a bitwise flag.</p>
<div>
<ul>
<li>To set the <em>sys0 device ghostdev </em> attribute to change PVID and VGID of rootvg volume group, enter the following command:
<pre><code>chdev -l sys0 -a ghostdev=2</code></pre>
<div>
<div>Note: The value of 2 for the <em>sys0 device ghostdev</em> attribute is unset, after the ipl_varyon command changes the PVID and VGID of all disks in the rootvg. If the chdev command for changing the PVID of any rootvg disks fails, the ipl_varyon command sends a warning message and continues to vary on the rootvg. If the chdev command for changing the PVID of any disk in rootvg fails, and you want to change the PVID and VGID during the next reboot, set <em>sys0 device ghostdev</em> attribute to 2 again.</div>
</div>
</li>
<li>To list the value of the <em>ghostdev</em> attribute, enter the following command:
<pre><code>lsattr -E -l sys0 -a ghostdev</code></pre>
</li>
</ul>
<pre>      ghostdev 2 Recreate devices in ODM on system change True</pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2870</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is NPIV (N_Port ID Virtualization) and NPV (N_Port Virtualization)?</title>
		<link>http://www.aixmind.com/?p=2865</link>
		<comments>http://www.aixmind.com/?p=2865#comments</comments>
		<pubDate>Fri, 10 May 2013 15:45:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Storage]]></category>
		<category><![CDATA[E_port]]></category>
		<category><![CDATA[F_Port]]></category>
		<category><![CDATA[NPIV]]></category>
		<category><![CDATA[NPV]]></category>
		<category><![CDATA[N_port]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2865</guid>
		<description><![CDATA[First, though, I need to cover some basics. This is unnecessary for those of you that are Fibre Channel experts, but for the rest of the world it might be useful: N_Port: An N_Port is an end node port on the Fibre Channel fabric. This could be an HBA (Host Bus Adapter) in a server [...]]]></description>
				<content:encoded><![CDATA[<p>First, though, I need to cover some basics. This is unnecessary for those of you that are Fibre Channel experts, but for the rest of the world it might be useful:</p>
<ul>
<li><strong>N_Port:</strong> An N_Port is an end node port on the Fibre Channel fabric. This could be an HBA (Host Bus Adapter) in a server or a target port on a storage array.</li>
<li><strong>F_Port:</strong> An F_Port is a port on a Fibre Channel switch that is connected to an N_Port. So, the port into which a server’s HBA or a storage array’s target port is connected is an F_Port.</li>
<li><strong>E_Port:</strong> An E_Port is a port on a Fibre Channel switch that is connected to another Fibre Channel switch. The connection between two E_Ports forms an <em>Inter-Switch Link (ISL)</em>.</li>
</ul>
<p>There are other types of ports as well—NL_Port, FL_Port, G_Port, TE_Port—but for the purposes of this discussion these three will get us started. With these definitions in mind, I’ll start by discussing N_Port ID Virtualization (NPIV).</p>
<h2>N_Port ID Virtualization (NPIV)</h2>
<p>Normally, an N_Port would have a single N_Port_ID associated with it; this N_Port_ID is a 24-bit address assigned by the Fibre Channel switch during the FLOGI process. The N_Port_ID is not the same as the World Wide Port Name (WWPN), although there is typically a one-to-one relationship between WWPN and N_Port_ID. Thus, for any given physical N_Port, there would be exactly one WWPN and one N_Port_ID associated with it.</p>
<p>What NPIV does is allow a single physical N_Port to have multiple WWPNs, and therefore multiple N_Port_IDs, associated with it. After the normal FLOGI process, an NPIV-enabled physical N_Port can subsequently issue additional commands to register more WWPNs and receive more N_Port_IDs (one for each WWPN). The Fibre Channel switch must also support NPIV, as the F_Port on the other end of the link would “see” multiple WWPNs and multiple N_Port_IDs coming from the host and must know how to handle this behavior.</p>
<p>Once all the applicable WWPNs have been registered, each of these WWPNs can be used for SAN zoning or LUN presentation. There is no distinction between the physical WWPN and the virtual WWPNs; they all behave in exactly the same fashion and you can use them in exactly the same ways.</p>
<p>So why might this functionality be useful? Consider a virtualized environment, where you would like to be able to present a LUN via Fibre Channel to a specific virtual machine only:</p>
<ul>
<li><em>Without NPIV</em>, it’s not possible because the N_Port on the physical host would have only a single WWPN (and N_Port_ID). Any LUNs would have to be zoned and presented to this single WWPN. Because all VMs would be sharing the same WWPN on the one single physical N_Port, any LUNs zoned to this WWPN would be visible to all VMs on that host because all VMs are using the same physical N_Port, same WWPN, and same N_Port_ID.</li>
<li><em>With NPIV</em>, the physical N_Port can register additional WWPNs (and N_Port_IDs). Each VM can have its own WWPN. When you build SAN zones and present LUNs using the VM-specific WWPN, then the LUNs will only be visible to that VM and not to any other VMs.</li>
</ul>
<p>Virtualization is not the only use case for NPIV, although it is certainly one of the easiest to understand.</p>
<p>&lt;aside&gt;As an aside, it’s interesting to me that VMotion works and is supported with NPIV as long as the RDMs and all associated VMDKs are in the same datastore. Looking at how the physical N_Port has the additional WWPNs and N_Port_IDs associated with it, you’d think that VMotion wouldn’t work. I wonder: does the HBA on the destination ESX/ESXi host have to “re-register” the WWPNs and N_Port_IDs on that physical N_Port as part of the VMotion process?&lt;/aside&gt;</p>
<p>Now that I’ve discussed NPIV, I’d like to turn the discussion to N_Port Virtualization (NPV).</p>
<h2>N_Port Virtualization</h2>
<p>While NPIV is primarily a host-based solution, NPV is primarily a switch-based technology. It is designed to reduce switch management and overhead in larger SAN deployments. Consider that every Fibre Channel switch in a fabric needs a different domain ID, and that the total number of domain IDs in a fabric is limited. In some cases, this limit can be fairly low depending upon the devices attached to the fabric. The problem, though, is that you often need to add Fibre Channel switches in order to scale the size of your fabric. There is therefore an inherent conflict between trying to reduce the overall number of switches in order to keep the domain ID count low while also needing to add switches in order to have a sufficiently high port count. NPV is intended to help address this problem.</p>
<p>NPV introduces a new type of Fibre Channel port, the NP_Port. The NP_Port connects to an F_Port and acts as a proxy for other N_Ports on the NPV-enabled switch. Essentially, the NP_Port “looks” like an NPIV-enabled host to the F_Port on the other end. An NPV-enabled switch will register additional WWPNs (and receive additional N_Port_IDs) via NPIV on behalf of the N_Ports connected to it. The physical N_Ports don’t have any knowledge this is occurring and don’t need any support for it; it’s all handled by the NPV-enabled switch.</p>
<p>Obviously, this means that the upstream Fibre Channel switch must support NPIV, since the NP_Port “looks” and “acts” like an NPIV-enabled host to the upstream F_Port. Additionally, because the NPV-enabled switch now looks like an end host, it no longer needs a domain ID to participate in the Fibre Channel fabric. Using NPV, you can add switches and ports to your fabric without adding domain IDs.</p>
<p>So why is this functionality useful? There is the immediate benefit of being able to scale your Fibre Channel fabric without having to add domain IDs, yes, but in what sorts of environments might this be particularly useful? Consider a blade server environment, like an HP c7000 chassis, where there are Fibre Channel switches in the back of the chassis. By using NPV on these switches, you can add them to your fabric without having to assign a domain ID to each and every one of them.</p>
<p>Here’s another example. Consider an environment where you are mixing different types of Fibre Channel switches and are concerned about interoperability. As long as there is NPIV support, you can enable NPV on one set of switches. The NPV-enabled switches will then act like NPIV-enabled hosts, and you won’t have to worry about connecting E_Ports and creating ISLs between different brands of Fibre Channel switches.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2865</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to migrate an existing VIO server using Hitachi Dynamic Link Manager version 5.6 to Dynamic Link Manager version 5.9</title>
		<link>http://www.aixmind.com/?p=2862</link>
		<comments>http://www.aixmind.com/?p=2862#comments</comments>
		<pubDate>Thu, 09 May 2013 21:03:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[HDLM]]></category>
		<category><![CDATA[Hiatchi]]></category>
		<category><![CDATA[Hitachi Dynamic Link Manager]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[VIO]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2862</guid>
		<description><![CDATA[&#160; The procedures are in the Hitachi Dynamic Link Manager User Guide. The installation procedure is basically the same as for a standalone AIX server. You must use the special VIO command oem_setup_env to get into the root shell to uninstall and reinstall Dynamic Link Manager. The recommended procedure is to shut down the client [...]]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<p>The procedures are in the Hitachi Dynamic Link Manager User Guide. The installation procedure is basically the same as for a standalone AIX server.</p>
<p>You must use the special VIO command <strong>oem_setup_env</strong> to get into the root shell to uninstall and reinstall Dynamic Link Manager. The recommended procedure is to shut down the client prior to the upgrade.The virtual (mapped) devices must either be removed or put in a defined state.</p>
<p>You must also be aware that the pvid method of identifying the disks is the default with Dynamic LinkManager version 5.6,however, with Dynamic Link Manager version 5.6.1 the option to specify the <strong>unique_id</strong> method was available. If you are using unique_id, then no changes are required.<br />
However,if you are using the pvid method, then a backup and restore(orreload) is required.If you have dual VIO servers, you can migrate one server at a time,however, care must be taken to ensure the paths areavailable and<br />
there are no path errors in the client. Also, ensure that you are using the unique_id method of identifying the disks. The reserves must be disabled on all the hdisks prior to remapping the devices for the client partitions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2862</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using wget to download AIX patches</title>
		<link>http://www.aixmind.com/?p=2853</link>
		<comments>http://www.aixmind.com/?p=2853#comments</comments>
		<pubDate>Thu, 02 May 2013 20:36:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2853</guid>
		<description><![CDATA[First, you will need to install wget on your AIX server. &#160; Browse to http://www.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html Search for wget Click the RPM link And it downloads the file:  wget-1.9.1-1.aix5.1.ppc.rpm Move this to your repository or home AIX machine on which you can as root install this package. Or you can directly download it using ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/wget/wget-1.9.1-1.aix5.1.ppc.rpm Run: rpm [...]]]></description>
				<content:encoded><![CDATA[<p>First, you will need to install wget on your AIX server.</p>
<p>&nbsp;</p>
<ol dir="ltr">
<li>Browse to <a href="http://www.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html" target="_blank">http://www.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html</a></li>
<li>Search for <strong>wget</strong></li>
<li>Click the RPM link</li>
<li>And it downloads the file:  wget-1.9.1-1.aix5.1.ppc.rpm</li>
<li>Move this to your repository or home AIX machine on which you can as root install this package. Or you can directly download it using ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/wget/wget-1.9.1-1.aix5.1.ppc.rpm</li>
<li>Run: <strong>rpm -Uvh wget-1.9.1-1.aix5.1.ppc.rpm</strong></li>
</ol>
<p>&nbsp;</p>
<p>Now you can use wget to download AIX patches.</p>
<p>&nbsp;</p>
<p>Assume your patches are located at ftp://www7b.boulder.ibm.com/aix/fixes/pkgs/kmjuv/</p>
<p>On the AIX server, go into the repository where you want to hold the patches and run wget at background.</p>
<pre># cd /export/nim/patches/IV22602</pre>
<pre># wget -b -o /tmp/IV22602_download.log -nd -r --retr-symlinks ftp://www7b.boulder.ibm.com/aix/fixes/pkgs/kmjuv/</pre>
<pre></pre>
<pre>-b, --background go to background after startup.</pre>
<pre>-o, --output-file=FILE log messages to FILE.</pre>
<pre>-nd, --no-directories don't create directories.</pre>
<pre>-r, --recursive recursive download.</pre>
<p>Check the log file later to make sure the download is completed successfuly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2853</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set up IBM Virtual LPAR as a router using static routing</title>
		<link>http://www.aixmind.com/?p=2850</link>
		<comments>http://www.aixmind.com/?p=2850#comments</comments>
		<pubDate>Thu, 02 May 2013 14:50:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[static-route]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2850</guid>
		<description><![CDATA[If you do need to set up as vLPAR as a static router, there is a guild in IBM developwork site. Please note you will need to make changes on both VIOS and vLPAR. &#160; Link: &#160; Set up IBM Virtual LPAR as a router using static routing]]></description>
				<content:encoded><![CDATA[<p>If you do need to set up as vLPAR as a static router, there is a guild in IBM developwork site.</p>
<p>Please note you will need to make changes on both VIOS and vLPAR.</p>
<p>&nbsp;</p>
<p>Link:</p>
<p>&nbsp;</p>
<p><a href="http://www.ibm.com/developerworks/aix/library/au-aix-server-router/index.html" target="_blank">Set up IBM Virtual LPAR as a router using static routing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2850</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An example: Install new LPAR AIX using NPIV and Storage V7000</title>
		<link>http://www.aixmind.com/?p=2846</link>
		<comments>http://www.aixmind.com/?p=2846#comments</comments>
		<pubDate>Wed, 01 May 2013 18:49:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[NPIV]]></category>
		<category><![CDATA[V7000]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2846</guid>
		<description><![CDATA[Summary: &#160; 1. Create an AIX LPAR. 2. VIOS Set in   the Virtual Fibre Channel Adapter servers. 3. In the VIOS identify the new vfchost. 4. Create Virtual Fibre Channel Adapter customers 5. Save the new configuration of the VIOS. 6. Map the vfchost to physical cards. 7. Identifying the WWPNs gives the LPAR created. 8. Configure NIM to install AIX one. 9. Start first [...]]]></description>
				<content:encoded><![CDATA[<p><b><span style="text-decoration: underline;">Summary:</span></b></p>
<p>&nbsp;</p>
<p><span><span>1. </span><span>Create an AIX LPAR.</span></span></p>
<p><span><span>2. </span><span>VIOS Set in </span></span>  <span><span>the Virtual Fibre Channel Adapter servers.</span></span></p>
<p><span><span>3. </span><span>In the VIOS identify the new vfchost.</span></span></p>
<p><span><span>4. </span><span>Create Virtual Fibre Channel Adapter customers</span></span></p>
<p><span><span>5. </span><span>Save the new configuration of the VIOS.</span></span></p>
<p><span><span>6. </span><span>Map the vfchost to physical cards.</span></span></p>
<p><span><span>7. </span><span>Identifying the WWPNs gives the LPAR created.</span></span></p>
<p><span><span>8. </span><span>Configure NIM to install AIX one.</span></span></p>
<p><span><span>9. </span><span>Start first LPAR.</span></span></p>
<p><span><span>10. </span><span>Check status of vfchost logged_in.</span></span></p>
<p><span><span>11. </span><span>Create the area in the S / W SAN.</span></span></p>
<p><span><span>12. </span><span>Reset LPAR.</span></span></p>
<p><span><span>13. </span><span>Define the disks.</span></span></p>
<p><span><span>14. </span><span>The installation starts.</span></span></p>
<p>&nbsp;</p>
<p><b><span style="text-decoration: underline;">Detail Steps:</span></b></p>
<p>&nbsp;</p>
<p><b><span><span>1.</span></span></b><span><span> On the HMC create an AIX LPAR as ever. </span><span> On LHEA select IVE card, select a free port (which is not used by another LPAR).</span></span></p>
<pre>HMC</pre>
<pre>&gt; Systems Management</pre>
<pre>&gt; Servers</pre>
<pre>&gt; POWER Server</pre>
<pre>&gt; Configuration</pre>
<pre>&gt; Create Logical Partition</pre>
<pre>&gt; AIX or Linux</pre>
<pre>&gt; Complete steps Wizard</pre>
<p>&nbsp;</p>
<p>Note: It is advisable to set in advance the resources that were used to create the LPAR (CPU, memory, cards, etc..).<br />
<b><span><span>2.</span></span></b> At HMC go to vionodo1h, then Logial Dynamic Partitioning and create a virtual Fibre Channel adapter ( Virtual Fibre Channel Adapter ) with an identifier not used.</p>
<p>&nbsp;</p>
<pre>HMC</pre>
<pre>&gt; Vinodo1h</pre>
<pre>&gt; Dynamic Logial Partitioning</pre>
<pre>&gt; Virtual Adapter</pre>
<pre>&gt; Actions</pre>
<pre>&gt; Create Virtual Adapter</pre>
<pre>&gt; Fibre Channel Adapter</pre>
<pre>vionodo1h: ID 4 to 3 nimsuma with customer ID</pre>
<pre>vionodo2h: ID nimsuma 4 for 4 with customer ID</pre>
<p><b><span><span>3.</span></span></b> Then run VIOS cfgdev . If you run lsdev before and after, you should see a new device vfchost .</p>
<p>&nbsp;</p>
<p>vionod1h :<br />
$ lsdev | grep ^vfc<br />
vfchost0         Available   Virtual FC Server Adapter<br />
vfchost1         Available   Virtual FC Server Adapter<br />
vfchost2         Available   Virtual FC Server Adapter<br />
vfchost3         Available   Virtual FC Server Adapter<br />
vfchost4         Available   Virtual FC Server Adapter<br />
vfchost6         Available   Virtual FC Server Adapter<br />
vfchost7         Available   Virtual FC Server Adapter<br />
vfchost8         Available   Virtual FC Server Adapter<br />
$ cfgdev</p>
<p>$ lsdev | grep ^vfc<br />
vfchost0         Available   Virtual FC Server Adapter<br />
vfchost1         Available   Virtual FC Server Adapter<br />
vfchost2         Available   Virtual FC Server Adapter<br />
vfchost3         Available   Virtual FC Server Adapter<br />
vfchost4         Available   Virtual FC Server Adapter<br />
vfchost5         Available   Virtual FC Server Adapter &lt;&#8211;<br />
vfchost6         Available   Virtual FC Server Adapter<br />
vfchost7         Available   Virtual FC Server Adapter<br />
vfchost8         Available   Virtual FC Server Adapter</p>
<p>vionodo2h:<br />
$ lsdev | grep ^vfc<br />
vfchost0         Available   Virtual FC Server Adapter<br />
vfchost1         Available   Virtual FC Server Adapter<br />
vfchost3         Available   Virtual FC Server Adapter<br />
vfchost4         Available   Virtual FC Server Adapter<br />
vfchost6         Available   Virtual FC Server Adapter<br />
vfchost7         Available   Virtual FC Server Adapter<br />
vfchost9         Available   Virtual FC Server Adapter<br />
$ cfgdev</p>
<p>$ lsdev | grep ^vfc<br />
vfchost0         Available   Virtual FC Server Adapter<br />
vfchost1         Available   Virtual FC Server Adapter<br />
vfchost2         Available   Virtual FC Server Adapter &lt;&#8211;<br />
vfchost3         Available   Virtual FC Server Adapter<br />
vfchost4         Available   Virtual FC Server Adapter<br />
vfchost6         Available   Virtual FC Server Adapter<br />
vfchost7         Available   Virtual FC Server Adapter<br />
vfchost9         Available   Virtual FC Server Adapter<br />
<b><span><span>4.</span></span></b> On the profile <span><span>of the LPAR created in step 1, create a new virtual Fibre Channel adapter and generate one with the identifier and VIOS Part 2. </span><span>Check which is required for the LPAR start.</span></span></p>
<p>&nbsp;</p>
<pre>HMC</pre>
<pre>&gt; nimsuma</pre>
<pre>&gt; Configuration</pre>
<pre>&gt; Manage Profiles</pre>
<pre>&gt; Default</pre>
<pre>&gt; Virtual Adapters</pre>
<pre>&gt; Actions</pre>
<pre>&gt; Create Virtual Adapter</pre>
<pre>&gt; Fiber Channel Adapter</pre>
<pre></pre>
<pre>Adapter # 3 Adapter VIO vionodo1h ID 4. 
Adapter # 4, VIO vionodo2h ID adapter 4.</pre>
<pre>&gt; OK</pre>
<pre>&gt; Close</pre>
<p>&nbsp;</p>
<p><b><span><span>5.</span></span></b> Save the current profile settings as Default VIO server to keep it restarts if a VIOS.</p>
<pre>HMC</pre>
<pre>&gt; Vionodo1h</pre>
<pre>&gt; Configuration</pre>
<pre>&gt; Save Configuration Courrent</pre>
<pre>&gt; Acceptance 

</pre>
<pre>HMC</pre>
<pre>&gt; Vionodo2h</pre>
<pre>&gt; Configuration</pre>
<pre>&gt; Save Configuration Courrent</pre>
<pre>&gt; Acceptance</pre>
<p><b><span><span>6.</span></span></b> VIOS Map out in the command vfcmap , alternating fcs0 and fcs1 .</p>
<p>&nbsp;</p>
<pre><span style="font-size: small;">vionodo1h:</span></pre>
<pre><span style="font-size: small;">
<span><span>$ Vfcmap-vadapter vfchost5-fcp fcs1 </span></span>
<span><span>$ lsmap-NPIV-vadapter vfchost5 </span></span>
<span><span>Name Physloc ClntID ClntName ClntOS </span></span>
<span><span>------------------------------ -------------------------------------------- </span></span>
<span><span>vfchost5 U8233.E8B.065864P -V1-C4 3                 </span></span>

<span><span>Status: Not_logged_in </span></span>
<span><span>FC name: fcs1 FC loc code: U78A0.001.DNWK388-P1-C1-T2 </span></span>
<span><span>Ports logged in: 0 </span></span>
<span><span>Flags: 4 &lt;NOT_LOGGED&gt; </span></span>
<span><span>VFC client name: VFC client DRC:</span></span></span>

vionodo2h:</pre>
<pre><span style="font-size: small;">
<span><span>$ Vfcmap-vadapter vfchost2-fcp fcs0   </span></span>
<span><span>$ lsmap-NPIV-vadapter vfchost2 </span></span>
<span><span>Name Physloc ClntID ClntName ClntOS </span></span>
<span><span>------------------------------ -------------------------------------------- </span></span>
<span><span>vfchost2 U8233.E8B.065864P -V2-C4 3                 </span></span>

<span><span>Status: Not_logged_in </span></span>
<span><span>FC name: fcs0 FC loc code: U78A0.001.DNWK388-P1-C3-T1 </span></span>
<span><span>Ports logged in: 0 </span></span>
<span><span>Flags: 4 &lt;NOT_LOGGED&gt; </span></span>
<span><span>VFC client name: VFC client DRC:</span></span></span></pre>
<p><b><span><span>7.</span></span></b> Goto the WWPNs Storage corresponding to the LPAR created:</p>
<pre><span style="font-size: small;">HMC</span></pre>
<pre><span style="font-size: small;">&gt; Select the LAPR the first step</span></pre>
<pre><span style="font-size: small;">&gt; Configuration</span></pre>
<pre><span style="font-size: small;">&gt; Manage Profiles</span></pre>
<pre><span style="font-size: small;">&gt; Choose Default</span></pre>
<pre><span style="font-size: small;">&gt; Virtual Adapters</span></pre>
<pre><span style="font-size: small;">&gt; Client Fibre Channel vionodo1h</span></pre>
<pre><span style="font-size: small;">&gt; Actions</span></pre>
<pre><span style="font-size: small;">&gt; Properties</span></pre>
<pre><span style="font-size: small;"><span><span>&gt; WWPNs: </span></span><b><span><span>c050760376c40064</span></span></b></span></pre>
<p>&nbsp;</p>
<p>7.1 Repeat the same procedure goes for vionodo2h</p>
<p>&nbsp;</p>
<p><b><span><span>8.</span></span></b> Configure NIM to install AIX one.</p>
<pre><span style="font-size: small;"># Vi / etc / hosts -&gt; add the name of the LPAR of step 1 and IP available.</span></pre>
<pre><span style="font-size: small;"><span><span>10.1.4.253</span></span>       <span><span>nimsuma</span></span></span></pre>
<pre></pre>
<pre><span style="font-size: small;"># Smitty nim</span></pre>
<pre><span style="font-size: small;">&gt; Perform Nim Administration Tasks</span></pre>
<pre><span style="font-size: small;">&gt; Manage Machines</span></pre>
<pre><span style="font-size: small;">&gt; Define a Machine</span></pre>
<pre></pre>
<pre><span style="font-size: small;"><span><span># </span></span></span><span style="font-size: small;"><span><span>smitty nim</span></span></span></pre>
<pre><span style="font-size: small;">&gt; Perform Nim Administration Tasks</span></pre>
<pre><span style="font-size: small;">&gt; Define a Resource</span></pre>
<pre><span style="font-size: small;">&gt; spot</span></pre>
<pre></pre>
<pre><span style="font-size: small;"># Smitty nim_bosinst</span></pre>
<pre><span style="font-size: small;">&gt; Select the client we previously defined.</span></pre>
<pre><span style="font-size: small;">&gt; Select Installation Type: “spot - Install a SPOT copy”</span></pre>
<pre><span style="font-size: small;">&gt; Select the SPOT to use for the installation    </span></pre>
<pre><span style="font-size: small;">&gt; Set “ACCEPT new license agreements?” to yes</span></pre>
<pre><span style="font-size: small;">&gt; Set “Initiate reboot and installation now?” to no</span></pre>
<p>&nbsp;</p>
<p><b><span><span>9.</span></span></b> Start LPAR in SMS mode and configure the network with the same IP that is in the / etc / hosts on the NIM, in order to start (boot ) from him.</p>
<pre><span style="font-size: small;">A. Select 2 for setup remote IPL.</span></pre>
<pre><span style="font-size: small;">B. Select 1 for first ethernet.</span></pre>
<pre><span style="font-size: small;">C. Select 1 for IPV4.</span></pre>
<pre><span style="font-size: small;">D. Select 1 for bootp.</span></pre>
<pre><span style="font-size: small;">E. Select 1 for IP parameters.</span></pre>
<pre><span style="font-size: small;">1.  client: 10.1.4.253</span></pre>
<pre><span style="font-size: small;">2.  server: 10.1.4.254</span></pre>
<pre><span style="font-size: small;">3.  Gateway: 10.1.4.11</span></pre>
<pre><span style="font-size: small;">4.  Subnet: 255.255.255.0</span></pre>
<pre><span style="font-size: small;">F. Hit ESC.</span></pre>
<p><b><span><span>10.</span></span></b> Execute command on VIOS NPIV-vAdapter lsmap-vfchostX , to see that the state is logged_in.</p>
<p><b><span><span>11.</span></span></b> The Storage area should modify now the space for integrating the new LPAR.</p>
<pre><span style="text-decoration: underline;">In the Fabric</span></pre>
<pre>Aliases are created:</pre>
<pre><span style="font-size: small;">nimsuma_hba1</span></pre>
<pre><span style="font-size: small;">c0:50:76:03:76:c4:00:66</span></pre>
<pre><span style="font-size: small;">nimsuma_hba2</span></pre>
<pre><span style="font-size: small;">c0:50:76:03:76:c4:00:64</span></pre>
<pre></pre>
<pre>Zones are created:</pre>
<pre><span style="font-size: small;">v7000nimsumahba1</span></pre>
<pre><span style="font-size: small;">nimsuma_hba1; stg_v70001; stg_v70002; stg_v70003; stg_v70004</span></pre>
<pre></pre>
<pre><span style="font-size: small;">v7000nimsumahba2</span></pre>
<pre><span style="font-size: small;">nimsuma_hba2; stg_v70001; stg_v70002; stg_v70003; stg_v70004</span></pre>
<p>&nbsp;</p>
<p><b><span><span>12.</span></span></b> Reset LPAR.</p>
<p>&nbsp;</p>
<p><b><span><span>13.</span></span></b><span><span> At this time &#8220;We&#8221; visible from the disk enclosure. </span><span>Storage coach proceeds to perform the necessary definitions in the storage unit.</span></span></p>
<p>&nbsp;</p>
<pre><span style="text-decoration: underline;">In V7000</span></pre>
<pre>It creates the host:</pre>
<pre><span style="font-size: small;">nimsuma </span></pre>
<pre><span style="font-size: small;">c0:50:76:03:76:c4:00:66</span></pre>
<pre><span style="font-size: small;">c0:50:76:03:76:c4:00:64</span></pre>
<pre></pre>
<pre>Volumes are created:</pre>
<pre><span style="font-size: small;">nimsuma_rootvg</span></pre>
<pre><span style="font-size: small;">20 GB - NL_SAS</span></pre>
<pre><span style="font-size: small;">nimsuma_datos</span></pre>
<pre><span style="font-size: small;">50 GB - NL_SAS</span></pre>
<p><b><span><span>14.</span></span></b> Starts installation.</p>
<p>&nbsp;</p>
<pre><span style="font-size: small;">A. Select 1 for boot device.</span></pre>
<pre><span style="font-size: small;">B. Select 6 for network.</span></pre>
<pre><span style="font-size: small;">C. Select 1 for bootp.</span></pre>
<pre><span style="font-size: small;">D. Select 1 for first ethernet.</span></pre>
<pre><span style="font-size: small;"><span><span>E. </span><span>Select 2 for normal boot mode.</span></span></span></pre>
<pre><span style="font-size: small;">F. Select 1 for yes I want to exit tftp should now start up.</span></pre>
<pre><span style="font-size: small;">G. After around 30,000 packets the console prompt should appear as follows:</span></pre>
<pre><span style="font-size: small;"> </span></pre>
<pre><span style="font-size: small;">Select 1 for English during install.</span></pre>
<p>&nbsp;</p>
<p><b><span style="text-decoration: underline;">Notes:</span></b></p>
<p>The LPAR created in this example the call nimsuma . To implement NPIV on POWER environment is necessary to use VIO Server, in this case our VIOS called vionodo1h and vionodo2h <span><span>(redundant). </span><span>The Storage used was an IBM SW V7000, in which we created two LUNs, one for the installation called </span></span>nimsuma_rootvg and one for data call nimsuma_datos .</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2846</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logging NPIV WWPN into SAN switch before AIX installation</title>
		<link>http://www.aixmind.com/?p=2842</link>
		<comments>http://www.aixmind.com/?p=2842#comments</comments>
		<pubDate>Tue, 23 Apr 2013 14:04:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[chnportlogin]]></category>
		<category><![CDATA[lsnportlogin]]></category>
		<category><![CDATA[NPIV]]></category>
		<category><![CDATA[SAN Switch]]></category>
		<category><![CDATA[WWPN]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2842</guid>
		<description><![CDATA[Question: How can I log NPIV WWPN into SAN switch before AIX installation on the VIO LPAR that is using NPIV LUN boot? &#160; Answer: &#160; There are a few methods you can use: &#160; Method 1: Allocate the NIM lpp_source and SPOT resources to the new LPAR on NIM server. Start up the new [...]]]></description>
				<content:encoded><![CDATA[<h2>Question:</h2>
<h2></h2>
<p>How can I log NPIV WWPN into SAN switch before AIX installation on the VIO LPAR that is using NPIV LUN boot?</p>
<p>&nbsp;</p>
<h2>Answer:</h2>
<p>&nbsp;</p>
<p>There are a few methods you can use:</p>
<p>&nbsp;</p>
<h3>Method 1:</h3>
<h3></h3>
<p>Allocate the NIM lpp_source and SPOT resources to the new LPAR on NIM server.</p>
<p>Start up the new LPAR and boot it from network</p>
<p>When it reaches the installation menu, the WWPNs of virtual adapters will login into SAN switch.</p>
<p>&nbsp;</p>
<h3>Method 2:</h3>
<p>&nbsp;</p>
<p>Boot the LPAR, press 8 to get into firmware mode.</p>
<pre><strong>&gt; ioinfo</strong></pre>
<p>Select 6 for FC Adapter<br />
Then Select the HBA you want, then run the list devices, which will return you login &amp; Devices if any</p>
<p><strong>Note: You can only login one virtual adapter at one time.</strong></p>
<h3>Method 3:</h3>
<h4>chnportlogin and lsnportlogin &#8211; Login in Virtual Fibre Channel adapters for NPIV client LPARs</h4>
<p>There are two new HMC (V7.7.3.0) commands that can force a client Virtual Fibre Channel adapter to log into a SAN. This should make the life of the AIX and SAN administrator easier, as they will no longer need to install AIX in order for the new VFC adapters to log into the SAN. Although there was an unsupported method* for doing this already (see links below). Nor will the SAN admins need to “blind” zone the WWPNs.</p>
<h2> There was some indication of this in the latest VIOS FP readme:</h2>
<p>&nbsp;</p>
<p><a href="https://www-304.ibm.com/support/docview.wss?rs=0&amp;uid=isg400000693">https://www-304.ibm.com/support/docview.wss?rs=0&amp;uid=isg400000693</a></p>
<p>&nbsp;</p>
<ul>
<li>Enabled SAN login from VIOS</li>
</ul>
<p>And there was this:</p>
<p>IZ95569: ENABLE SAN LOGIN FROM VIOS FOR IMPROVED UABILITY</p>
<p><a href="https://www-304.ibm.com/support/docview.wss?uid=isg1IZ95569">https://www-304.ibm.com/support/docview.wss?uid=isg1IZ95569</a></p>
<p>&nbsp;</p>
<p><b>Problem summary</b></p>
<ul>
<li>Customer will be able to instruct the VIOS to login to the SAN</li>
<li>for a given WWPN on a given virtual adapter to allow the</li>
<li>customer to see the WWPN in SAN management tools and easing</li>
<li>the task of configuring new NPIV client</li>
<li>partitions.</li>
<li></li>
</ul>
<p><b>Problem conclusion</b></p>
<ul>
<li>add commands to VIOS manager interface to allow the HMC to</li>
<li>login, logout and query virtual adapters.</li>
</ul>
<p>&nbsp;</p>
<p>And the manpage of these commands:</p>
<p>&nbsp;</p>
<p>chnportlogin:  <a href="http://pic.dhe.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7edm/chnportlogin.html" target="_blank">http://pic.dhe.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7edm/chnportlogin.html</a></p>
<p>lsnportlogin:   <a href="http://pic.dhe.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7edm/lsnportlogin.html" target="_blank">http://pic.dhe.ibm.com/infocenter/powersys/v3r1m5/index.jsp?topic=/p7edm/lsnportlogin.html</a><br />
The new lsnportlogin and chnportlogin commands on the 7.730 HMC provide the ability to utilize the new function in the VIOS. From the Readme:</p>
<p>Added the <b>chnportlogin</b> and <b>lsnportlogin</b> commands.</p>
<p>&nbsp;</p>
<p>1.  The <b>chnportlogin</b> command allows you to perform N Port login and logout operations for virtual fibre channel client adapters that are configured in a partition or a partition profile. Use this command to help you in zoning WWPNs on a Storage Area Network (SAN). A login operation activates all inactive WWPNs, including the second WWPN in the pair assigned to each virtual fibre channel client adapter. This feature is particularly useful for Logical Partition Migration. A logout operation deactivates all WWPNs not in use. A successful login of a virtual fibre channel adapter requires that the corresponding virtual fiber channel server adapter must exist and that it must be mapped.</p>
<p>&nbsp;</p>
<p>2.  The <b>lsnportlogin</b> command also allows you to list WWPN login status information for virtual fibre channel client adapters configured in partitions or partition profiles.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Here’s an example of using the lsnportlogin command on one of my systems:</p>
<p>hscroot@HMC1:~&gt;  lsnportlogin -m  770-frame-1 &#8211;filter &#8220;profile_names=normal&#8221;</p>
<p>lpar_name=nim1,lpar_id=3,profile_name=normal,slot_num=32,wwpn=c060760405f0000c,wwpn_status=0</p>
<p>lpar_name=nim1,lpar_id=3,profile_name=normal,slot_num=32,wwpn=c060760405f0000d,wwpn_status=0</p>
<p>lpar_name=nim1,lpar_id=3,profile_name=normal,slot_num=33,wwpn=c060760405f0000e,wwpn_status=0</p>
<p>lpar_name=nim1,lpar_id=3,profile_name=normal,slot_num=33,wwpn=c060760405f0000f,wwpn_status=0</p>
<p>lpar_name=nim1,lpar_id=3,profile_name=normal,slot_num=30,wwpn=c060760405f00000,wwpn_status=0</p>
<p>lpar_name=nim1,lpar_id=3,profile_name=normal,slot_num=30,wwpn=c060760405f00001,wwpn_status=0</p>
<p>lpar_name=nim1,lpar_id=3,profile_name=normal,slot_num=31,wwpn=c060760405f00002,wwpn_status=0</p>
<p>lpar_name=nim1,lpar_id=3,profile_name=normal,slot_num=31,wwpn=c060760405f00003,wwpn_status=0</p>
<p>lpar_name=aix01adm,lpar_id=4,profile_name=normal,slot_num=32,wwpn=c060760405f00004,wwpn_status=0</p>
<p>lpar_name=aix01adm,lpar_id=4,profile_name=normal,slot_num=32,wwpn=c060760405f00005,wwpn_status=0</p>
<p>lpar_name=aix01adm,lpar_id=4,profile_name=normal,slot_num=33,wwpn=c060760405f00006,wwpn_status=0</p>
<p>lpar_name=aix01adm,lpar_id=4,profile_name=normal,slot_num=33,wwpn=c060760405f00007,wwpn_status=0</p>
<p>lpar_name=aix01adm,lpar_id=4,profile_name=normal,slot_num=30,wwpn=c060760405f00008,wwpn_status=0</p>
<p>lpar_name=aix01adm,lpar_id=4,profile_name=normal,slot_num=30,wwpn=c060760405f00009,wwpn_status=0</p>
<p>lpar_name=aix01adm,lpar_id=4,profile_name=normal,slot_num=31,wwpn=c060760405f0000a,wwpn_status=0</p>
<p>lpar_name=aix01adm,lpar_id=4,profile_name=normal,slot_num=31,wwpn=c060760405f0000b,wwpn_status=0</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Descriptions of selected command attributes:</p>
<p>wwpn_status</p>
<p>The WWPN status.  Possible values are:</p>
<p>0 &#8211; WWPN is not activated</p>
<p>1 &#8211; WWPN is activated</p>
<p>2 &#8211; WWPN status is unknown</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2842</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Live Partition Mobility fails with error &#8211; HSCLA27C</title>
		<link>http://www.aixmind.com/?p=2839</link>
		<comments>http://www.aixmind.com/?p=2839#comments</comments>
		<pubDate>Mon, 22 Apr 2013 20:51:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[HSCLA27C]]></category>
		<category><![CDATA[Live Partition Mobility]]></category>
		<category><![CDATA[LPM]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2839</guid>
		<description><![CDATA[Problem(Abstract) I am trying to perform Live Partition Mobility on my LPAR and it fails with HSCLA27C error on my HMC. Symptom HSCLA27C The operation to get the physical device location for adapter U9179.MHB.10X9X8X-V1-C35 on the virtual I/O server partition vio-01a has failed. The partition command is: migmgr -f get_adapter -t vscsi -s U9179.MHB.10X9X8X-V1-C35 -w [...]]]></description>
				<content:encoded><![CDATA[<h2>Problem(Abstract)</h2>
<p>I am trying to perform Live Partition Mobility on my LPAR and it fails with HSCLA27C error on my HMC.</p>
<h2>Symptom</h2>
<div>
<p>HSCLA27C The operation to get the physical device location for adapter U9179.MHB.10X9X8X-V1-C35 on the virtual I/O server partition vio-01a has failed.</p>
<p>The partition command is:</p>
<p>migmgr -f get_adapter -t vscsi -s U9179.MHB.10X9X8X-V1-C35 -w 13857705810988171408 -W 13857705810988171409 -d 0</p>
<p>The partition standard error is: child process returned error</p>
<p>HSCLA27C The operation to get the physical device location for adapter<br />
U9179.MHB.10X9X8X-V2-C235 on the virtual I/O server partition vio-01b has failed.</p>
<p>The partition command is:</p>
<p>migmgr -f get_adapter -t vscsi -s U9179.MHB.10X9X8X-V2-C235 -w 13857705810988171414 -W 13857705810988171415 -d 0</p>
<p>The partition standard error is: child process returned error</p>
</div>
<h2>Cause</h2>
<div>
<p>Here are the most common causes for this error code.</p>
</div>
<p>&nbsp;</p>
<h2>Environment</h2>
<div>
<p>The environment is usually using NPIV adapters.</p>
</div>
<p>&nbsp;</p>
<h2>Diagnosing the problem</h2>
<div>
<p>Checks for HSCLA27C using NPIV adapters.<br />
1. All Adapters on VIO server profile properties tab must be created in a &#8220;desired&#8221; state (no). If set in a &#8220;required&#8221; state (yes) LPM will fail with HSCLA Error code.</p>
<p>2. ALL adapters assigned to the mobile LPAR MUST be logged in or LPM will fail with HSCLA error code. All vfchost adapters must be mapped and logged in or removed.</p>
<p>3. LPM requires that all fcs ports that are mapped to the mobile LPAR MUST have SAN a storage device presented to the fcs port.</p>
<p>4. Multiple duplicate fcs adapters cannot be virtualized to the same mobile LPAR;</p>
<ul>Incorrect: fcs0 virtualized through vfchost0 and fcs0 virtualized through vfchost1 to same mobile LPAR.</ul>
<ul>Correct: fcs0 virtualized through vfchost0 and fcs1 virtualized through vfchost1.</ul>
<p>5. Check the VIO server and mobile LPAR for any full file systems:</p>
<ul># df -k</ul>
<p>6. Check vendor specific disks for NPIV enablement. Example;</p>
<ul>For Hitachi HDLM Tunables the HDLM ODM setting required is:</ul>
<ul>
<ul># /usr/D*/bin/dlmodmset -o</ul>
</ul>
<ul>
<ul>Lun Reset : on</ul>
</ul>
<ul>
<ul>Online(E) IO Block : off</ul>
</ul>
<p><b>NPIV Option : off </b></p>
<ul>KAPL10800-I The dlmodmset utility completed normally.</ul>
<ul>
<ul># /usr/D*/bin/dlmodmset -v on</ul>
</ul>
<ul>
<ul>KAPL10805-I The setup of the HDLM execution environment ODM will be</ul>
</ul>
<ul>changed. NPIV Option = on. Is this OK? [y/n]:y</ul>
<ul>
<ul>KAPL10800-I The dlmodmset utility completed normally.</ul>
</ul>
<ul>
<ul>#</ul>
</ul>
<ul>
<ul># /usr/D*/bin/dlmodmset -o</ul>
</ul>
<ul>
<ul>Lun Reset : on</ul>
</ul>
<ul>
<ul>Online(E) IO Block : off</ul>
</ul>
<p><b>NPIV Option : on </b><b> </b></p>
<ul>KAPL10800-I The dlmodmset utility completed normally.</ul>
<ul>This should be set before the devices are configured.</ul>
<p>7. If the customer uses updateios without the -install flag or tries to do the upgrade via<br />
alt_root_vg -bundle update_all option it will update filesets that are already installed. This means new filesets that are not forced in via prerequisites will not be installed.</p>
<p>The most common call is LPM doesn&#8217;t work. With error;</p>
<ul>
<ul>HSCLA27C The operation to get the physical device location for adapter U8203.E4A.10E1B31-V2-C23 on the virtual I/O server partition abcxyz has failed.</ul>
</ul>
<ul>
<ul>The partition command is: migmgr -f get_adapter -t vscsi -s</ul>
</ul>
<ul>
<ul>U8203.E4A.10E1B31-V2-C23 -d 0 The partition standard error is: child process returned error</ul>
</ul>
<ul>
<ul>At higher debug levels or if you run the failing command at the VIOS command line you will see an error trying to load libvlog.a</ul>
</ul>
<ul>
<ul>Running method &#8216;/usr/lib/methods/mig_vscsi&#8217;</ul>
</ul>
<ul>
<ul>exec(): 0509-036 Cannot load program migmgr because of the following errors:</ul>
</ul>
<ul>
<ul>0509-150 Dependent module libvlog.a(shr.o) could not be loaded.</ul>
</ul>
<ul>
<ul>0509-022 Cannot load module libvlog.a(shr.o).</ul>
</ul>
<ul>
<ul>0509-026 System error: A file or directory in the path name does not exist.</ul>
</ul>
<ul>
<ul>These filesets are what did not get installed when tested locally.</ul>
</ul>
<ul>
<ul>ios.database.rte 6.1.7.0 # VIOS DB</ul>
</ul>
<ul>
<ul>ios.svm.rte 6.1.7.0 # Secure Virtual Machine</ul>
</ul>
<ul>
<ul>ios.vlog.rte 6.1.7.0 # Virtual Log Device Software</ul>
</ul>
<ul>
<ul>ios.vnet 6.1.7.0 # Virtual Network Management</ul>
</ul>
<ul>
<ul>pool.basic.rte 6.1.7.0 # Virtual Server Storage Subsy&#8230;</ul>
</ul>
<ul>
<ul>pool.msg.en_US.basic.rte 6.1.7.0 # Virtual Server Storage Subsy&#8230;</ul>
</ul>
<ul>
<ul>printers.hplj-4250.rte 6.1.7.0 # Hewlett-Packard LaserJet 4250</ul>
</ul>
<ul>
<ul>printers.hplj-8060.rte 6.1.7.0 # Hewlett-Packard Color LaserJ..</ul>
</ul>
<ul>
<ul>LOCAL WORKAROUND:</ul>
</ul>
<ul>
<ul>$ updateios -commit</ul>
</ul>
<ul>
<ul>$ updateios -dev &lt;fileset source&gt; -install -accept</ul>
</ul>
<ul>
<ul>A reboot may be necessary to get everything started correctly</ul>
</ul>
<ul>Check your /home/padmin/install.log and # lppchk -v output for these missing files to see if this may be the real issue.</ul>
<p>8. If all above fail, this is a zoning issue in which the second WWPN was not manually zoned correctly or failed to login. Both of the WWPNs from the virtual fiber channel adapter in the client LPAR&#8217;s profile properties MUST be zoned through the same VSAN / NODE / FABRIC for LPM. Please work with San admin to resolve issue.</p>
<p>Please use command below from HMC to assist San Admin troubleshoot WWPN login issues.</p>
<p><a href="http://pic.dhe.ibm.com/infocenter/powersys/v3r1m5/topic/p7edm/chnportlogin.html">http://pic.dhe.ibm.com/infocenter/powersys/v3r1m5/topic/p7edm/chnportlogin.html</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2839</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Copy Files to rootvg in Service Mode</title>
		<link>http://www.aixmind.com/?p=2835</link>
		<comments>http://www.aixmind.com/?p=2835#comments</comments>
		<pubDate>Mon, 22 Apr 2013 20:47:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[copy file]]></category>
		<category><![CDATA[rootvg]]></category>
		<category><![CDATA[Service-Mode]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2835</guid>
		<description><![CDATA[Question This document describes how you can copy files to a rootvg filesystem in Service Mode for situations where AIX or the Virtual I/O Server is failing to boot. Applies to VIOS 2.1 and above. Cause AIX/VIOS is failing to boot and need to copy files to recover from normal boot failure Answer &#160; Method [...]]]></description>
				<content:encoded><![CDATA[<h2>Question</h2>
<p>This document describes how you can copy files to a rootvg filesystem in Service Mode for situations where AIX or the Virtual I/O Server is failing to boot.<br />
Applies to VIOS 2.1 and above.</p>
<h2>Cause</h2>
<div>
<p>AIX/VIOS is failing to boot and need to copy files to recover from normal boot failure</p>
</div>
<h2>Answer</h2>
<div>
<p>&nbsp;</p>
<p><b>Method 1 &#8211; If you booted from Base Install Media</b></p>
<p>1. Copy the file(s) to PC and burn it on CD</p>
<p>2. Unmount the install media</p>
<ul>unmount /dev/cd0</ul>
<p>3. Replace Install Media with the burned CD.4. Mount the burned CD</p>
<ul>mount -o ro -v cdrfs /dev/cd0 /mnt</ul>
<p>5. Copy the file(s) to the directory and change permissions, if necessary. i.e:</p>
<ul>
<ul>cd /mnt</ul>
</ul>
<p>ls -la =&gt; -r-xr-xr-x root system 1817749 Nov 2008 ioscli</p>
<p>cp -p ioscli /usr/ios/cli =&gt; where -p will preserve the original file permissions</p>
<p>chmod 4555 ioscli</p>
<p>ls -la =&gt; -r-sr-xr-x root system 1817749 Nov 2008 ioscli</p>
<p><b>Method 2 &#8211; If you booted via NIM</b>You can use some of the TCP functions to copy the file(s) over.</p>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2835</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting a Hung Process or Command on PowerVM Virtual I/O Server</title>
		<link>http://www.aixmind.com/?p=2832</link>
		<comments>http://www.aixmind.com/?p=2832#comments</comments>
		<pubDate>Mon, 22 Apr 2013 20:42:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[hung]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[VIOS]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2832</guid>
		<description><![CDATA[Problem(Abstract) This technote describes how to troubleshoot a hung process or command on PowerVM Virtual I/O Server before resorting to potentially having to force a system dump. Environment This applies to PowerVM Virtual I/O Server version 1.5 and 2.x Diagnosing the problem See NOTE 1 in step 3 to try determining if the command in [...]]]></description>
				<content:encoded><![CDATA[<h2>Problem(Abstract)</h2>
<p>This technote describes how to troubleshoot a hung process or command on PowerVM Virtual I/O Server before resorting to potentially having to force a system dump.</p>
<h2>Environment</h2>
<div>
<p>This applies to PowerVM Virtual I/O Server version 1.5 and 2.x</p>
</div>
<h2>Diagnosing the problem</h2>
<div>
<p>See NOTE 1 in step 3 to try determining if the command in questions is actually hung as opposed to experiencing a delayed.</p>
</div>
<h2>Resolving the problem</h2>
<div>
<p>1. Download pdump.sh from <a href="ftp://ftp.software.ibm.com/aix/tools/debug/">ftp://ftp.software.ibm.com/aix/tools/debug/</a> and ftp (binary) to the VIOS as padmin (by default, you will be dropped in /home/padmin directory).</p>
<p>2. Login to the VIOS as padmin and change permissions.<br />
<b>$ chmod 755 padmin.sh</b><br />
3. Go to the root shell and find the process ID (PID) for the hung process or command.<br />
<b>$ oem_setup_env</b><b># ps -ef |grep &lt;hung command&gt;</b> =&gt;Get the PID. It is the number after the user name</p>
<p>The following example uses the padmin snap command as the hung command, and the respective PID is 11993246</p>
<p># ps -ef|grep snap<br />
root 8060958 8585354 0 13:30:17 pts/2 0:00 grep snap<br />
padmin 9830500 11993246 0 13:30:12 pts/3 0:00 /bin/ksh /usr/sbin/snap -r<br />
padmin <b>11993246 </b>9109512 0 13:30:12 pts/3 0:00 ioscli snap</p>
<p><b>NOTE 1</b></p>
<ul>
<ul>:</ul>
</ul>
<ul>
<ul>Sometimes a command may be mistakenly considered to be hung when in reality, it may just be taking some time to come back. This may be expected on VIO environments with large storage and/or virtual configuration. Run proctree command to determine if the &#8220;hung&#8221; PID spawned any child processes. If so, get the PID of the youngest child process (the last one in the tree). In the following example, it is 7798810.</ul>
</ul>
<p># proctree 11993246<br />
2228366 /usr/sbin/srcmstr<br />
9437368 /usr/sbin/inetd<br />
10092564 telnetd -a<br />
9109512 -rksh<br />
11993246 ioscli snap<br />
9830502 /bin/ksh /usr/sbin/snap -a -c<br />
8978460 /bin/sh /usr/lib/ras/snapscripts/svCollect all<br />
8061118 /bin/sh /usr/lib/ras/snapscripts/svCollect all<br />
<b>7274712 </b>kdb -script<br />
#</p>
<p>Wait a few minutes, then re-ran the command (you can do that a few times) and see if the youngest child process (7274712, in this case) changes. If it does, then, more than likely the command is still running, and not hung.<br />
4. If the command is indeed hung, run the pdump.sh tool against the last child PID listed at the bottom of the proctree output (7274712, in this example)<br />
<b># ./pdump.sh -d &lt;last child PID&gt; </b></p>
<ul>
<ul>==&gt;will create output file</ul>
</ul>
<p><i>pdump.&lt;hung command&gt;.&lt;PID&gt;.&lt;date&gt;.out </i></p>
<ul>
<ul>in the current working directory</ul>
</ul>
<p>Example:<br />
# ./pdump.sh -d 7274712</p>
<ul>
<ul>
<ul>Getting general environment data &#8230;</ul>
</ul>
</ul>
<ul>
<ul>
<ul>Dumping process information from kdb &#8230;</ul>
</ul>
</ul>
<ul>
<ul>
<ul>dumping process slot 2928 &#8230;</ul>
</ul>
</ul>
<ul>
<ul>
<ul>Error getting thread list. Skip other kdb commands.</ul>
</ul>
</ul>
<ul>
<ul>
<ul>Dumping process information with proc tools &#8230;</ul>
</ul>
</ul>
<ul>
<ul>
<ul>Dumping process information from dbx &#8230;</ul>
</ul>
</ul>
<ul>
<ul>
<ul>dumping tid 1 &#8230;</ul>
</ul>
</ul>
<ul>
<ul>
<ul>listing object files &#8230;</ul>
</ul>
</ul>
<ul>
<ul>
<ul>Done.</ul>
</ul>
</ul>
<ul>
<ul>
<ul>Output file is pdump.ioscli.11993246.11Oct2010-14.24.54.out</ul>
</ul>
</ul>
<ul>
<ul># ls -la pdump.ioscli.7274712.11Oct2010-14.24.54.out</ul>
</ul>
<ul>
<ul>-rw-r&#8211;r&#8211; 1 root staff 85269 Oct 11 14:25 pdump.ioscli.7274712.11Oct2010-14.24.54.out</ul>
</ul>
<ul>#</ul>
<p>5. Rename the file to reflect <b>your PMR</b> and send the testcase. Example:<br />
<b># mv &lt;original_filename&gt;.out 99999.888.000.&lt;original_filename&gt;.out </b></p>
<ul>
<ul>where</ul>
</ul>
<ul>
<ul>- 99999 is your PMR#</ul>
</ul>
<ul>
<ul>- 888 is your Branch#</ul>
</ul>
<ul>- 000 is USA country code</ul>
<p>-rw-r&#8211;r&#8211; 1 root staff 85269 Oct 11 14:25 99999.888.000.pdump.ioscli.7274712.11Oct2010-14.24.54.out</p>
<p>6. Where to send the testcase</p>
<ul>
<ul># ftp testcase.software.ibm.com</ul>
</ul>
<ul>
<ul>login: anonymous</ul>
</ul>
<ul>
<ul>password: &lt;your email address&gt;</ul>
</ul>
<ul>
<ul>ftp&gt; cd /toibm/aix</ul>
</ul>
<ul>
<ul>ftp&gt; prompt</ul>
</ul>
<ul>
<ul>ftp&gt; binary</ul>
</ul>
<ul>
<ul>ftp&gt; put &lt;filename&gt;</ul>
</ul>
<ul>
<ul>ftp&gt; quit</ul>
</ul>
</div>
<pre></pre>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2832</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capturing truss data for padmin CLI</title>
		<link>http://www.aixmind.com/?p=2828</link>
		<comments>http://www.aixmind.com/?p=2828#comments</comments>
		<pubDate>Mon, 22 Apr 2013 20:40:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[padmin]]></category>
		<category><![CDATA[truss]]></category>
		<category><![CDATA[VIOS]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2828</guid>
		<description><![CDATA[Question This technote describes how to capture truss data to further investigate failures of padmin CLI on a Virtual I/O Server partition at the request of VIOS SupportLine. This applies to VIOS 2.x. Answer Login to VIOS as padmin $ oem_setup_env # mkdir /tmp/testcase # script -a /tmp/testcase/&#60;PMR#.Branch#&#62;.out # uname -L # /usr/ios/cli/ioscli ioslevel Run [...]]]></description>
				<content:encoded><![CDATA[<h2>Question</h2>
<p>This technote describes how to capture truss data to further investigate failures of padmin CLI on a Virtual I/O Server partition at the request of VIOS SupportLine.<br />
This applies to VIOS 2.x.</p>
<h2>Answer</h2>
<div>
<p><b>Login to VIOS as padmin</b></p>
<p>$ oem_setup_env<br />
# mkdir /tmp/testcase<br />
# script -a /tmp/testcase/&lt;PMR#.Branch#&gt;.out<br />
# uname -L<br />
# /usr/ios/cli/ioscli ioslevel</p>
<p>Run offending padmin command to reproduce error as follows<br />
# truss -fealo truss.out /usr/ios/cli/ioscli &lt;failing_padmin_command&gt;</p>
<p>For example, if the offending command is ioslevel, the syntax would be<br />
# truss -fealo truss.out /usr/ios/cli/ioscli ioslevel</p>
<p># ls -la truss.out =&gt;ensure the file has a valid (non-zero) size<br />
# su &#8211; padmin<br />
$ snap =&gt;this will create /home/padmin/snap.pax.Z<br />
$ exit (padmin)<br />
# exit (script)<br />
# cp /home/padmin/snap.pax.Z /tmp/testcase<br />
# pax -wf &lt;PMR#.Branch#.CoutryCode#&gt;.pax ./*</p>
<p><b>Where to send the file</b></p>
<p>ftp testcase.software.ibm.com<br />
login: anonymous<br />
password: &lt;your email address&gt;<br />
ftp&gt; cd /toibm/aix<br />
ftp&gt; prompt<br />
ftp&gt; binary<br />
ftp&gt; put &lt;PMR#.Branch#.CoutryCode#&gt;.pax<br />
ftp&gt; quit</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2828</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Live Partition Mobility fails with error &#8211; HSCLA24E</title>
		<link>http://www.aixmind.com/?p=2825</link>
		<comments>http://www.aixmind.com/?p=2825#comments</comments>
		<pubDate>Mon, 22 Apr 2013 20:29:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[HSCLA24E]]></category>
		<category><![CDATA[Live Partition]]></category>
		<category><![CDATA[LPM]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2825</guid>
		<description><![CDATA[Problem(Abstract) I am trying to perform Live Partition Mobility on my LPAR and it fails with HSCLA24E error on my HMC. Symptom HSCLA24E The migrating partition&#8217;s virtual SCSI adapter 5 cannot be hosted by the existing virtual I/O server (VIOS) partitions on the destination managed system. To migrate the partition, set up the necessary VIOS [...]]]></description>
				<content:encoded><![CDATA[<h2>Problem(Abstract)</h2>
<p>I am trying to perform Live Partition Mobility on my LPAR and it fails with HSCLA24E error on my HMC.</p>
<h2>Symptom</h2>
<div>
<p>HSCLA24E The migrating partition&#8217;s virtual SCSI adapter 5 cannot be</p>
<p>hosted by the existing virtual I/O server (VIOS) partitions on the<br />
destination managed system. To migrate the partition, set up the<br />
necessary VIOS hosts on the destination managed system, then try the<br />
operation again.</p>
<p>HSCLA24E The migrating partition&#8217;s virtual SCSI adapter 4 cannot be<br />
hosted by the existing virtual I/O server (VIOS) partitions on the<br />
destination managed system. To migrate the partition, set up the<br />
necessary VIOS hosts on the destination managed system, then try the<br />
operation again.</p>
</div>
<h2>Cause</h2>
<div>
<p>Here are the most common causes for this error code.</p>
</div>
<p>&nbsp;</p>
<h2>Environment</h2>
<div>
<p>The environment is usually using VSCSI adapters.</p>
</div>
<p>&nbsp;</p>
<h2>Diagnosing the problem</h2>
<div>
<p>Checks for HSCLA24E using VSCSI adapters.<br />
1. Common configuration checks to make is to ensure that none of the<br />
virtual scsi adapters are set to &#8220;Any client partition can connect&#8221; and<br />
that the adapters are NOT set to required.</p>
<p>2. Check if the max_transfer sizes of the disks served to these vhosts<br />
adapters are the same on source and destination</p>
<p>(lsdev -dev hdiskX -attr)</p>
<p>3. Make sure that the disks on the source and destination are configured<br />
with reserve_policy = no. If this attribute changed while the disks are<br />
mapped or part of a volume group, a reboot of the VIO server will be<br />
required in order for the attribute change to take place on the device.</p>
<p>($ chdev -dev hdiskX -attr reserve_policy=no_reserve)</p>
<p>4. Check that the destination VIO servers are able to see the same<br />
storage that the customer will need.</p>
<p>(Typically this can be verified by matching up the PVIDs on source and<br />
destination)</p>
<p>5. The same VTD name on a source VIOS cannot be used on the destination<br />
VIOS.</p>
<p>(Use lsmap to make sure the VTDs are unique)</p>
<p>6. Make sure that any storage device drivers or multipathing software on<br />
the VIO servers are the same version and level, as software version<br />
mismatch may cause inconsistencies.</p>
</div>
<p>&nbsp;</p>
<h2>Resolving the problem</h2>
<div>
<p>Make any recommended changes for any of the possible problems in the list above.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2825</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerVM NPIV / IBM Switch Configuration</title>
		<link>http://www.aixmind.com/?p=2822</link>
		<comments>http://www.aixmind.com/?p=2822#comments</comments>
		<pubDate>Mon, 22 Apr 2013 20:02:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[NPIV]]></category>
		<category><![CDATA[SAN Switch]]></category>
		<category><![CDATA[WWPN]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2822</guid>
		<description><![CDATA[Problem(Abstract) What is NPIV? NPIV is an industry standard technology that provides the capability to assign a physical Fibre Channel adapter to multiple unique world wide port names (WWPN). To access physical storage from a SAN, the physical storage is mapped to logical units (LUNs) and the LUNs are mapped to the ports of physical [...]]]></description>
				<content:encoded><![CDATA[<h2>Problem(Abstract)</h2>
<p>What is NPIV?</p>
<p>NPIV is an industry standard technology that provides the capability to assign a<br />
physical Fibre Channel adapter to multiple unique world wide port names<br />
(WWPN). To access physical storage from a SAN, the physical storage is<br />
mapped to logical units (LUNs) and the LUNs are mapped to the ports of physical<br />
Fibre Channel adapters. Then the Virtual I/O Server uses the maps to connect<br />
the LUNs to the virtual Fibre Channel adapter of the virtual I/O client.</p>
<h2>Symptom</h2>
<div>
<p><b>How to configure NPIV</b></p>
</div>
<p>&nbsp;</p>
<h2>Environment</h2>
<div>
<p><b>Minimum NPIV Requirements</b></p>
</div>
<h2>Diagnosing the problem</h2>
<div>
<p>&nbsp;</p>
<p>You must meet the following requirements to set up and use NPIV.</p>
<p>1. Hardware</p>
<p>Any POWER6-based system or higher</p>
<p><b>Note: </b>IBM intends to support N_Port ID Virtualization (NPIV) on the<br />
POWER6 processor-based Power 595, BladeCenter JS12, and<br />
BladeCenter JS22 in 2009</p>
<p>Install a minimum System Firmware level of EL340_039 for the IBM Power<br />
520 and Power 550, and EM340_036 for the IBM Power 560 and IBM<br />
Power 570</p>
<p>Minimum of one 8 Gigabit PCI Express Dual Port Fibre Channel Adapter<br />
(Feature Code 5735)<br />
Check the latest available firmware for the adapter at:<br />
<a href="http://www.ibm.com/support/us/en">http://www.ibm.com/support/us/en</a></p>
<p>Select <b>Power </b>at the support type, then go to <b>Firmware updates</b>.</p>
<p>NPIV-enabled SAN switch</p>
<p>Only the first SAN switch which is attached to the Fibre Channel adapter in<br />
the Virtual I/O Server needs to be NPIV-capable. Other switches in your<br />
SAN environment do not need to be NPIV-capable.</p>
<p>2. Software</p>
<p>HMC V7.3.4, or later<br />
Virtual I/O Server Version 2.1 with Fix Pack 20.1, or later<br />
AIX 5.3 TL9, or later<br />
AIX 6.1 TL2, or later<br />
SDD 1.7.2.0 + PTF 1.7.2.2<br />
SDDPCM 2.2.0.0 + PTF v2.2.0.6<br />
SDDPCM 2.4.0.0 + PTF v2.4.0.1</p>
<p><b>Note: </b>At the time of writing, only the 8 Gigabit PCI Express Dual Port<br />
Fibre Channel Adapter (Feature Code 5735) was announced.</p>
<p><b>Note: </b>Check, with the storage vendor, whether your SAN switch is<br />
NPIV-enabled.</p>
<p>For information about IBM SAN switches, refer to <i>Implementing an</i><br />
<i>IBM/Brocade SAN with 8 Gbps Directors and Switches</i>, SG24-6116,<br />
and search for NPIV.</p>
<p>Use the latest available firmware level for your SAN switch.</p>
</div>
<p>&nbsp;</p>
<h2>Resolving the problem</h2>
<div>
<p><b>Configuring IBM NPIV and Switch for Virtualization</b><br />
1. On the SAN switch, you must perform two tasks before it can be used for<br />
NPIV.</p>
<p>a. Update the firmware to a minimum level of Fabric OS (FOS) 5.3.0. To<br />
check the level of Fabric OS on the switch, log on to the switch and run the<br />
<b>version </b>command, as shown in Example 2-20:</p>
<p><i>Example 2-20 version command shows Fabric OS level</i><br />
itsosan02:admin&gt; version<br />
Kernel: 2.6.14<br />
Fabric OS: v5.3.0<br />
Made on: Thu Jun 14 19:04:02 2007<br />
Flash: Mon Oct 20 12:14:10 2008<br />
BootProm: 4.5.3</p>
<p><b>Note: </b>You can find the firmware for IBM SAN switches at:<br />
<a href="https://www-304.ibm.com/jct03001c/systems/storage/san/index.html">http://www-03.ibm.com/systems/storage/san/index.html</a></p>
<p>Click <b>Support </b>and select <b>Storage are network (SAN) </b>in the Product<br />
family. Then select your SAN product.</p>
<p>b. After a successful firmware update, you must enable the NPIV capability<br />
on each port of the SAN switch. Run the <b>portCfgNPIVPort </b>command to<br />
enable NPIV on port 16:</p>
<p>itsosan02:admin&gt; portCfgNPIVPort 16, 1<br />
The <b>portcfgshow </b>command lists information for all ports, as shown in<br />
Example 2-21.</p>
<p><i>Example 2-21 List port configuration</i><br />
itsosan02:admin&gt; portcfgshow<br />
Ports of Slot 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8211;+&#8211;+&#8211;+&#8211;+&#8212;-+&#8211;+&#8211;+&#8211;+&#8212;-+&#8211;+&#8211;+&#8211;+&#8212;-+&#8211;+&#8211;+&#8211;<br />
Speed AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN<br />
Trunk Port ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON<br />
Long Distance .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
VC Link Init .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
Locked L_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
Locked G_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
Disabled E_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
ISL R_RDY Mode .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
RSCN Suppressed .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
Persistent Disable.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
<b>NPIV capability .. ON ON ON ON ON ON ON ON ON .. .. .. ON ON ON</b><br />
Ports of Slot 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8211;+&#8211;+&#8211;+&#8211;+&#8212;-+&#8211;+&#8211;+&#8211;+&#8212;-+&#8211;+&#8211;+&#8211;+&#8212;-+&#8211;+&#8211;+&#8211;<br />
Speed AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN<br />
Trunk Port ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON<br />
Long Distance .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
VC Link Init .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
Locked L_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
Locked G_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
Disabled E_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
ISL R_RDY Mode .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
RSCN Suppressed .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
Persistent Disable.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
<b>NPIV capability ON </b>.. .. .. .. .. .. .. .. .. .. .. .. .. .. ..<br />
where AN:AutoNegotiate, ..:OFF, ??:INVALID,<br />
SN:Software controlled AutoNegotiation.</p>
<p><b>Note: </b>Refer to your SAN switch users guide for the command to enable<br />
NPIV on your SAN switch.</p>
<p>2. Follow these steps to create the virtual Fibre Channel server adapter in the<br />
Virtual I/O Server partition.</p>
<p>a. On the HMC, select the managed server to be configured:<br />
<b>Systems Management </b>→ <b>Servers </b>→ &lt;<b>servername&gt;</b></p>
<p>b. Select the Virtual I/O Server partition on which the virtual Fibre Channel<br />
server adapter is to be configured. Then select <b>Tasks </b>→ <b>Dynamic</b><br />
<b>Logical Partitioning </b>→ <b>Virtual Adapters </b>as shown in Figure 2-18.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=1" width="972" height="582" /></p>
<p>c. To create a virtual Fibre Channel server adapter, select <b>Actions </b>→<br />
<b>Create </b>→ <b>Fibre Channel Adapter&#8230; </b>as shown in Figure 2-19.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=2" width="715" height="604" /></p>
<p>d. Enter the virtual slot number for the Virtual Fibre Channel server adapter.<br />
Then select the Client Partition to which the adapter may be assigned, and<br />
enter the Client adapter ID as shown in Figure 2-20. Click <b>Ok</b>.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=3" width="415" height="308" /></p>
<p>e. Click <b>OK.</b></p>
<p>f. Remember to update the profile of the Virtual I/O Server partition so that<br />
the change will be reflected across restarts of the partitions. As an<br />
alternative, you may use the <b>Configuration </b>→ <b>Save Current</b><br />
<b>Configuration </b>option to save the changes to the new profile</p>
<p>3. Follow these steps to create virtual Fibre Channel client adapter in the virtual<br />
I/O client partition.<br />
a. Select the virtual I/O client partition on which the virtual Fibre Channel<br />
client adapter is to be configured. Then select <b>Tasks </b>→ <b>Configuration </b>→<br />
<b>Manage Profiles </b>as shown in Figure 2-22.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=4" width="972" height="582" /></p>
<p>b. To create a virtual Fibre Channel client adapter select the profile, select<br />
<b>Actions </b>→ <b>Edit</b>. Then expand the Virtual Adapters tab and select<br />
<b>Actions </b>→ <b>Create </b>→ <b>Fibre Channel Adapter </b>as shown in Figure 2-23.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=5" width="855" height="503" /></p>
<p>c. Enter the virtual slot number for the Virtual Fibre Channel client adapter.<br />
Then select the Virtual I/O Server partition to which the adapter may be<br />
assigned and enter the Server adapter ID as shown in Figure 2-24. Click<br />
<b>OK</b>.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=6" width="595" height="289" /></p>
<p>d. Click <b>OK </b>→ <b>OK </b>→ <b>Close</b>.</p>
<p>4. Logon to the Virtual I/O Server partition as user padmin.</p>
<p>5. Run the <b>cfgdev </b>command to get the virtual Fibre Channel server adapter(s)<br />
configured.</p>
<p>6. The command <b>lsdev -dev vfchost* </b>lists all available virtual Fibre Channel<br />
server adapters in the Virtual I/O Server partition before mapping to a<br />
physical adapter, as shown in Example 2-22.</p>
<p><i>Example 2-22 lsdev -dev vfchost* command on the Virtual I/O Server</i><br />
$ lsdev -dev vfchost*<br />
name status description<br />
vfchost0 Available Virtual FC Server Adapter</p>
<p>7. The <b>lsdev -dev fcs* </b>command lists all available physical Fibre Channel<br />
server adapters in the Virtual I/O Server partition, as shown in Example 2-23.</p>
<p><i>Example 2-23 lsdev -dev fcs* command on the Virtual I/O Server</i><br />
$ lsdev -dev fcs*<br />
name status description<br />
fcs0 Available 4Gb FC PCI Express Adapter (df1000fe)<br />
fcs1 Available 4Gb FC PCI Express Adapter (df1000fe)<br />
fcs2 Available 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)<br />
fcs3 Available 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)</p>
<p>8. Run the <b>lsnports </b>command to check the Fibre Channel adapter NPIV<br />
readiness of the adapter and the SAN switch. Example 2-24 shows that the<br />
fabric attribute for the physical Fibre Channel adapter in slot C6 is set to 1.</p>
<p>This means the adapter and the SAN switch is NPIV ready. If the value is<br />
equal 0, then the adapter or SAN switch is not NPIV ready and you should<br />
check the SAN switch configuration.</p>
<p><i>Example 2-24 lsnports command on the Virtual I/O Server</i><br />
$ lsnports<br />
name physloc <b>fabric </b>tports aports swwpns awwpns<br />
fcs3 U789D.001.DQDYKYW-P1-C6-T2 <b>1 </b>64 63 2048 2046</p>
<p>9. Before mapping the virtual FC adapter to a physical adapter, get the vfchost<br />
name of the virtual adapter you created and the fcs name for the FC adapter<br />
from the previous <b>lsdev </b>commands output.</p>
<p>10.To map the virtual adapters vfchost0 to the physical Fibre Channel adapter<br />
fcs3, use the <b>vfcmap </b>command as shown in Example 2-25.</p>
<p><i>Example 2-25 vfcmap command with vfchost2 and fcs3</i><br />
$ vfcmap -vadapter vfchost0 -fcp fcs3<br />
vfchost0 changed</p>
<p>11.To list the mappings use the <b>lsmap -npiv -vadapter vfchost0 </b>command, as<br />
shown in Example 2-26.</p>
<p><i>Example 2-26 lsmap -npiv -vadapter vfchost0 command</i><br />
$ lsmap -npiv -vadapter vfchost0<br />
Name Physloc ClntID ClntName ClntOS<br />
============= ================================== ====== ============== =======<br />
vfchost0 U9117.MMA.101F170-V1-C31 3<br />
Status:NOT_LOGGED_IN<br />
FC name: FC loc code:<br />
Ports logged in:0<br />
Flags:1&lt;NOT_MAPPED,NOT_CONNECTED&gt;<br />
VFC client name: VFC client DRC:</p>
<p>12.After you have created the virtual Fibre Channel server adapters in the Virtual<br />
I/O server partition and in the virtual I/O client partition, you need to do the<br />
correct zoning in the SAN switch. Follow the next steps:</p>
<p>a. Get the information about the WWPN of the virtual Fibre Channel client<br />
adapter created in the virtual I/O client partition.</p>
<p>i. Select the appropriate virtual I/O client partition, then click <b>Task </b>→<br />
<b>Properties</b>. Expand Virtual Adapters tab, select the Client Fibre<br />
Channel client adapter and then select <b>Actions </b>→ <b>Properties </b>to list<br />
the properties of the virtual Fibre Channel client adapter, as shown in<br />
Figure 2-25.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=7" width="937" height="487" /></p>
<p>ii. Figure 2-26 shows the properties of the virtual Fibre Channel client<br />
adapter. Here you can get the WWPN that is required for the zoning.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=8" width="420" height="268" /></p>
<p>b. Logon to your SAN switch and create a new zoning, or customize an<br />
existing one.</p>
<p>The command <b>zoneshow</b>, which is available on the IBM 2109-F32 switch,<br />
lists the existing zones as shown in Example 2-27.</p>
<p><i>Example 2-27 The zoneshow command before adding a new WWPN</i><br />
itsosan02:admin&gt; zoneshow<br />
Defined configuration:<br />
cfg: npiv vios1; vios2<br />
zone: vios1 20:32:00:a0:b8:11:a6:62; c0:50:76:00:0a:fe:00:18<br />
zone: vios2 C0:50:76:00:0A:FE:00:12; 20:43:00:a0:b8:11:a6:62<br />
Effective configuration:<br />
cfg: npiv<br />
zone: vios1 20:32:00:a0:b8:11:a6:62<br />
c0:50:76:00:0a:fe:00:18<br />
zone: vios2 c0:50:76:00:0a:fe:00:12<br />
20:43:00:a0:b8:11:a6:62</p>
<p>To add the WWPN c0:50:76:00:0a:fe:00:14 to the zone named vios1,<br />
execute the following command:</p>
<p>itsosan02:admin&gt; zoneadd &#8220;vios1&#8243;, &#8220;c0:50:76:00:0a:fe:00:14&#8243;</p>
<p>To save and enable the new zoning, execute the <b>cfgsave </b>and <b>cfgenable</b><br />
<b>npiv </b>commands, as shown in Example 2-28 on page 76.</p>
<p><i>Example 2-28 The cfgsave and cfgenable commands</i><br />
itsosan02:admin&gt; cfgsave</p>
<p>You are about to save the Defined zoning configuration. This<br />
action will only save the changes on Defined configuration.<br />
Any changes made on the Effective configuration will not<br />
take effect until it is re-enabled.</p>
<p>Do you want to save Defined zoning configuration only? (yes, y, no, n): [no]<br />
y<br />
Updating flash &#8230;<br />
itsosan02:admin&gt; cfgenable npiv<br />
You are about to enable a new zoning configuration.<br />
This action will replace the old zoning configuration with the<br />
current configuration selected.<br />
Do you want to enable &#8216;npiv&#8217; configuration (yes, y, no, n): [no] y<br />
zone config &#8220;npiv&#8221; is in effect<br />
Updating flash &#8230;</p>
<p>With the <b>zoneshow </b>command you can check whether the added WWPN is<br />
active, as shown in Example 2-29.</p>
<p><i>Example 2-29 The zoneshow command after adding a new WWPN</i><br />
itsosan02:admin&gt; zoneshow</p>
<p>Defined configuration:</p>
<p>cfg: npiv vios1; vios2</p>
<p>zone: vios1 20:32:00:a0:b8:11:a6:62; c0:50:76:00:0a:fe:00:18;<br />
<b>c0:50:76:00:0a:fe:00:14</b></p>
<p>zone: vios2 C0:50:76:00:0A:FE:00:12; 20:43:00:a0:b8:11:a6:62</p>
<p>Effective configuration:</p>
<p>cfg: npiv<br />
zone: vios1 20:32:00:a0:b8:11:a6:62<br />
c0:50:76:00:0a:fe:00:18<br />
<b>c0:50:76:00:0a:fe:00:14</b><br />
zone: vios2 c0:50:76:00:0a:fe:00:12<br />
20:43:00:a0:b8:11:a6:62</p>
<p>c. After you have finished with the zoning, you need to map the LUN<br />
device(s) to the WWPN. In our example the LUN named NPIV_AIX61 is<br />
mapped to the Host Group named VIOS1_NPIV, as shown in Figure 2-27.</p>
<p><img alt="" src="https://www-304.ibm.com/support/docview.wss?uid=isg3T1012452&amp;aid=9" width="970" height="444" /></p>
<p>13.Activate your AIX client partition and boot it into SMS.</p>
<p>14.Select the correct boot devices within SMS, such as a DVD or a NIM Server.</p>
<p>15.Continue to boot the LPAR into the AIX Installation Main menu.</p>
<p>16.Select the disk where you want to install the operating system and continue to<br />
install AIX.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2822</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X11 forwarding from a remote unix server</title>
		<link>http://www.aixmind.com/?p=2813</link>
		<comments>http://www.aixmind.com/?p=2813#comments</comments>
		<pubDate>Thu, 18 Apr 2013 19:22:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[jumpserver]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[X11]]></category>
		<category><![CDATA[X11Forwarding]]></category>

		<guid isPermaLink="false">http://www.aixmind.com/?p=2813</guid>
		<description><![CDATA[Supposed that you are already familiar with how to make X11 forwarding work from your PC to remote AIX server. 1. Make sure you have PuTTY installed on your PC before installing Xming. In your putty config, make sure you enable X11 forwarding in Connection-&#62;SSH -&#62;X11. 2. Then on your PC run Xlaunch, and make [...]]]></description>
				<content:encoded><![CDATA[<p>Supposed that you are already familiar with how to make X11 forwarding work from your PC to remote AIX server.</p>
<p>1. Make sure you have <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">PuTTY</a> installed on your PC before installing Xming. In your putty config, make sure you enable X11 forwarding in Connection-&gt;SSH -&gt;X11.</p>
<p><img class="alignnone size-full wp-image-2817" alt="Putty_x11forwarding" src="http://www.aixmind.com/wp-content/uploads/2013/04/Putty_x11forwarding1.png" width="462" height="446" /></p>
<p>2. Then on your PC run Xlaunch, and make sure to set your DISPLAY to a higher value, for example &#8220;10&#8243; and to check &#8220;No Access Control&#8221;.</p>
</div>
<p><a href="http://www.aixmind.com/wp-content/uploads/2013/04/Xming_Xlaunch.png"><img class="alignnone size-full wp-image-2818" alt="Xming_Xlaunch" src="http://www.aixmind.com/wp-content/uploads/2013/04/Xming_Xlaunch.png" width="512" height="395" /></a></p>
<p>&nbsp;</p>
<p>3. Make sure you have X11Forwarding enabled in the sshd config. Your /etc/ssh/sshd_config should contain something like this:</p>
<p>&nbsp;</p>
<p>X11DisplayOffset 10<br />
X11Forwarding yes<br />
X11UseLocalhost yes<br />
XAuthLocation /usr/bin/X11/xauth</p>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;">Restart sshd if you have to make the change to /etc/ssh/sshd_config:
stopsrc -s sshd ; startsrc -ssshd

4. Log in to the UNIX host through PuTTY.

</span><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;">Test, run xclock :</span></pre>
<blockquote><p># xclock &amp;</p></blockquote>
<p>The program xclock should open on your window.</p>
<p>5. Now, how do you get around opening an X window if you have to go through a jumpserver first to get to the correct UNIX server, where you would like to start an X-based program? That&#8217;s not too difficult also. After logging in on the UNIX jumpserver, following the procedure described above, issue the following command:</p>
<blockquote><p># ssh -X -Y -C otherunixhost</p></blockquote>
<p>Of course, replace &#8220;otherunixhost&#8221; with the hostname of the UNIX server you&#8217;d like to connect to through your jump server. Then, again, to test, run  &#8221;xclock&#8221; to test. It should open on your PC. Now you have X11 forwarding from a UNIX server, to a jumpserver, and back to your PC, in fact double X11 forwarding.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aixmind.com/?feed=rss2&#038;p=2813</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
