<?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>System Adm</title>
	<atom:link href="http://www.system.adm.br/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.system.adm.br</link>
	<description>Some IT Tips (Linux, Unix, HP-UX, AIX, Solaris, etc).</description>
	<lastBuildDate>Wed, 30 Nov 2011 17:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Remove special (device) files in HP-UX</title>
		<link>http://www.system.adm.br/2011/11/remove-special-device-files-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2011/11/remove-special-device-files-in-hp-ux/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 17:59:40 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[hpux]]></category>
		<category><![CDATA[ioscan]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=395</guid>
		<description><![CDATA[You can use the command rmsf to remove special (device) files in HP-UX, example: # rmsf -H 6/0/8/1/0.0.0 Where 6/0/8/1/0.0.0 is the HW PATH of the device.]]></description>
			<content:encoded><![CDATA[<p>You can use the command rmsf to remove special (device) files in HP-UX, example:<br />
<code><span style="font-size: 12px;"># rmsf -H 6/0/8/1/0.0.0</span></code></p>
<p>Where 6/0/8/1/0.0.0 is the HW PATH of the device.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2011/11/remove-special-device-files-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove files with odd name</title>
		<link>http://www.system.adm.br/2011/11/remove-files-with-odd-name/</link>
		<comments>http://www.system.adm.br/2011/11/remove-files-with-odd-name/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 17:48:28 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[General Unix]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[odd]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[stupid user]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=389</guid>
		<description><![CDATA[Sometimes an user create a file or directory with a odd filename, for example: server@root:/root # touch /tmp/test/^Easasasasa.txt This “^E” is the result of a CTRL+E. With “ls”, we have the following: server@root:/tmp/test # ls -ltr total 0 -rw-r----- 1 root sys 0 Nov 30 15:34 asasasasa.txt Note that you cannot see the ^E in [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes an user create a file or directory with a odd filename, for example:<br />
<code><span style="font-size: 12px;">server@root:/root # touch /tmp/test/^Easasasasa.txt</span></code></p>
<p>This “^E” is the result of a CTRL+E. With “ls”, we have the following:<code><span style="font-size: 12px;"><br />
server@root:/tmp/test # ls -ltr<br />
total 0<br />
-rw-r----- 1 root sys 0 Nov 30 15:34 asasasasa.txt</span></code></p>
<p>Note that you cannot see the ^E in filename, so the system will not recognize it as “asasasasa.txt”:<code><span style="font-size: 12px;"><br />
server@root:/tmp/test # rm asasasasa.txt<br />
rm: asasasasa.txt non-existent<br />
</span></code></p>
<p>The solution is work with the file’s inode:<code><span style="font-size: 12px;"><br />
server@root:/tmp/test # ls -lia<br />
total 96<br />
11 -rw-r----- 1 root sys 0 Nov 30 15:34 asasasasa.txt<br />
5 drwxr-x--- 2 root sys 96 Nov 30 15:34 .<br />
2 drwxrwxrwt 8 root root 49152 Nov 30 15:33 ..</span></code></p>
<p>The number “11” is the inode of the odd file. Now we can remove it using the find command:<br />
<code><span style="font-size: 12px;">server@root:/tmp/test # find . -inum 11<br />
./asasasasa.txt<br />
server@root:/tmp/test # find . -inum 11 -exec rm -rf {} \;<br />
</span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2011/11/remove-files-with-odd-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Identify PV device in HP-UX 11.31</title>
		<link>http://www.system.adm.br/2011/09/identify-pv-device-in-hp-ux-11-31/</link>
		<comments>http://www.system.adm.br/2011/09/identify-pv-device-in-hp-ux-11-31/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 18:44:30 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[ioscan]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=379</guid>
		<description><![CDATA[In HP-UX 11.31, LVM doesn’t use “ctd’ (ie: /dev/rdsk/c2t1d0), but DSF to balance the throughput between many device paths., so if you need identify what physical device represent that logical device, you can use ioscan, for example: server@root:/root # vgdisplay -v vg00 --- Volume groups --- VG Name                     /dev/vg00 VG Write Access             read/write VG Status                   [...]]]></description>
			<content:encoded><![CDATA[<p>In HP-UX 11.31, LVM doesn’t use “ctd’ (ie: /dev/rdsk/c2t1d0), but DSF to balance the throughput between many device paths., so if you need identify what physical device represent that logical device, you can use ioscan, for example:<br />
<code><span style="font-size: 12px;"><br />
server@root:/root # vgdisplay -v vg00<br />
--- Volume groups ---<br />
VG Name                     /dev/vg00<br />
VG Write Access             read/write<br />
VG Status                   available<br />
Max LV                      255<br />
Cur LV                      12<br />
Open LV                     12<br />
Max PV                      16<br />
Cur PV                      1<br />
Act PV                      1<br />
Max PE per PV               4385<br />
VGDA                        2<br />
PE Size (Mbytes)            16<br />
Total PE                    4375<br />
Alloc PE                    3998<br />
Free PE                     377<br />
Total PVG                   0<br />
Total Spare PVs             0<br />
Total Spare PVs in use      0<br />
VG Version                  1.0<br />
VG Max Size                 1122560m<br />
VG Max Extents              70160</span></code><br />
<code><span style="font-size: 12px;"><br />
--- Logical volumes ---<br />
LV Name                     /dev/vg00/lvol1<br />
LV Status                   available/syncd<br />
LV Size (Mbytes)            2000<br />
Current LE                  125<br />
Allocated PE                125<br />
Used PV                     1</span></code><br />
<code><span style="font-size: 12px;"><br />
LV Name                     /dev/vg00/lvol2<br />
LV Status                   available/syncd<br />
LV Size (Mbytes)            16384<br />
Current LE                  1024<br />
Allocated PE                1024<br />
Used PV                     1<br />
<code><span style="font-size: 12px;"><br />
(...)<br />
</span></code></span></code><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><br />
LV Name                     /dev/vg00/lvol12<br />
LV Status                   available/syncd<br />
LV Size (Mbytes)            5120<br />
Current LE                  320<br />
Allocated PE                320<br />
Used PV                     1<br />
<code><span style="font-size: 12px;"><br />
--- Physical volumes ---<br />
PV Name                     <span style="color: #ff0000;">/dev/disk/disk4</span><br />
PV Status                   available<br />
Total PE                    4375<br />
Free PE                     377<br />
Autoswitch                  On<br />
Proactive Polling           On</span></code></span></code></span></code></span></code></span></code></span></code></span></code></span></code></span></code></span></code></p>
<p>Note that the pv name is “disk4”, not c2t1d3.</p>
<p>With ioscan you can reverse map it:<br />
<code><span style="font-size: 12px;"><br />
server@root:/root # ioscan -m dsf<br />
Persistent DSF           Legacy DSF(s)<br />
========================================<br />
/dev/rdisk/disk3         /dev/rdsk/c2t1d0<br />
<span style="color: #ff0000;">/dev/rdisk/disk4         /dev/rdsk/c2t0d0</span><br />
/dev/rdisk/disk5         /dev/rdsk/c0t0d0<br />
</span></code></p>
<p>Now we know that the &#8220;disk4&#8243; is the physical disk located in 12/0/1/1/0.0.0<br />
<code><span style="font-size: 12px;"><br />
root@brux0044:/root # ioscan -fnC disk<br />
Class I H/W Path Driver S/W State H/W Type Description<br />
========================================================================<br />
<span style="color: #ff0000;">disk 1298 12/0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAP3735NC</span><br />
<span style="color: #ff0000;">                         /dev/dsk/c2t0d0 /dev/rdsk/c2t0d0</span></p>
<p></span></code></p>
<p><code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2011/09/identify-pv-device-in-hp-ux-11-31/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris HBA information</title>
		<link>http://www.system.adm.br/2011/04/solaris-hba-information/</link>
		<comments>http://www.system.adm.br/2011/04/solaris-hba-information/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 21:38:06 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[fc]]></category>
		<category><![CDATA[hba]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=369</guid>
		<description><![CDATA[On a Solaris system, you can use the command fcinfo to get HBA related information: # fcinfo hba-port HBA Port WWN: 210000144fe71480 &#160;&#160;&#160;&#160;OS Device Name: /dev/cfg/c1 &#160;&#160;&#160;&#160;Manufacturer: QLogic Corp. &#160;&#160;&#160;&#160;Model: 2200 &#160;&#160;&#160;&#160;Type: L-port &#160;&#160;&#160;&#160;State: online &#160;&#160;&#160;&#160;Supported Speeds: 1Gb &#160;&#160;&#160;&#160;Current Speed: 1Gb &#160;&#160;&#160;&#160;Node WWN: 200000144fe71480 HBA Port WWN: 10000000c950c6a2 &#160;&#160;&#160;&#160;OS Device Name: /dev/cfg/c5 &#160;&#160;&#160;&#160;Manufacturer: Emulex &#160;&#160;&#160;&#160;Model: [...]]]></description>
			<content:encoded><![CDATA[<p>On a Solaris system, you can use the command fcinfo to get HBA related information:</p>
<p><code><span style="font-size: 12px;"><br />
# fcinfo hba-port<br />
HBA Port WWN: 210000144fe71480<br />
&nbsp;&nbsp;&nbsp;&nbsp;OS Device Name: /dev/cfg/c1<br />
&nbsp;&nbsp;&nbsp;&nbsp;Manufacturer: QLogic Corp.<br />
&nbsp;&nbsp;&nbsp;&nbsp;Model: 2200<br />
&nbsp;&nbsp;&nbsp;&nbsp;Type: L-port<br />
&nbsp;&nbsp;&nbsp;&nbsp;State: online<br />
&nbsp;&nbsp;&nbsp;&nbsp;Supported Speeds: 1Gb<br />
&nbsp;&nbsp;&nbsp;&nbsp;Current Speed: 1Gb<br />
&nbsp;&nbsp;&nbsp;&nbsp;Node WWN: 200000144fe71480<br />
HBA Port WWN: 10000000c950c6a2<br />
&nbsp;&nbsp;&nbsp;&nbsp;OS Device Name: /dev/cfg/c5<br />
&nbsp;&nbsp;&nbsp;&nbsp;Manufacturer: Emulex<br />
&nbsp;&nbsp;&nbsp;&nbsp;Model: LP10000-S<br />
&nbsp;&nbsp;&nbsp;&nbsp;Type: N-port<br />
&nbsp;&nbsp;&nbsp;&nbsp;State: online<br />
&nbsp;&nbsp;&nbsp;&nbsp;Supported Speeds: 1Gb 2Gb<br />
&nbsp;&nbsp;&nbsp;&nbsp;Current Speed: 2Gb<br />
&nbsp;&nbsp;&nbsp;&nbsp;Node WWN: 20000000c950c6a2<br />
HBA Port WWN: 10000000c950c6b7<br />
&nbsp;&nbsp;&nbsp;&nbsp;OS Device Name: /dev/cfg/c4<br />
&nbsp;&nbsp;&nbsp;&nbsp;Manufacturer: Emulex<br />
&nbsp;&nbsp;&nbsp;&nbsp;Model: LP10000-S<br />
&nbsp;&nbsp;&nbsp;&nbsp;Type: N-port<br />
&nbsp;&nbsp;&nbsp;&nbsp;State: online<br />
&nbsp;&nbsp;&nbsp;&nbsp;Supported Speeds: 1Gb 2Gb<br />
&nbsp;&nbsp;&nbsp;&nbsp;Current Speed: 2Gb<br />
&nbsp;&nbsp;&nbsp;&nbsp;Node WWN: 20000000c950c6b7<br />
</span></code></p>
<p>In the example above, you can see that the server has three HBAs (one QLogic and two Emulex).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2011/04/solaris-hba-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memory disposition in HP-UX</title>
		<link>http://www.system.adm.br/2011/02/memory-disposition-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2011/02/memory-disposition-in-hp-ux/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 20:32:06 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=359</guid>
		<description><![CDATA[You can use the following commando to check me memory disposition in HP-UX: echo "selclass qualifier memory;info;wait;infolog" &#124; /usr/sbin/cstm It will return something like this: Memory Board Inventory DIMM Slot Size (MB) --------- --------- 0a        256 2a        1024 1a        256 0b        256 2b        1024 1b        256 --------- --------- System [...]]]></description>
			<content:encoded><![CDATA[<p>You can use the following commando to check me memory disposition in HP-UX:<br />
<code><span style="font-size: 12px;">echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm</span></code></p>
<p>It will return something like this:<br />
<code><span style="font-size: 12px;"><br />
Memory Board Inventory</span></code></p>
<p><code><span style="font-size: 12px;">DIMM Slot      Size (MB)<br />
<code><span style="font-size: 12px;">---------      ---------<br />
<code><span style="font-size: 12px;">0a                   256<br />
<code><span style="font-size: 12px;">2a                 1024<br />
<code><span style="font-size: 12px;">1a                   256<br />
<code><span style="font-size: 12px;">0b                   256<br />
<code><span style="font-size: 12px;">2b                 1024<br />
<code><span style="font-size: 12px;">1b                   256<br />
<code><span style="font-size: 12px;">---------      ---------<br />
System Total (MB):  3072</span></code></span></code></span></code></span></code></span></code></span></code></span></code></span></code></span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2011/02/memory-disposition-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create *.db files for sendmail</title>
		<link>http://www.system.adm.br/2011/01/create-db-files-for-sendmail/</link>
		<comments>http://www.system.adm.br/2011/01/create-db-files-for-sendmail/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 18:46:29 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[General Unix]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=355</guid>
		<description><![CDATA[You can use the following command to create a *.db file to be used, for example, in sendmail: makemap btree /etc/userdb.db &#60; /etc/userdb It will create a userdb.db based in the userdb file]]></description>
			<content:encoded><![CDATA[<p>You can use the following command to create a *.db file to be used, for example, in sendmail:</p>
<p><code><span style="font-size: 12px;">makemap btree /etc/userdb.db &lt; /etc/userdb</span></code></p>
<p>It will create a userdb.db based in the userdb file</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2011/01/create-db-files-for-sendmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovery files from a IGNITE HP-UX backup</title>
		<link>http://www.system.adm.br/2010/11/recovery-files-from-a-ignite-hp-ux-backup/</link>
		<comments>http://www.system.adm.br/2010/11/recovery-files-from-a-ignite-hp-ux-backup/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 17:54:50 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=349</guid>
		<description><![CDATA[If you have a backup made using the ignite tool on a HP-UX, you can use the following commands to recovery just a part of it. For PA-RISC: -Rewind the tape mt -t /dev/rmt/0mn rew -Forward to the sector after the boot mt -t /dev/rmt/0mn fsf 1 -Use tar to extract the file tar xvf [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a backup made using the ignite tool on a HP-UX, you can use the following commands to recovery just a part of it.</p>
<p>For <strong>PA-RISC</strong>:<br />
-Rewind the tape<br />
<code><span style="font-size: 12px;">mt -t /dev/rmt/0mn rew</span></code></p>
<p>-Forward to the sector after the boot<br />
<code><span style="font-size: 12px;">mt -t /dev/rmt/0mn fsf 1</span></code></p>
<p>-Use tar to extract the file<br />
<code><span style="font-size: 12px;">tar xvf /dev/rmt/0mn etc/hosts</span></code></p>
<p>For <strong>Itanium2</strong>:<br />
-Rewind the tape<br />
<code><span style="font-size: 12px;">mt -t /dev/rmt/0mn rew</span></code></p>
<p>-Forward to the sector after the boot<br />
<code><span style="font-size: 12px;">mt -t /dev/rmt/0mn fsf 22</span></code></p>
<p>-Use tar to extract the file<br />
<code><span style="font-size: 12px;">tar xvf /dev/rmt/0mn etc/hosts</span></code></p>
<p>NOTE: change &#8220;/dev/rmt/0mn&#8221; to your tape device. If you don&#8217;t know what it is, run the command &#8220;ioscan -fnC tape&#8221; do find it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/11/recovery-files-from-a-ignite-hp-ux-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert a text to/from UPPER to/from lower</title>
		<link>http://www.system.adm.br/2010/11/convert-a-text-tofrom-upper-tofrom-lower/</link>
		<comments>http://www.system.adm.br/2010/11/convert-a-text-tofrom-upper-tofrom-lower/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 13:42:19 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[General Unix]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=343</guid>
		<description><![CDATA[You can use the following command do convert a file content from upper case do lower case: cat /tmp/upper_file.txt &#124;tr '[:upper:]' '[:lower:]' &#62; /tmp/lower_file.txt Or the following command to convert from lower to upper case: cat /tmp/lower_file.txt &#124;tr '[:lower:]' '[:upper:]' &#62; /tmp/upper_file.txt]]></description>
			<content:encoded><![CDATA[<p>You can use the following command do convert a file content from upper case do lower case:</p>
<p><code><span style="font-size: 12px;">cat /tmp/upper_file.txt |tr '[:upper:]' '[:lower:]' &gt; /tmp/lower_file.txt</span></code></p>
<p>Or the following command to convert from lower to upper case:</p>
<p><code><span style="font-size: 12px;">cat /tmp/lower_file.txt |tr '[:lower:]' '[:upper:]' &gt; /tmp/upper_file.txt</span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/11/convert-a-text-tofrom-upper-tofrom-lower/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing password aging restrictions in HP-UX</title>
		<link>http://www.system.adm.br/2010/10/removing-password-aging-restrictions-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2010/10/removing-password-aging-restrictions-in-hp-ux/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 18:32:41 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[hpux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sysadm]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=338</guid>
		<description><![CDATA[To remove all passwords aging restriction in HP-UX, you can use the following command: /usr/lbin/modprpw -m llog=0,mintm=0,exptm=0,lftm=0,expwarn=0,umaxlntr=0 username Where: llog &#8211; Set the last login time interval (days); mintm &#8211; Set the minimum time interval between password changes (days). 0 = none; exptm &#8211; Set password expiration time interval (days). 0 = not expired; lftm [...]]]></description>
			<content:encoded><![CDATA[<p>To remove all passwords aging restriction in HP-UX, you can use the following command:<br />
<code><span style="font-size: 12px;">/usr/lbin/modprpw -m llog=0,mintm=0,exptm=0,lftm=0,expwarn=0,umaxlntr=0 username</span></code></p>
<p>Where:<br />
llog &#8211; Set the last login time interval (days);<br />
mintm &#8211; Set the minimum time interval between password changes (days). 0 = none;<br />
exptm &#8211; Set password expiration time interval (days). 0 = not expired;<br />
lftm &#8211; Set password life time interval (days).  0 = infinite;<br />
expwarn &#8211; Set password expiration time interval (days). 0 = not expired;<br />
umaxlntr &#8211; Set Maximum Unsuccessful Login tries allowed. 0 = infinite.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/10/removing-password-aging-restrictions-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check HBA card settings in HP-UX</title>
		<link>http://www.system.adm.br/2010/09/how-to-check-hba-card-settings-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2010/09/how-to-check-hba-card-settings-in-hp-ux/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 19:53:45 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[fc]]></category>
		<category><![CDATA[hba]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=329</guid>
		<description><![CDATA[First of all, you need if the device exists: myserver@root:/root # ioscan -fnC fc Class&#160;&#160;&#160;&#160; I&#160; H/W Path&#160;&#160;&#160; Driver S/W State&#160;&#160; H/W Type&#160;&#160;&#160;&#160; Description =================================================================== fc&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1&#160; 0/0/4/1/0&#160;&#160; fcd&#160; CLAIMED&#160;&#160;&#160;&#160; INTERFACE&#160;&#160;&#160; HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1) &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; /dev/fcd1 fc&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2&#160; 0/0/10/1/0&#160; fcd&#160; CLAIMED&#160;&#160;&#160;&#160; INTERFACE&#160;&#160;&#160; HP AB378-60101 4Gb Single [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, you need if the device exists:</p>
<p>	<span style="font-size: 12px;"><kbd>myserver@root:/root # ioscan -fnC fc<br />
	Class&nbsp;&nbsp;&nbsp;&nbsp; I&nbsp; H/W Path&nbsp;&nbsp;&nbsp; Driver S/W State&nbsp;&nbsp; H/W Type&nbsp;&nbsp;&nbsp;&nbsp; Description<br />
	===================================================================<br />
	fc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0/0/4/1/0&nbsp;&nbsp; fcd&nbsp; CLAIMED&nbsp;&nbsp;&nbsp;&nbsp; INTERFACE&nbsp;&nbsp;&nbsp; HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /dev/fcd1<br />
	fc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp; 0/0/10/1/0&nbsp; fcd&nbsp; CLAIMED&nbsp;&nbsp;&nbsp;&nbsp; INTERFACE&nbsp;&nbsp;&nbsp; HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /dev/fcd2<br />
	fc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp; 0/0/12/1/0&nbsp; fcd&nbsp; CLAIMED&nbsp;&nbsp;&nbsp;&nbsp; INTERFACE&nbsp;&nbsp;&nbsp; HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /dev/fcd3<br />
	fc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; 0/0/13/1/0&nbsp; fcd&nbsp; CLAIMED&nbsp;&nbsp;&nbsp;&nbsp; INTERFACE&nbsp;&nbsp;&nbsp; HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /dev/fcd0</kbd></span></p>
<p>	Now, you can check the settings:<br />
	<code><span style="font-size: 12px;"><kbd>myserver@root:/root # fcmsutil /dev/fcd1<br />
	<tt><br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vendor ID is = 0x001077<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Device ID is = 0x002422<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PCI Sub-system Vendor ID is = 0x00103c<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PCI Sub-system ID is = 0x0012d6</tt><br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PCI Mode = PCI-X 133 MHz<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ISP Code version = 4.0.22<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ISP Chip version = 3<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Topology = PTTOPT_FABRIC<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link Speed = 4Gb<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Local N_Port_id is = 0x020300<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Previous N_Port_id is = None<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N_Port Node World Wide Name = 0x5001438002fdf7c3<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N_Port Port World Wide Name = 0x5001438002fdf7c2<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Switch Port World Wide Name = 0x200300051e365dca<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Switch Node World Wide Name = 0x100000051e365dca<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Driver state = ONLINE<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hardware Path is = 0/0/4/1/0<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Maximum Frame Size = 2048<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Driver-Firmware Dump Available = NO<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Driver-Firmware Dump Timestamp = N/A<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Driver Version = @(#) libfcd.a HP Fibre Channel ISP 23xx &amp; 24xx Driver B.11.23.06 /ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Jun 23 2006,14:06:46</kbd></span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/09/how-to-check-hba-card-settings-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove/move/copy/rename file that has a non-printable name</title>
		<link>http://www.system.adm.br/2010/09/how-to-removemovecopyrename-file-that-has-a-non-printable-name/</link>
		<comments>http://www.system.adm.br/2010/09/how-to-removemovecopyrename-file-that-has-a-non-printable-name/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 19:34:08 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[General Unix]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=324</guid>
		<description><![CDATA[How to remove/move/copy/rename file that has a non-printable name, for example: backup@root:/home/userhome/test # ls -la total 2 -rw-rw-rw- 1 root sys 0 Sep 23 15:48 drwxrwxrwx 2 root sys 96 Sep 23 15:50 . drwxr-xr-x 5 userhome adm 1024 Sep 23 16:20 .. -rw-rw-rw- 1 root sys 0 Sep 23 15:47 -test The easiest one [...]]]></description>
			<content:encoded><![CDATA[<p>How to remove/move/copy/rename file that has a non-printable name, for example:<br />
	<span style="font-size: 12px;"><code><br />
	backup@root:/home/userhome/test # ls -la<br />
	total 2<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:48<br />
	drwxrwxrwx 2 root sys 96 Sep 23 15:50 .<br />
	drwxr-xr-x 5 userhome adm 1024 Sep 23 16:20 ..<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:47 -test<br />
	</code></span><br />
	The easiest one is the file named &quot;-test&quot;, you can do a &quot;<span style="font-size: 12px;"><code>mv -- -test xx</code></span>&quot; to rename it to test, getting rid of the &quot;-&quot;.</p>
<p>	The most annoying is the other file, which apparently has the name &quot;blank&quot;, but not quite.</p>
<p>	There are two ways to find the real file name.,&quot;ls -lq&quot; e &quot;ls -lb&quot;:</p>
<p>	<span style="font-size: 12px;"><code> backup@root:/home/userhome/test # ls -lq<br />
	total 0<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:48 ?<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:47 xx<br />
	backup@root:/home/userhome/test # ls -lb<br />
	total 0<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:48 \002<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:47 xx<br />
	backup@root:/home/userhome/test # ls -li<br />
	total 0<br />
	17334 -rw-rw-rw- 1 root sys 0 Sep 23 15:48<br />
	17332 -rw-rw-rw- 1 root sys 0 Sep 23 15:47 xx<br />
	</code></span><br />
	The &quot;ls -lb&quot; shows the non-printable characters with &quot;\ XXX&quot; where XXX is the ASCII representation of the non-printable character.<br />
	The &quot;ls -lq&quot; shows the non-printable characters with &quot;???&quot; (quantity of ? is defined by the amount of non-printable caracters).<br />
	The &quot;ls -li&quot; shows the file inode.</p>
<p>	To handle this file, the best option is to use the &quot;find&quot;.</p>
<p>	- Using the find based on the inode:<br />
	<span style="font-size: 12px;"><code>find . -inum 17334 -exec mv {} asd \;</code></span></p>
<p>	- Using find with &quot;wildcards&quot; (based on the ls-lq returned):<br />
	<span style="font-size: 12px;"><code>find . -type f -name &quot;?&quot; -exec mv {} asd \;</code></span></p>
<p>	Be careful when using the find with &quot;meta character&quot;! If a file whose name has only one character, it will enter the result.<br />
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/09/how-to-removemovecopyrename-file-that-has-a-non-printable-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AIX and user access denied</title>
		<link>http://www.system.adm.br/2010/05/aix-and-user-access-denied/</link>
		<comments>http://www.system.adm.br/2010/05/aix-and-user-access-denied/#comments</comments>
		<pubDate>Wed, 19 May 2010 20:11:00 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[Aix]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=297</guid>
		<description><![CDATA[AIX has a security feature named unsuccessful_login_count (/etc/security/lastlog) . It is an user account feature that count the number of unsuccessful login attempts and it works conjunction with the user&#39;s loginretries (/etc/security/user) attribute. So, if you configure the loginretries=5, the user will not be able to log in after 5 retries. To enable the login [...]]]></description>
			<content:encoded><![CDATA[<p>AIX has a security feature named unsuccessful_login_count (/etc/security/lastlog) . It is an user account feature that count the number of unsuccessful login attempts and it works conjunction with the user&#39;s loginretries (/etc/security/user) attribute.</p>
<p>	So, if you configure the loginretries=5, the user will not be able to log in after 5 retries. To enable the login again, you should reset the unsuccessful_login_count parameter by editing the file /etc/security/lastlog or with the following command:</p>
<p>	<span style="font-size: 12px;"><code># chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s foobar</code></span></p>
<p>	You can identify this problem by the following message in syslog:</p>
<p>	<span style="font-size: 12px;"><code>May 19 15:42:41 aixbox auth|security:info sshd[7884888]: Login restricted for foobar: 3004-303 There have been too<br />
	many unsuccessful login attempts; please see \tthe system administrator.</code></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/05/aix-and-user-access-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change user settings and password attributes in AIX</title>
		<link>http://www.system.adm.br/2010/05/change-user-settings-and-password-attributes-in-aix/</link>
		<comments>http://www.system.adm.br/2010/05/change-user-settings-and-password-attributes-in-aix/#comments</comments>
		<pubDate>Tue, 11 May 2010 14:03:53 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[Aix]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=294</guid>
		<description><![CDATA[To change some user and password settings in AIX, you should use the command &#34;chuser&#34;. Follow some available parameters: - loginretries -&#62; number of login failures before lock the account. - maxage -&#62; maximum age of a password (in weeks) - gecos -&#62; general information about the user. - groups - home - minlen -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>To change some user and password settings in AIX, you should use the command &quot;chuser&quot;. Follow some available parameters:</p>
<p>	- loginretries -&gt; number of login failures before lock the account.<br />
	- maxage -&gt; maximum age of a password (in weeks)<br />
	- gecos -&gt; general information about the user.<br />
	- groups<br />
	- home<br />
	- minlen -&gt; minimum password length<br />
	- pgrp -&gt; primary group</p>
<p>	Example:<br />
	<span style="font-size: 12px;"><code># chuser loginretries=&#39;0&#39; maxage=&#39;0&#39; gecos=&#39;User Foo Bar&#39; groups=&#39;group1,group2,group3&#39; home=&#39;/home/foobar&#39; minlen=&#39;7&#39; pgrp=&#39;groupX&#39; &lt;username&gt;</code></span></p>
<p>	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/05/change-user-settings-and-password-attributes-in-aix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unlock user account in AIX</title>
		<link>http://www.system.adm.br/2010/05/unlock-user-account-in-aix/</link>
		<comments>http://www.system.adm.br/2010/05/unlock-user-account-in-aix/#comments</comments>
		<pubDate>Tue, 11 May 2010 13:38:49 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[Aix]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=292</guid>
		<description><![CDATA[To unlock an user account in AIX, you should use the following command: # chuser account_locked=&#39;false&#39; &#60;username&#62;]]></description>
			<content:encoded><![CDATA[<p>To unlock an user account in AIX, you should use the following command:</p>
<p>	<span style="font-size: 12px;"><code># chuser account_locked=&#39;false&#39; &lt;username&gt;</code></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/05/unlock-user-account-in-aix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lock user account in AIX</title>
		<link>http://www.system.adm.br/2010/05/lock-user-account-in-aix/</link>
		<comments>http://www.system.adm.br/2010/05/lock-user-account-in-aix/#comments</comments>
		<pubDate>Tue, 11 May 2010 13:37:33 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[Aix]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=290</guid>
		<description><![CDATA[To lock an user account in AIX, you should use the following command: # chuser account_locked=&#39;true&#39; &#60;username&#62;]]></description>
			<content:encoded><![CDATA[<p>To lock an user account in AIX, you should use the following command:</p>
<p>	<span style="font-size: 12px;"><code># chuser account_locked=&#39;true&#39; &lt;username&gt;</code></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/05/lock-user-account-in-aix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Increase lvol size in HP-UX</title>
		<link>http://www.system.adm.br/2010/05/increase-lvol-size-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2010/05/increase-lvol-size-in-hp-ux/#comments</comments>
		<pubDate>Fri, 07 May 2010 21:11:21 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[fs]]></category>
		<category><![CDATA[hpux]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=285</guid>
		<description><![CDATA[Let&#8217;s assume that you want to increase 1Gb of the /dev/MyVG /lvol1 device (mounted as /filesystem): # bdf /filesystem Filesystem&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; kbytes&#160;&#160;&#160; used&#160;&#160; avail %used Mounted on /dev/ MyVG /lvol1 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 573440000 533892407 37080557&#160;&#160; 94% /filesystem The actual size is 573440000 Kb (573 Gb) and you will increase it to 574440000 Kb (574 Gb). - Check [...]]]></description>
			<content:encoded><![CDATA[<p>Let&rsquo;s assume that you want to increase 1Gb of the /dev/MyVG /lvol1 device (mounted as /filesystem):<br />
	<span style="font-size: 12px;"><code># bdf /filesystem<br />
	Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; kbytes&nbsp;&nbsp;&nbsp; used&nbsp;&nbsp; avail %used Mounted on<br />
	/dev/ MyVG /lvol1<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 573440000 533892407 37080557&nbsp;&nbsp; 94% /filesystem<br />
	</code></span> <br />
	The actual size is 573440000 Kb (573 Gb) and you will increase it to 574440000 Kb (574 Gb).</p>
<p>	- Check if there is available space in the Volume Group:<br />
	<span style="font-size: 12px;"><code># vgdisplay MyVG<br />
	--- Volume groups ---<br />
	VG Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /dev/MyVG<br />
	VG Write Access&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read/write<br />
	VG Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; available<br />
	Max LV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 255<br />
	Cur LV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br />
	Open LV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br />
	Max PV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100<br />
	Cur PV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17<br />
	Act PV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17<br />
	Max PE per PV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 15000<br />
	VGDA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 34<br />
	PE Size (Mbytes)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16<br />
	Total PE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 36907<br />
	Alloc PE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 35000<br />
	Free PE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1907<br />
	Total PVG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br />
	Total Spare PVs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br />
	Total Spare PVs in use&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</p>
<p>	</code></span> Note the &ldquo;Free PE&rdquo; and &ldquo;PE Size (Mbytes)&rdquo;. It say that you has 30512 Mb (30Gb) available in MyVG (Free PE * PE Size).</p>
<p>	- Increase the lvol:<br />
	<span style="font-size: 12px;"><code># lvextend -L 574440 /dev/MyVG/lvol1<br />
	</code></span> * the syntax is: lvexten -L &lt;new size in Mb&gt; &lt;lvol path&gt;</p>
<p>	- Now, increase the filesystem:<br />
	<span style="font-size: 12px;"><code># fsadm -b 574440m /filesystem<br />
	</code></span> * the syntax is: fsadm &ndash;b &lt;new size in Mb&gt; &lt;mount point&gt;<br />
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/05/increase-lvol-size-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the HP-UX hostname</title>
		<link>http://www.system.adm.br/2010/05/changing-the-hp-ux-hostname/</link>
		<comments>http://www.system.adm.br/2010/05/changing-the-hp-ux-hostname/#comments</comments>
		<pubDate>Fri, 07 May 2010 18:08:34 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[hpux]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=282</guid>
		<description><![CDATA[To change the hostname in HP-UX: - Edit the file &#34;/etc/rc.config.d/netconf&#34; # /etc/rc.config.d/netconf - Look for the line that starts with HOSTNAME and change the hostname, example: HOSTNAME=&#34;mylittleserver&#34; - Now, apply the change: # /sbin/init.d/hostname start]]></description>
			<content:encoded><![CDATA[<p>To change the hostname in HP-UX:</p>
<p>	- Edit the file &quot;/etc/rc.config.d/netconf&quot;<br />
	<span style="font-size: 12px;"><code># /etc/rc.config.d/netconf<br />
	</code></span> <br />
	- Look for the line that starts with HOSTNAME and change the hostname, example:<br />
	<span style="font-size: 12px;"><code>HOSTNAME=&quot;mylittleserver&quot;<br />
	</code></span> <br />
	- Now, apply the change:<br />
	<span style="font-size: 12px;"><code># /sbin/init.d/hostname start</code></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/05/changing-the-hp-ux-hostname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename a Super Dome Partition</title>
		<link>http://www.system.adm.br/2010/04/rename-a-super-dome-partition/</link>
		<comments>http://www.system.adm.br/2010/04/rename-a-super-dome-partition/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 14:31:40 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[console]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=240</guid>
		<description><![CDATA[To rename a Super Dome Partition (for example change the name that is showed in the MP console menu), do the following: Login into any host of this SD and run: parmodify -p &#60;partition number&#62; -P &#60;partition name&#62; Example: parmodify -p 2 -P WEBSERVER01 &#160;]]></description>
			<content:encoded><![CDATA[<p>To rename a Super Dome Partition (for example change the name that is showed in the MP console menu), do the following:</p>
<p>	Login into any host of this SD and run:<br />
	<span style="font-size: 12px;"><code>parmodify -p &lt;partition number&gt; -P &lt;partition name&gt;</code></span><br />
	Example:<br />
	<span style="font-size: 12px;"><code>parmodify -p 2 -P WEBSERVER01</code></span><br />
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/04/rename-a-super-dome-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating partition table in Linux</title>
		<link>http://www.system.adm.br/2010/03/updating-partition-table-in-linux/</link>
		<comments>http://www.system.adm.br/2010/03/updating-partition-table-in-linux/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 14:53:16 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=232</guid>
		<description><![CDATA[When you use the &#34;fdisk&#34; to handle the partitions of a disk, depending on the disc, the &#34;fdisk&#34; will bring the following message: WARNING: Re-reading the partition table failed with error 22: Invalid argument. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. No, you [...]]]></description>
			<content:encoded><![CDATA[<p>When you use the &quot;fdisk&quot; to handle the partitions of a disk, depending on the disc, the &quot;fdisk&quot; will bring the following message:</p>
<p><span style="font-size: 12px;"><code>WARNING: Re-reading the partition table failed with error 22: Invalid argument.<br />
	The kernel still uses the old table.<br />
	The new table will be used at the next reboot.<br />
	Syncing disks.</code></span></p>
<p>	No, you do not have to restart the server for the changes are applied, simply use the following command (example):<br />
	<span style="font-size: 12px;"><code>kpartx -a /dev/sda</code></span></p>
<p>	This will re-read the partition table on /dev/sda and create the mapping of the system partitions (/dev/sda1, /dev/sda2, etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/03/updating-partition-table-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Physical memory in AIX</title>
		<link>http://www.system.adm.br/2010/02/physical-memory-in-aix/</link>
		<comments>http://www.system.adm.br/2010/02/physical-memory-in-aix/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:56:21 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[Aix]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[hardware]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=218</guid>
		<description><![CDATA[To check the amount of physical RAM that a AIX Server has, you can use the following commands: # lsattr -El sys0 &#124; grep realmem realmem 16121856 Amount of usable physical memory in Kbytes or # lsattr -El mem0 goodsize 15744 Amount of usable physical memory in Mbytes False size 15744 Total amount of physical [...]]]></description>
			<content:encoded><![CDATA[<p>To check the amount of physical RAM that a AIX Server has, you can use the following commands:</p>
<p>
	<span style="font-size: 12px;"><code><br />
	# lsattr -El sys0 | grep realmem<br />
	realmem 16121856 Amount of usable physical memory in Kbytes</code><br />
	</span><br />
	or</p>
<p>	<span style="font-size: 12px;"><code># lsattr -El mem0<br />
	goodsize 15744 Amount of usable physical memory in Mbytes False<br />
	size 15744 Total amount of physical memory in Mbytes False</code></span></p>
<p>	or</p>
<p>	<span style="font-size: 12px;"><code># prtconf|grep &quot;Memory Size&quot;<br />
	Memory Size: 15744 MB Good Memory Size: 15744 MB</code></span></p>
<p>	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/02/physical-memory-in-aix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

