<?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 Commands, Tools, Scripts and Explanations &#187; Software</title>
	<atom:link href="http://icancompute.ca/aix/category/config/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://icancompute.ca/aix</link>
	<description>Everything I have learnt and used while being an AIX systems adminstrator.  Custom scripts, commands and projects used to maintain a virtualized AIX server environment</description>
	<lastBuildDate>Tue, 05 Jun 2012 19:25:14 +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>How to Install GIT on AIX</title>
		<link>http://icancompute.ca/aix/config/software/install-git-aix/</link>
		<comments>http://icancompute.ca/aix/config/software/install-git-aix/#comments</comments>
		<pubDate>Fri, 25 May 2012 16:56:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://icancompute.ca/aix/?p=431</guid>
		<description><![CDATA[After a grueling battle trying to compile GIT from source on an AIX (6.1) machine, I thought I would try to save you some trouble and outline clearly what I had to do.  Please note I initially followed this guide, which gave me a good base, but I had to throw in a few extra [...]]]></description>
				<content:encoded><![CDATA[<p>After a grueling battle trying to compile GIT from source on an AIX (6.1) machine, I thought I would try to save you some trouble and outline clearly what I had to do.  Please note I initially followed <a href="http://blog.boreas.ro/2008/03/porting-git-to-hp-ux-pa-risc-and-aix.html" target="_blank">this guide</a>, which gave me a good base, but I had to throw in a few extra tweaks.</p>
<p>First off, you will need to get the following dependencies.  I was able to get most of them from the IBM Linux Toolbox <a href="http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html" target="_blank">here</a>, and the rest I got from the great people at <a href="http://www.perzl.org/aix/index.php" target="_blank">Perzl.org</a></p>
<p>Dependencies:</p>
<p>bison-1.875-3.aix5.1.ppc.rpm<br />
coreutils-5.2.1-2.aix5.1.ppc.rpm<br />
expect-5.45-1.aix5.1.ppc.rpm<br />
flex-2.5.4a-6.aix4.3.ppc.rpm<br />
gcc-4.2.0-3.aix6.1.ppc.rpm<br />
gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm<br />
gdbm-1.8.3-5.aix5.2.ppc.rpm<br />
gettext-0.10.40-8.aix5.2.ppc.rpm<br />
git-git-5bc2dc2<br />
git-git-v1.7.10.2-569-g5bc2dc2.zip<br />
libXft-2.2.0-1.aix5.1.ppc.rpm<br />
libgcc-4.2.0-3.aix6.1.ppc.rpm<br />
libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm<br />
libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm<br />
make-3.80-1.aix5.1.ppc.rpm<br />
popt-1.7-2.aix5.1.ppc.rpm<br />
python-2.6.2-1.aix5.3.ppc.rpm<br />
python-devel-2.6.2-1.aix5.3.ppc.rpm<br />
readline-4.3-2.aix5.1.ppc.rpm<br />
readline-devel-4.3-2.aix5.1.ppc.rpm<br />
unzip-5.51-1.aix5.1.ppc.rpm<br />
zlib-1.2.3-4.aix5.2.ppc.rpm<br />
zlib-devel-1.2.3-4.aix5.2.ppc.rpm</p>
<p>My suggestion, just put them all in a folder and run &#8220;rpm -i -v *&#8221; in the directory.</p>
<p>Now that all dependencies are met (hopefully), we can go ahead and grab the GIT source from <a href="https://github.com/git/git/zipball/master" target="_blank">here</a>.  I simply downloaded this, SCP-ed it to my machine and ran &#8220;unzip *.zip&#8221; on the file.</p>
<p>cd into the git directory and &#8220;vi Makefile&#8221; in order to change a few things in the make instructions.  Here are the changes I made:</p>
<p><strong>CC = /opt/freeware/bin/gcc</strong><br />
AR = ar<br />
RM = rm -f<br />
DIFF = diff<br />
<strong>TAR = /usr/bin/tar</strong><br />
FIND = find<br />
<strong>INSTALL = /usr/linux/bin/install</strong></p>
<p>Please don&#8217;t blindly follow these changes.  Change these values to the corresponding directory.  You can get this information by running &#8220;whereis&#8221; or &#8220;which&#8221; on each utility.</p>
<p>The final step is the command.  Since I don&#8217;t have X installed and don&#8217;t want any GUI options, I modified my install command to eleviate some of the extra dependencies that I didn&#8217;t want to install.</p>
<p>&#8220;gmake NO_CURL=1 NO_FNMATCH_CASEFOLD=1 NO_MSGFMT=1 NO_TCLTK=1 install prefix=/opt/freeware&#8221;</p>
<p>This turns off things like curl, fixes my issues with fnmatch and turns off tc.  It also installs GIT to /opt/freeware.</p>
<p>Hope you all enjoy and things go smoothly.  If not, post any problems or questions here.</p>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/software/install-git-aix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>AIX Technology Level (TL) &#124; Maintenance Level Update</title>
		<link>http://icancompute.ca/aix/config/software/aix-technology-level-tl-maintenance-level-update/</link>
		<comments>http://icancompute.ca/aix/config/software/aix-technology-level-tl-maintenance-level-update/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 16:29:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LPAR Configuration]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[fixpack]]></category>
		<category><![CDATA[maintenance level]]></category>
		<category><![CDATA[technology level]]></category>
		<category><![CDATA[tl]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://icancompute.ca/aix/?p=262</guid>
		<description><![CDATA[Current OS level  oslevel -s oslevel -r Download technology or maintenance level from fix central IBM Support: Fix Central AIX -&#62; Version -&#62; FIX PACKS -&#62; wait&#8230; Select the fix pack you would like (with Service Pack) Start download. Once download is complete, FTP, scp or winscp (Windows) files to the LPAR or the NIM server [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Current OS level </strong></p>
<div>oslevel -s</div>
<p>oslevel -r<br />
<strong>Download technology or maintenance level from fix central</strong></p>
<p><a title="Fix Central" href="http://www-933.ibm.com/support/fixcentral/" target="_blank">IBM Support: Fix Central<br />
</a><span style="color: #ff8c00;"><br />
<span style="color: #000000;">AIX -&gt; Version -&gt; FIX PACKS -&gt; wait&#8230;</span></span></p>
<p>Select the fix pack you would like (with Service Pack)<span style="color: #ff8c00;"><br />
</span><br />
Start download. Once download is complete, FTP, scp or winscp (Windows) files to the LPAR or the NIM server</p>
<p>To <strong>initiate install</strong>, use the following commands:<br />
pwd</p>
<p>inutoc <span style="font-size: large;"><strong>.</strong></span></p>
<p>smitty update_all &gt; directory .</p>
<p><em>If you don&#8217;t want to keep old version:</em></p>
<p>Make Commit -&gt; Yes</p>
<p><em>If you want to keep old version as backout plan</em></p>
<p>Make Commit -&gt; No<br />
Accept License -&gt; YES (otherwise you will have to accept each one manually&#8230;its a pain)</p>
<p>The install can take anywhere over an hour so patient&#8230;</p>
<p><strong>Reboot LPAR</strong></p>
<p>shutdown -r</p>
<p><strong>Verify the upgrade</strong></p>
<p>oslevel -s</p>
<p>oslevel -r</p>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/software/aix-technology-level-tl-maintenance-level-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basics of Text Editing in Unix with Vi</title>
		<link>http://icancompute.ca/aix/config/software/basics-of-test-editing-in-unix-with-vi/</link>
		<comments>http://icancompute.ca/aix/config/software/basics-of-test-editing-in-unix-with-vi/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 00:23:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://icancompute.ca/aix/?p=127</guid>
		<description><![CDATA[Vi can either be one of your worst enemies or one of your best friends. Anyone new to unix/linux will typically have a hard time coming to terms with the fact that vi can be both necessary and efficient, especially if you are only used to graphical text editors. I truly believe that any new [...]]]></description>
				<content:encoded><![CDATA[<p>Vi can either be one of your worst enemies or one of your best friends. Anyone new to unix/linux will typically have a hard time coming to terms with the fact that vi can be both necessary and efficient, especially if you are only used to graphical text editors.</p>
<p><span id="more-127"></span></p>
<p>I truly believe that any new unix/linux user or administrator MUST spend the time learning the basics of VI. This will make you more comfortable with the terminal environment, give you the opportunity to use &#8220;set -o vi&#8221; later, and increase the efficiency of script writing. Regardless of what the popular argument says, simply learning VI will always be more efficient than writing your scripts in word on your workstation and ftp-ing or scp-ing the files over. Many tools will use vi as their editor such as cron and inittab. Also the aforementioned &#8220;set -o vi&#8221; will be a lifesaver for anyone working in unix that would like to use command history recall.</p>
<p><strong>Things you need to know in VI:</strong></p>
<p>Vi runs in two distinct modes (command and input). If you are not inputing text into the file, you are issuing commands to vi. These commands include things like: navigate cursor here, page up, jump to next word, and then switch to input mode.</p>
<p>To <strong>navigate</strong> vi you can move either with the arrow keys or the following <strong>hjkl</strong> commands:</p>
<p>k &#8212; navigate up<br />
j &#8212; navigate down<br />
h &#8212; navigate left<br />
l &#8212; navigate right</p>
<p>From this you may want to <strong>navigate larger distances</strong> easier. Have no fear, there are commands for that.</p>
<p>:1 &#8212; beginning of document<br />
H &#8212; beginning of current screen (top left hand side of viewing area)<br />
0 &#8212; beginning of line<br />
$ &#8212; end of line<br />
G &#8212; end of document</p>
<p>w &#8212; forward one word<br />
b &#8212; backward one word</p>
<p>&lt;ctrl&gt;-b &#8212; Up full screen<br />
&lt;ctrl&gt;-u &#8212; Up half screen<br />
&lt;ctrl&gt;-d &#8212; Down half screen<br />
&lt;ctrl&gt;-f &#8212; Down full screen</p>
<p>To <strong>switch to input mode</strong> you use the following:</p>
<p>i &#8212; will switch to input mode where the cursor is located<br />
a &#8212; will switch to input mode after the cursor<br />
A &#8212; will switch to input mode at the end of the line<br />
o &#8212; will open a new line below your cursor<br />
O &#8212; will open a new line above your cursor</p>
<p><strong>Change/delete:</strong></p>
<p>cw &#8212; change word<br />
dw &#8212; delete word<br />
cc &#8212; change line<br />
S &#8212; replace line<br />
dd &#8212; delete line<br />
r &#8212; replace single character with single character<br />
s &#8212; replace single character with string<br />
R &#8212; switch to overwrite mode</p>
<p><strong>Find/replace:</strong></p>
<p>/string &#8212; find string (forward)<br />
?string &#8212; find string (backward)<br />
:s/string/newstring &#8212; replace string with new string (once on current line)<br />
:s/string/newstring/g &#8212; replace string with new string (on entire line)<br />
:%s/string/newstring/g &#8212; replace string with new string (in entire file)<br />
:ns/string/newstring &#8212; replace string with newstring (on nth line)</p>
<p>n &#8212; next search match<br />
N &#8212; previous search match</p>
<p><strong>Cut/Copy/Paste:</strong></p>
<p>yy &#8212; copy line<br />
dd &#8212; cut line<br />
p &#8212; paste after cursor (cannot paste if buffer emptied by going into input mode)<br />
P &#8212; paste before cursor</p>
<p><strong>Undo:</strong><br />
u &#8212; undo last change<br />
U &#8212; undo all changes to line</p>
<p><strong>Save/Exit:</strong><br />
:w &#8212; write changes<br />
:q &#8212; quit Vi<br />
:wq &#8212; write and quit<br />
:q! &#8211;quit without saving<br />
:w newfile &#8212; save as newfile<br />
:sh &#8212; drop down to shell (will run shell on top of Vi so need to exit shell (&lt;ctrl&gt;-d) to get back to Vi</p>
<p><strong>**NOTE**</strong><br />
- undo can only work for the current line<br />
ncmd &#8212; you can increase the repetition or length of a command by issuing a number infront of it<br />
ie 5dd &#8212; cut/delete next five lines<br />
10j &#8212; navigate down 10 lines<br />
:n &#8212; go to nth line<br />
. &#8212; repeat last command<br />
:set all &#8212; show all of the variables you can change to increase the ease of use of VI</p>
<p><strong>a few important ones:</strong><br />
:set (no)numbers &#8212; show line numbers<br />
:set (no)autoindent &#8212; auto indent on new line<br />
:set (no)showmode &#8212; display INPUT MODE when in input mode<br />
** to turn on use &#8220;:set numbers&#8221; to turn off use &#8220;:set nonumbers&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/software/basics-of-test-editing-in-unix-with-vi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install File Sets from NIM on an AIX LPAR</title>
		<link>http://icancompute.ca/aix/config/software/install-file-sets/</link>
		<comments>http://icancompute.ca/aix/config/software/install-file-sets/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 00:15:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[file sets]]></category>
		<category><![CDATA[nim]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://icancomputeca.ipage.com/aix/?p=64</guid>
		<description><![CDATA[A quick guide on how to install file sets from a NIM server &#160; rsct -&#62; Reliable Scalable Cluster Technology adt -&#62; Application Development Toolkit rte -&#62; Run Time Environment bff -&#62; Backup File Format rpm -&#62; Red Hat Package Manager ODM -&#62; Equivalent to Windows Registry **If filename does not contain *.rpm then it [...]]]></description>
				<content:encoded><![CDATA[<p>A quick guide on how to install file sets from a NIM server</p>
<p>&nbsp;</p>
<p>rsct -&gt; Reliable Scalable Cluster Technology</p>
<p>adt -&gt; Application Development Toolkit</p>
<p>rte -&gt; Run Time Environment</p>
<p>bff -&gt; Backup File Format</p>
<p>rpm -&gt; Red Hat Package Manager</p>
<p>ODM -&gt; Equivalent to Windows Registry</p>
<p>**If filename does not contain *.rpm then it is bff -&gt; IBM file set</p>
<p><strong>Checklist</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="133">File Set</td>
<td valign="top" width="36"></td>
</tr>
<tr>
<td valign="top" width="133">Location on NIM</td>
<td valign="top" width="36"></td>
</tr>
<tr>
<td valign="top" width="133">Upgrade or Install</td>
<td valign="top" width="36"></td>
</tr>
</tbody>
</table>
<p><strong>Commands</strong></p>
<ul>
<li>lslpp –l [package] -&gt; list installed packages</li>
<li>oslevel –r -&gt; View technology level</li>
<li>oslevel –s -&gt; View software level</li>
<li>showmount –e [nim server] -&gt; View all exports of NIM server (or any other server)</li>
<li>whereis [program] -&gt; Locate program on LPAR</li>
<li>which_fileset [name] -&gt; find file set for specific program</li>
<li>lslpp –w [full path to program] -&gt;show installed file sets for a program</li>
</ul>
<p>**NOTE about NIM -&gt; Ensure all NFS exports are done through SMIT or using IBM command to ensure all file systems are mounted at reboot**</p>
<ul>
<li>mount [nim server]:[path] /mnt</li>
</ul>
<p><strong>Steps</strong></p>
<p>Smit -&gt; Software Installation -&gt; Install and Update -&gt; Install -&gt; Path</p>
<ul>
<li>Software to Install (F4 then ‘/’ to search for file sets)</li>
<li>Commit?</li>
<li>Automatically Accept New License Agreements</li>
</ul>
<p>lslpp –f [file set] -&gt;displays names of file added for file set</p>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/software/install-file-sets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
