<?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>Technology, Computer, Network and Games Cheat &#187; Aix</title>
	<atom:link href="http://www.gamescheat.ca/tag/aix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gamescheat.ca</link>
	<description>Day to day technical how to - by Andrew Lin</description>
	<lastBuildDate>Thu, 26 May 2011 18:48:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Unable to login to remote server via ssh</title>
		<link>http://www.gamescheat.ca/2011/05/unable-to-login-to-remote-server-via-ssh/</link>
		<comments>http://www.gamescheat.ca/2011/05/unable-to-login-to-remote-server-via-ssh/#comments</comments>
		<pubDate>Wed, 18 May 2011 11:00:26 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=887</guid>
		<description><![CDATA[A funny thing happened to one of my Red Hat 5 Enterprise servers after applying the errata. I rebooted the servers as usual after applying the updates, and they came up just fine. But unfortunately I was not able to logon remotely via ssh to a server. I tried various different accounts including root, but [...]]]></description>
			<content:encoded><![CDATA[<p>A funny thing happened to one of my Red Hat 5 Enterprise servers after applying the errata.  I rebooted the servers as usual after applying the updates, and they came up just fine.  But unfortunately I was not able to logon remotely via ssh to a server.  I tried various different accounts including root, but none of them worked. </p>
<p>It seems that I was able to login successfully into the server, but within few seconds it would kick me out.  Just before it disconnected my ssh session, I saw the message ‘The server is going down..’.   For some strange reason that message was stuck in the operating system, it was the message displayed just before the scheduled reboot.  I had pushed out the reboot command from the Red Hat Satellite server.  All the other servers rebooted fine.</p>
<p>I knew that clearing this message would resolve my dilemma, but I had no idea which file held it.  After much searching I found the culprit, it was /etc/nologin. Due to reason I did not want to try and figure out as it would take too much time, this file did not get automatically deleted after the reboot.  I deleted /etc/nologin, and then was able to successfully login via ssh to the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2011/05/unable-to-login-to-remote-server-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nslookup resolves address but ping is unable to resolve hostname on Unix server</title>
		<link>http://www.gamescheat.ca/2010/11/nslookup-resolves-addpress-but-ping-is-unable-to-resolve-hostname-on-unix-server/</link>
		<comments>http://www.gamescheat.ca/2010/11/nslookup-resolves-addpress-but-ping-is-unable-to-resolve-hostname-on-unix-server/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 14:42:58 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[SUN]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=844</guid>
		<description><![CDATA[I came across this issue on my newly built Solaris 10 server. I was able to ping a remote machine by Ip address, but not by its hostname. This indicated that I had the correct route and gateway. Using nslookup and dig I verified that the DNS servers were resolving the hostname to IP address. [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this issue on my newly built Solaris 10 server.  I was able to ping a remote machine by Ip address, but not by its hostname. This indicated that I had the correct route and gateway. Using nslookup and dig I verified that the DNS servers were resolving the hostname to IP address.  I confirmed that the file /etc/resolv.conf had the correct syntax for search domain-name.com.</p>
<p>Here is what my /etc/resolv.conf looks like, the two DNS servers are defined correctly as it the search domain.<br />
<strong>domain andrewlin.com<br />
namesserver 10.10.10.11<br />
namesserver 10.10.11.13<br />
search andrewlin.com</strong><br />
The gateway was defined in /etc/defaultrouter.<br />
<strong>10.10.0.1</strong><br />
It seems that ping did not know how to resolve an address.  I was also not able to surf the internet with the Firefox browser in the Sun Java Desktop System for Soalris.  All symptoms indicated that the nsswitch.conf did not have the correct environment defined.  The /etc/nsswitch.conf file defines which services are to used to retrieve information such as hostnames, password files, and group files.  So in this case for the command ping and firefox which wants to resolve and address, it will check the nsswitch.conf file to see what services to use.</p>
<p>Below are the lines I changed in /etc/nsswitch.conf, by adding dns to the end of each lines.<br />
<strong>hosts: files dns<br />
ipnodes: files dns</strong><br />
I am now able to ping and surf the internet without any issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/11/nslookup-resolves-addpress-but-ping-is-unable-to-resolve-hostname-on-unix-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to list the status of swap in Solaris</title>
		<link>http://www.gamescheat.ca/2010/02/how-to-list-the-status-of-swap-in-solaris/</link>
		<comments>http://www.gamescheat.ca/2010/02/how-to-list-the-status-of-swap-in-solaris/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 10:00:36 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=796</guid>
		<description><![CDATA[List the status of all swap areas. # swap -l swapfile dev swaplo blocks free dev/dsk/c0t0d0s1 32,9 16 8425712 8425712 The output has five columns: path The path name for the swap area. dev The major/minor device number in decimal if it is a block special device; zeroes otherwise. swaplo The swaplow value for the [...]]]></description>
			<content:encoded><![CDATA[<p>List the status of all swap areas.</p>
<blockquote><p># swap -l<br />
swapfile             dev  swaplo blocks   free<br />
dev/dsk/c0t0d0s1   32,9      16 8425712 8425712</p></blockquote>
<p>The  output  has five columns:<br />
path<br />
The path name for the swap area.</p>
<p>dev<br />
The major/minor device number in decimal if it is a block special device; zeroes otherwise.</p>
<p>swaplo<br />
The swaplow value for the area in 512-byte blocks.</p>
<p>blocks<br />
The swaplen value for the area in 512-byte blocks.</p>
<p>free<br />
The number of 512-byte blocks in this area that are not currently allocated.</p>
<p>To find the status of total swap usage use the -s option.</p>
<blockquote><p># swap -s<br />
total: 180928k bytes allocated + 28456k reserved = 209384k used, 10691424k available     </p></blockquote>
<p>List the status of all the swap areas. The output has five columns:</p>
<p>path<br />
The path name for the swap area.</p>
<p>dev<br />
The major/minor device number in decimal if it is a block special device; zeroes otherwise.</p>
<p>swaplo<br />
The swaplow value for the area in 512-byte blocks.</p>
<p>blocks<br />
The swaplen value for the area in 512-byte blocks.</p>
<p>free<br />
The number of 512-byte blocks in this area that are not currently allocated.</p>
<p>The total amount of swap space in bytes currently allocated for use as backing store.</p>
<p>reserved<br />
The total amount of swap space in bytes not currently allocated, but claimed by memory mappings for possible future use.</p>
<p>used<br />
The total amount of swap space in bytes that is either allocated or reserved.</p>
<p>available<br />
The total swap space in bytes that is currently available for future reservation and allocation.</p>
<p>These   numbers include swap space from all configured swap areas as listed by the -l option, as well swap space in the form of physical memory.                                                                                                                                  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/02/how-to-list-the-status-of-swap-in-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using grep/egrep to find out which file contains a word or string in Unix or Linux</title>
		<link>http://www.gamescheat.ca/2010/02/using-grepegrep-to-find-out-which-file-contains-a-word-or-string-in-unix-or-linux/</link>
		<comments>http://www.gamescheat.ca/2010/02/using-grepegrep-to-find-out-which-file-contains-a-word-or-string-in-unix-or-linux/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:04:00 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=783</guid>
		<description><![CDATA[If you need to find out which file in a directory contains a specific word then the grep command is your friend. Here is an example, if you wanted to find out which file in the directory /home contains the word groundhog. grep –i “groundhog” /home/* /home/shadow:Today is groundhog day The –i option means grep [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to find out which file in a directory contains a specific word then the grep command is your friend.</p>
<p>Here is an example, if you wanted to find out which file in the directory /home contains the word groundhog.</p>
<blockquote><p>grep –i “groundhog” /home/*<br />
/home/shadow:Today is groundhog day</p></blockquote>
<p>The –i option means grep will ignore upper/lower case distinction during comparisons.<br />
The word to search for is enclosed in double quotes, “groundhog”.<br />
/home is the directory to search in and the * signifies all files.<br />
The file /home/shadow contains the word groundhog, the content of the line containing the word groundhog is displayed on screen.</p>
<p>But what if you wanted to search for a string of words. Grep only searches for a single word.  Egrep will search all files for a string of words.  Here is an excerpt from the man pages of Solaris 10.</p>
<p>The egrep (expression grep) utility  searches  files  for  a<br />
pattern of characters and prints all lines that contain that<br />
pattern. egrep uses full  regular  expressions  (expressions<br />
that   has   string   values  that  use  the  full  set  of<br />
alphanumeric and special characters) to match the  patterns.<br />
It  uses a fast deterministic algorithm that sometimes needs<br />
exponential space.                                           </p>
<p>Below is an example of egrep.</p>
<blockquote><p>egrep –i “Apple announces the release of the ipad” /home/*<br />
/home/obama: Today Apple announces the release of the ipad</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/02/using-grepegrep-to-find-out-which-file-contains-a-word-or-string-in-unix-or-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Success, failure of the tar command recorded with time and date stamp</title>
		<link>http://www.gamescheat.ca/2010/01/success-failure-of-the-tar-command-recorded-with-time-and-date-stamp/</link>
		<comments>http://www.gamescheat.ca/2010/01/success-failure-of-the-tar-command-recorded-with-time-and-date-stamp/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 18:46:29 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=776</guid>
		<description><![CDATA[I needed to determine the amount of time it would take to archive large amount of data on my unix server. If I had infinite amount of free time I could sit in front of the screen with a stop watch. But the better way is to create a script that would record the start [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to determine the amount of time it would take to archive large amount of data on my unix server.  If I had infinite amount of free time I could sit in front of the screen with a stop watch.  But the better way is to create a script that would record the start time, stop time, success and failures.  Below is the script I created in the bash shell.                                             </p>
<blockquote><p>#!/bin/sh<br />
# This script archive directories and create a log file with the time and date stamp.<br />
# Andrew Lin<br />
# www.GamesCheat.ca<br />
# 27 January, 2010</p>
<p>cd /backup/archive<br />
echo &#8220;Backup start: &#8221; > backup.log 2>&#038;1<br />
date >> backup.log 2>&#038;1</p>
<p>cd /export/home</p>
<p># tar cvf /backup/archive/backup.tar dir1 dir2 >> /backup/archive/backup.log 2>&#038;1                                             </p>
<p>tar cvf /backup/archive/backup.tar dir1 dir2 2>>/backup/archive/backup.log</p>
<p>echo &#8220;Backup Stop: &#8221; >> /backup/archive/backup.log 2>&#038;1<br />
date >> /backup/archive/backup.log 2>&#038;1</p></blockquote>
<p>#!/bin/sh<br />
This indicates that the script is written to be executed in the Bash shell.</p>
<p>The # sign indicates the line is a comment.</p>
<p>cd /backup/archive<br />
Change the path /backup/archive to where this script is located on your machine.</p>
<p>echo &#8220;Backup start: &#8221; > backup.log 2>&#038;1<br />
Create a file backup.log. The text Backup start: is inserted into this file.  The file will be created in the directory<br />
/backup/archive.</p>
<p>date >> backup.log 2>&#038;1<br />
The date will be appended into the file backup.log.  This is useful if you wanted to determine the time of execution of the  script.</p>
<p>cd /export/home<br />
Go to the directory /export/home.  This directory contains the files or directories you wish to backup.</p>
<p># tar cvf /backup/archive/backup.tar dir1 dir2 >> /backup/archive/backup.log 2>&#038;1<br />
This line is commented out with the # sign.  Uncomment this line if you want a detailed log of the tar command.  Success and  failure will be recorded in the log.  Depending on the amount of files being archived this log could become very long.</p>
<p>tar cvf /backup/archive/backup.tar dir1 dir2 2>>/backup/archive/backup.log<br />
This command will copy the directories dir1 and dir2.  The copies will be stored in /backup/archive/backup.tar.  Any error will be recorded in the file backup.log.  If you wanted  both error and success recorded then comment this line out and uncomment the line above it.</p>
<p>echo &#8220;Backup Stop: &#8221; >> /backup/archive/backup.log 2>&#038;1<br />
After the completion of the tar command, insert the line Backup Stop: into the file backup.log.</p>
<p>date >> /backup/archive/backup.log 2>&#038;1<br />
Insert the date and time into the file backup.log.  This is useful for determining the completion time/date of the script.</p>
<p>Save this file with the name of backup-script.  Make sure that you make the file executable, with the chmod command, e.g.<br />
chmod 777 backup-script.log</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/success-failure-of-the-tar-command-recorded-with-time-and-date-stamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to delete a file or directory with special characters using the inode in Unix or Linux</title>
		<link>http://www.gamescheat.ca/2010/01/how-to-delete-a-file-or-directory-with-special-characters-using-the-inode-in-unix-or-linux/</link>
		<comments>http://www.gamescheat.ca/2010/01/how-to-delete-a-file-or-directory-with-special-characters-using-the-inode-in-unix-or-linux/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 10:33:30 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=773</guid>
		<description><![CDATA[My fat fingers inadvertently created a directory on my unix server with special characters. I could not access this directory nor could I delete it. When I listed the directory using the command ls –b, I could see all the funny characters. ls –b scritps010/010/010/010 I tried every command I could think of, rmdir “scripts”, [...]]]></description>
			<content:encoded><![CDATA[<p>My fat fingers inadvertently created a directory on my unix server with special characters.  I could not access this directory nor could I delete it.  When I listed the directory using the command ls –b, I could see all the funny characters.</p>
<p>ls –b<br />
scritps010/010/010/010</p>
<p>I tried every command I could think of, rmdir “scripts”, rmdir “scripts010/010/010/010”.  The only way to remove this directory was to delete it using the inode number.</p>
<p>To determine the inode use the  -i option with the ls command.<br />
ls –i<br />
184538 scritps</p>
<p>Below is the command syntax to delete the directory.<br />
find . –inum 184538 –exec rmdir {} \;</p>
<p>If you wanted to delete a stubborn file then simply substitute rmdir with rm.<br />
find . –inum 184538 –exec rm {} \;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/how-to-delete-a-file-or-directory-with-special-characters-using-the-inode-in-unix-or-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to determine the AIX OS level and Maintenance Level.</title>
		<link>http://www.gamescheat.ca/2010/01/how-to-determine-the-aix-os-level-and-maintenance-level/</link>
		<comments>http://www.gamescheat.ca/2010/01/how-to-determine-the-aix-os-level-and-maintenance-level/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 14:40:57 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=752</guid>
		<description><![CDATA[IBM had renamed the term maintenance level (ML) to technology level (TL). Here is an excerpt from IBM, &#8220;Although some systems administrators still use the term &#8220;maintenance level&#8221; when discussing their AIX version, the term is now reserved for legacy AIX systems. The new IBM methodology dictates two TL releases per year. The first TL [...]]]></description>
			<content:encoded><![CDATA[<p>IBM had renamed the term maintenance level (ML) to technology level (TL).</p>
<p>Here is an excerpt from IBM, &#8220;Although some systems administrators still use the term &#8220;maintenance level&#8221; when discussing their AIX version, the term is now reserved for legacy AIX systems. The new IBM methodology dictates two TL releases per year. The first TL includes hardware features, enablement, and software services. The second includes software features in the release, which means the second release is larger and more comprehensive. Finally, there is also now support for new hardware on older TLs.&#8221;</p>
<p>To determine the machine type of an IBM AIX server use the uname command.</p>
<blockquote><p>uname -MuL<br />
IBM,9113-550 IBM,0210A463E 1 10-A463E </p></blockquote>
<p>The option -M gives the machine type and model.<br />
-u gives the plant code and machine identifier.<br />
-L show the LPAR number and name.</p>
<p>The Machine type is 9113<br />
The Model is 550<br />
OF prefixm IBM, 0210A463E<br />
Plant Code, 1<br />
Sequence number, 10-A463E</p>
<p>To determine the AIX OS level and maintenance level use the instfix command with the option -i.</p>
<blockquote><p>instfix -i | grep AIX_ML<br />
All filesets for 5.3.0.0_AIX_ML were found.<br />
All filesets for 5300-01_AIX_ML were found.<br />
All filesets for 5300-02_AIX_ML were found.<br />
Not all filesets for 5300-03_AIX_ML were found.<br />
Not all filesets for 5300-04_AIX_ML were found.<br />
Not all filesets for 5300-05_AIX_ML were found.IBM,9113-550 IBM,0210A463E 1 10-A463E</p></blockquote>
<p>You can also use the command oslevel to determine the current AIX version, the -r option determines the highest recommended maintenance level.</p>
<blockquote><p>oslevel -r<br />
5300-02</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/how-to-determine-the-aix-os-level-and-maintenance-level/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to list the type of fiber channel card and it&#8217;s WWN info in AIX</title>
		<link>http://www.gamescheat.ca/2010/01/how-to-list-the-type-of-fiber-channels-cards-and-its-wwn-info-in-aix/</link>
		<comments>http://www.gamescheat.ca/2010/01/how-to-list-the-type-of-fiber-channels-cards-and-its-wwn-info-in-aix/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 11:00:51 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Fiber Channel]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=749</guid>
		<description><![CDATA[I needed to find out the type of fiber channel HBA cards installed in the Aix server. Here are the commands I used to find the information, Use the lsdev command to list the fiber channel cards (HBA) installed in the Aix server. Depending on the version of aix one or all of the commands [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to find out the type of fiber channel HBA cards installed in the Aix server.  Here are the commands I used to find the information,</p>
<p>Use the lsdev command to list the fiber channel cards (HBA) installed in the Aix server. Depending on the version of aix one or all of the commands below should work.</p>
<p>:/root > lsdev -C | grep fcs<br />
fcs0       Available 04-08         FC Adapter<br />
fcs1       Available 07-08         FC Adapter<br />
fcs2       Available 0A-08         FC Adapter<br />
fcs3       Available 0B-08         FC Adapter</p>
<p>OR</p>
<p>:/root > lscfg -vp | grep fcs<br />
  fcs2             U787B.001.DNW19B5-P1-C1-T1<br />
FC Adapter<br />
  fcs3             U787B.001.DNW19B5-P1-C2-T1<br />
FC Adapter<br />
  fcs0             U787B.001.DNW19B5-P1-C3-T1<br />
FC Adapter<br />
  fcs1             U787B.001.DNW19B5-P1-C5-T1<br />
FC Adapter                                                    </p>
<p>OR</p>
<p>itsm:/root > lsdev -Ccadapter | grep fcs<br />
fcs0      Available 04-08 FC Adapter<br />
fcs1      Available 07-08 FC Adapter<br />
fcs2      Available 0A-08 FC Adapter<br />
fcs3      Available 0B-08 FC Adapter                  </p>
<p>To find the WWN info for the Fc interface use the lscfg command.  The Network Address is the WWN, e.g. Network Address&#8230;&#8230;&#8230;&#8230;.10000000C942E65C.<br />
The firmware level is Device Specific.(Z9)&#8230;&#8230;..TS1.91A5.</p>
<p>:/root > lscfg -vl fcs0<br />
  fcs0             U787B.001.DNW19B5-P1-C3-T1  FC Adapter                       </p>
<p>        Part Number&#8230;&#8230;&#8230;&#8230;&#8230;..80P4543<br />
        EC Level&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..A<br />
        Serial Number&#8230;&#8230;&#8230;&#8230;&#8230;1F4500AC78<br />
        Manufacturer&#8230;&#8230;&#8230;&#8230;&#8230;.001F<br />
        Feature Code/Marketing ID&#8230;280B<br />
        FRU Number&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;     80P4544<br />
        Device Specific.(ZM)&#8230;&#8230;..3<br />
        Network Address&#8230;&#8230;&#8230;&#8230;.10000000C942E65C<br />
        ROS Level and ID&#8230;&#8230;&#8230;&#8230;02881955<br />
        Device Specific.(Z0)&#8230;&#8230;..1001206D<br />
        Device Specific.(Z1)&#8230;&#8230;..00000000<br />
        Device Specific.(Z2)&#8230;&#8230;..00000000<br />
        Device Specific.(Z3)&#8230;&#8230;..03000909<br />
        Device Specific.(Z4)&#8230;&#8230;..FF801413<br />
        Device Specific.(Z5)&#8230;&#8230;..02881955<br />
        Device Specific.(Z6)&#8230;&#8230;..06831955<br />
        Device Specific.(Z7)&#8230;&#8230;..07831955<br />
        Device Specific.(Z8)&#8230;&#8230;..20000000C942E65C<br />
        Device Specific.(Z9)&#8230;&#8230;..TS1.91A5<br />
        Device Specific.(ZA)&#8230;&#8230;..T1D1.91A5<br />
        Device Specific.(ZB)&#8230;&#8230;..T2D1.91A5<br />
        Device Specific.(YL)&#8230;&#8230;..U787B.001.DNW19B5-P1-C3-T1              </p>
<p>The command lsmcode will display the firmware and microcode level.<br />
:/root > lsmcode -d fcs0</p>
<p>Below is the command to list the fileset.</p>
<p>:/root > lslpp -l | grep &#8220;FC Adapter&#8221;<br />
  devices.pci.77101223.com  5.3.0.51  APPLIED    PCI FC Adapter (77101223)<br />
                            5.3.0.50  APPLIED    PCI FC Adapter (77101223)<br />
  devices.pci.77101223.rte  5.3.0.10  COMMITTED  PCI FC Adapter (77101223)<br />
  devices.pci.77102224.com  5.3.0.51  APPLIED    PCI-X FC Adapter (77102224)<br />
  devices.pci.77102224.diag  5.3.0.0  COMMITTED  PCI-X FC Adapter (77102224)<br />
  devices.pci.77102224.rte  5.3.0.50  APPLIED    PCI-X FC Adapter (77102224)<br />
  devices.pci.df1000f7.com  5.3.0.54  APPLIED    Common PCI FC Adapter Device<br />
                            5.3.0.50  APPLIED    PCI FC Adapter Device<br />
  devices.pci.df1000f7.rte  5.3.0.30  APPLIED    PCI FC Adapter Device Software<br />
  devices.pci.df1000f9.diag  5.3.0.0  COMMITTED  64-bit PCI FC Adapter Device<br />
  devices.pci.df1000f9.rte  5.3.0.30  APPLIED    64-bit PCI FC Adapter Device<br />
  devices.pci.df1000fd.rte  5.3.0.50  APPLIED    4Gb PCI-X FC Adapter Device<br />
  devices.pci.df1080f9.diag  5.3.0.0  COMMITTED  PCI-X FC Adapter Device<br />
  devices.pci.df1080f9.rte  5.3.0.30  APPLIED    PCI-X FC Adapter Device<br />
  devices.pci.77101223.com   5.3.0.0  COMMITTED  PCI FC Adapter (77101223)<br />
  devices.pci.77102224.com   5.3.0.0  COMMITTED  PCI-X FC Adapter (77102224)<br />
  devices.pci.df1000f7.com  5.3.0.54  APPLIED    Common PCI FC Adapter Device<br />
  devices.pci.df1000f7.diag  5.3.0.0  COMMITTED  PCI FC Adapter Device<br />
  devices.pci.df1000f7.rte   5.3.0.0  COMMITTED  PCI FC Adapter Device Software </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/how-to-list-the-type-of-fiber-channels-cards-and-its-wwn-info-in-aix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auditing the cron jobs scheduled on the Unix or Linux server.</title>
		<link>http://www.gamescheat.ca/2009/07/auditing-the-cron-jobs-scheduled-on-the-unix-or-linux-server/</link>
		<comments>http://www.gamescheat.ca/2009/07/auditing-the-cron-jobs-scheduled-on-the-unix-or-linux-server/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 18:54:34 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=410</guid>
		<description><![CDATA[I have recently taken ownership of a Solaris 5.9 server and am in the process of migrating the applications over to a recent release. I decided to audit the applications and configuration of all the apps installed. One of the very long list of items I needed to figure out is the cron job,i.e. any [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently taken ownership of a Solaris 5.9 server and am in the process of migrating the applications over to a recent release.  I decided to audit the applications and configuration of all the apps installed.  One of the very long list of items I needed to figure out is the cron job,i.e. any automated scripts persormed by the system.  I will explain the method I used to create a complete inventory of all cron jobs belonging to the administrator and users.</p>
<p>Cron jobs are generally stored in the default path of /var/spool/cron/crontabs.  This path is common for most Unix and Linux versions.  The easiest way to determine if a cron job is running is to goto /var/spool/cron/crontabs and list the files.  You can cat the file to see the scheduled job.</p>
<p>I was only concerned about the scheduled jobs for all active userids and wanted to make sure that I captued them all.</p>
<p>The first thing I did was to list all active user accounts using the listusers command and redirecting the output to a file all_user_names. See the example below.</p>
<p># listusers > all_user_names</p>
<p>You can view the file one page at a time using more, I copied the file to my desktop and inported it into Excel.  This way I could then take notes.</p>
<p># more all_user_names</p>
<p>You need to login as each user to see if they have any cron job.  Since I did not know the password for each user accounts I simply used to su &#8211; user_name command to logon as the user.  This will not prompt for password if you are already logged in as root or superuser.</p>
<p># su &#8211; andrew</p>
<p>After loggin in as the user, run the command crontab -l to display any scheduled job.</p>
<p>server_promtp% crontab -l<br />
# This command helps clean up user accounts.<br />
1 0 * * 0 rm /home/andrew/*.log > /dev/null 2>&#038;1</p>
<p>In the above example the # indicates a comment follows. All files with the extnsion .log is deleted very Sunday at 12:01 am.</p>
<p>If you get the message crontab: can&#8217;t open your crontab file, then it means that there are no schedule job for the the user.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2009/07/auditing-the-cron-jobs-scheduled-on-the-unix-or-linux-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TOP and TOPAZ are Unix, Linux and AIX utilities that provides real time display of top cpu using processes.</title>
		<link>http://www.gamescheat.ca/2009/05/top-and-topaz-are-unix-linux-and-aix-utilities-that-provides-real-time-display-of-top-cpu-using-processes/</link>
		<comments>http://www.gamescheat.ca/2009/05/top-and-topaz-are-unix-linux-and-aix-utilities-that-provides-real-time-display-of-top-cpu-using-processes/#comments</comments>
		<pubDate>Sun, 24 May 2009 02:07:42 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=370</guid>
		<description><![CDATA[As a server/systems administrator you will find the TOP utility very useful to determine top cpu using processes. TOP is the utility for Linux and most Unix operating systems. IBM Aix has it&#8217;s own version which does the same job, it is called Topaz. Top can be download from unixtop.org, the documentation are also avaiable [...]]]></description>
			<content:encoded><![CDATA[<p>As a server/systems administrator you will find the TOP utility very useful to determine top cpu using processes.  TOP is the utility for Linux and most  Unix operating systems.  IBM Aix has it&#8217;s own version which does the same job, it is called Topaz. </p>
<p>Top can be download from unixtop.org, the documentation are also avaiable from this site.  With Top you can also find out which account is responsible for utilizing the most cpu resources, and for how long the process has been running.  It provides a real time snapshot of the running processes.</p>
<p>Microsoft Windows has the graphical version which is called Task Manager.  To access task manager right click on the task bar, and select task manager.</p>
<p>Below is a snapshot of the Top display.</p>
<p>Mem:   2074120k total,  1290556k used,   783564k free,    91940k buffers<br />
Swap:  4064312k total,        0k used,  4064312k free,   650100k cached</p>
<p>PID      USER     PR  NI  VIRT    RES   SHR  S %CPU %MEM  TIME+ COMMAND<br />
3093   root       15   0   154m  52m  19m  S  6.3     2.6      2:08.97 firefox-bin<br />
13423 apache 15   0   37636  20m 9m    S  6.0     1.0      0:01.89  httpd<br />
2586    mysql  16    0   138m  28m 4020 S  4.7     1.4      69:12.06 mysqld</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2009/05/top-and-topaz-are-unix-linux-and-aix-utilities-that-provides-real-time-display-of-top-cpu-using-processes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

