<?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"
	>

<channel>
	<title>UNIX notes</title>
	<atom:link href="http://www.unixnotes.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixnotes.org</link>
	<description>O unix, o universo e tudo mais.</description>
	<pubDate>Tue, 09 Sep 2008 15:20:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Aix - Como renomear um filesystem</title>
		<link>http://www.unixnotes.org/2008/09/09/aix-como-renomear-um-filesystem/</link>
		<comments>http://www.unixnotes.org/2008/09/09/aix-como-renomear-um-filesystem/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 15:20:34 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[aix]]></category>

		<category><![CDATA[lvm (logical volume manager)]]></category>

		<category><![CDATA[filesystem]]></category>

		<category><![CDATA[renomear]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=125</guid>
		<description><![CDATA[Receita básica sobre como renomear um filesystem no Aix:

1 - Desmonte o filesystem
2 - Renomeie-o
3 - Monte o filesystem com novo nome

Para renomear utilize o comando chfs:]]></description>
			<content:encoded><![CDATA[<p>Receita básica sobre como renomear um filesystem no Aix:</p>
<p>1 - Desmonte o filesystem<br />
2 - Renomeie-o<br />
3 - Monte o filesystem com novo nome</p>
<p>Para renomear utilize o comando chfs:</p>
<blockquote><p>chfs -m [new filesystem name] [old filesystem name]</p></blockquote>
<p><strong>Referência:</strong></p>
<p>Man page do comando chfs: <a title="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/chfs.htm" href="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/chfs.htm" target="_blank">http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/chfs.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/09/09/aix-como-renomear-um-filesystem/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Alguns comandos - Veritas Volume Manager</title>
		<link>http://www.unixnotes.org/2008/09/08/alguns-comandos-veritas-volume-manager/</link>
		<comments>http://www.unixnotes.org/2008/09/08/alguns-comandos-veritas-volume-manager/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 15:15:17 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[comandos]]></category>

		<category><![CDATA[veritas]]></category>

		<category><![CDATA[veritas volume manager]]></category>

		<category><![CDATA[vxvm]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=72</guid>
		<description><![CDATA[Segue uma lista com alguns comandos do Veritas Volume Manager, úteis no dia a dia de administração de sistemas com Veritas.]]></description>
			<content:encoded><![CDATA[<p>Segue uma lista com alguns comandos do Veritas Volume Manager, úteis no dia a dia de administração de sistemas com Veritas.</p>
<ul>
<li>Localização (PATH) dos comandos Veritas:</li>
</ul>
<blockquote>
<p class="MsoNormal">/etc/vx/bin</p>
</blockquote>
<ul>
<li>Reconfigurar o Veritas:</li>
</ul>
<blockquote>
<p class="MsoNormal"># vxdctl enable</p>
</blockquote>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<ul>
<li>Listar discos, volumes e status:</li>
</ul>
<p style="padding-left: 30px;">
<blockquote><p># vxdisk list<br />
DEVICE       TYPE      DISK         GROUP        STATUS<br />
EMC1_0       sliced    disk01  diskgroup    online<br />
EMC1_1       sliced    disk02  diskgroup    online<br />
c1t0d0s2     sliced    rootdisk     rootdg       online<br />
c1t1d0s2     sliced    rootmirror   rootdg       online<br />
c1t2d0s2     sliced    -            -            online<br />
c1t3d0s2     sliced    -            -            online</p></blockquote>
<ul>
<li>Criar um novo volume:</li>
</ul>
<p style="padding-left: 30px;"><em>Ex: Criando um volume de 10 GB:</em></p>
<p style="padding-left: 30px;">Se não especificar o diskgroup, por default, o volume será criado no rootdg</p>
<blockquote><p># vxassist make [volume name] 10240m</p></blockquote>
<p style="padding-left: 30px;">Especificando o diskgroup:</p>
<blockquote><p># vxassist -g [diskgroup] make [volume name] 10240m</p></blockquote>
<ul>
<li>Listar informações detalhadas de um volume group:</li>
</ul>
<blockquote><p># vxprint -g [diskgroup] -ht</p></blockquote>
<ul>
<li>Criar filesystem no Solaris, caso não use o Veritas filesystem:</li>
</ul>
<blockquote><p># newfs /dev/vx/<strong>r</strong>dsk/[diskgroup]/[volume name]</p></blockquote>
<ul>
<li>Renomear um volume:</li>
</ul>
<blockquote><p># vxedit -g [diskgroup] rename [old name] [new name]</p></blockquote>
<ul>
<li>Remover um volume:</li>
</ul>
<blockquote><p># vxassist -g [diskgroup] remove volume [volume name]</p></blockquote>
<ul>
<li>Aumentar um filesystem (vxfs ou ufs)</li>
</ul>
<p style="padding-left: 30px;"><em>Ex: Aumentando em 1 GB</em></p>
<blockquote><p># df -k /filesystem<br />
Filesystem                         Kbytes        used    avail capacity  Mounted on<br />
/dev/vx/dsk/[diskgroup name]/[volume name]    10321884   10166012 52654   100%    /filesystem</p>
<p># /etc/vx/bin/vxresize -F [filesystem type] -g [disk group] [volume name] +1g</p></blockquote>
<p><strong>Referências:</strong></p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--></p>
<p><!--[if gte mso 10]><br />
<mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --></p>
<ol>
<li> <!--[endif]--><span style="font-size: 10pt; font-family: Arial;">875-3053-10 - </span><span style="font-size: 10pt; font-family: Arial;">VERITAS Volume Manager, </span><span style="font-size: 10pt; font-family: Arial;">Command Line Interface, Administrator’s Guide: <a title="http://docs.filibeto.org/products-n-solutions/hardware/docs/pdf/875-3053-10.pdf" href="http://docs.filibeto.org/products-n-solutions/hardware/docs/pdf/875-3053-10.pdf" target="_blank">http://docs.filibeto.org/products-n-solutions/hardware/docs/pdf/875-3053-10.pdf</a></span></li>
<li>Basic VxVM Commands: <a title="http://eval.veritas.com/downloads/van/vm_quickref.pdf" href="http://eval.veritas.com/downloads/van/vm_quickref.pdf" target="_blank">http://eval.veritas.com/downloads/van/vm_quickref.pdf</a></li>
<li>vxresize man page: <a title="http://www.cuddletech.com/veritas/man/vxresize.m" href="http://www.cuddletech.com/veritas/man/vxresize.m" target="_blank">http://www.cuddletech.com/veritas/man/vxresize.m</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/09/08/alguns-comandos-veritas-volume-manager/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AIX - Backup de um VG usando savevg</title>
		<link>http://www.unixnotes.org/2008/08/11/aix-backup-de-um-vg-usando-savevg/</link>
		<comments>http://www.unixnotes.org/2008/08/11/aix-backup-de-um-vg-usando-savevg/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 14:57:31 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[aix]]></category>

		<category><![CDATA[backup]]></category>

		<category><![CDATA[lvm (logical volume manager)]]></category>

		<category><![CDATA[savevg]]></category>

		<category><![CDATA[ulimit]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=68</guid>
		<description><![CDATA[Caso deseje-se fazer o backup de um VG inteiro, pode-se utilizar o comando savevg no AIX.
Será criada uma imagem do VG, que pode ser restaurada caso necessário.
Antes de fazer o backup via savevg, defina os limites para unlimited, de modo a garantir que o backup seja criado mesmo que o tamanho exceda 2 GB:
ulimit -f [...]]]></description>
			<content:encoded><![CDATA[<p>Caso deseje-se fazer o backup de um VG inteiro, pode-se utilizar o comando savevg no AIX.</p>
<p>Será criada uma imagem do VG, que pode ser restaurada caso necessário.</p>
<p>Antes de fazer o backup via savevg, defina os limites para unlimited, de modo a garantir que o backup seja criado mesmo que o tamanho exceda 2 GB:</p>
<p style="padding-left: 30px;">ulimit -f unlimited (limite de tamanho de arquivo)<br />
ulimit -d unlimited (limite de tamanho da área de dados)</p>
<p>Execute o comando savevg. Abaixo segue um exemplo com algumas opções:</p>
<p><strong>/usr/bin/savevg  -f/path/nomedoarquivo -i -m -e -X nomedovg</strong></p>
<p>-f: nome do arquivo</p>
<p>-i: cria o arquivo de dados chamando o comando mkvgdata</p>
<p>-m: adiciona as informações de mapa do VG</p>
<p>-e: exclui arquivos definidos no /etc/exclude.nomedovg</p>
<p>-X: expande automaticamente o /tmp caso necessário.</p>
<p><strong>Exemplo:</strong></p>
<p style="padding-left: 30px;">$ /usr/bin/savevg  -f/mnt/foo-20080811.foovg -i -m -e -X foovg</p>
<p style="padding-left: 30px;">Creating information file for volume group midwarevg..</p>
<p style="padding-left: 30px;">Creating list of files to back up.<br />
Backing up 27958 files&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
27958 of 27958 files (100%)<br />
0512-038 savevg: Backup Completed Successfully.<br />
$</p>
<p style="padding-left: 30px;">$ ls -l /mnt/fooserver-20080811.foovg<br />
-rw-r&#8212;&#8211;   1 nobody   nobody   1246566400 Jun 18 14:10 /mnt/foos-20080811.foovg<br />
$</p>
<p><strong>Referência:</strong></p>
<ul>
<li>&#8220;Commands reference: savevg command&#8221;: <a title="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds5/savevg.htm" href="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds5/savevg.htm" target="_blank">http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds5/savevg.htm</a></li>
<li>&#8220;Commands reference: ulimit command&#8221;: <a title="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/mkcd.htm" href="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/mkcd.htm" target="_blank">http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/mkcd.htm</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/08/11/aix-backup-de-um-vg-usando-savevg/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Aix - Como desbloquear e zerar tentativas falhas de login de um usuário</title>
		<link>http://www.unixnotes.org/2008/08/08/aix-como-desbloquear-e-zerar-tentativas-falhas-de-login-de-um-usuario/</link>
		<comments>http://www.unixnotes.org/2008/08/08/aix-como-desbloquear-e-zerar-tentativas-falhas-de-login-de-um-usuario/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 16:47:32 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[aix]]></category>

		<category><![CDATA[usuários]]></category>

		<category><![CDATA[chsec]]></category>

		<category><![CDATA[desbloquear]]></category>

		<category><![CDATA[falha]]></category>

		<category><![CDATA[login]]></category>

		<category><![CDATA[lsuser]]></category>

		<category><![CDATA[usuario]]></category>

		<category><![CDATA[zerar]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=83</guid>
		<description><![CDATA[No Aix podemos especificar quantas tentativas de login são permitidas para um usuário antes de travá-lo.
Caso um usuário trave sua conta, é preciso zerar o contador de logins além de destravá-lo para que ele possa logar novamente.
Para fazer isto, você pode usar o comando chsec conforme mostrado a seguir:
- Lista tentativas de login sem sucesso:
# [...]]]></description>
			<content:encoded><![CDATA[<p>No Aix podemos especificar quantas tentativas de login são permitidas para um usuário antes de travá-lo.</p>
<p>Caso um usuário trave sua conta, é preciso zerar o contador de logins além de destravá-lo para que ele possa logar novamente.</p>
<p>Para fazer isto, você pode usar o comando <strong><em>chsec</em> </strong>conforme mostrado a seguir:</p>
<p>- Lista tentativas de login sem sucesso:</p>
<p style="padding-left: 30px;"># lsuser -f [username] |grep unsuccessful_login_count<br />
unsuccessful_login_count=8</p>
<p>- Listar se a conta está bloqueada:</p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:70.85pt 70.85pt 70.85pt 70.85pt; 	mso-header-margin:35.4pt; 	mso-footer-margin:35.4pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p style="padding-left: 30px;"># lsuser -f [username] |grep account_locked<br />
account_locked=true</p>
<p>- Alterar para zero as tenativas falhas de login:</p>
<p style="padding-left: 30px;"># chsec -f /etc/security/lastlog -s [username] -a unsuccessful_login_count=0</p>
<p>- Desbloquear o usuário:</p>
<p style="padding-left: 30px;"># chsec -f /etc/security/lastlog -s [username] -a account_locked=false</p>
<p>- Lista novamente o número de tentativas mal sucessidas e se a conta está desbloqueada:</p>
<p style="padding-left: 30px;"># lsuser -f [username] |grep unsuccessful_login_count<br />
unsuccessful_login_count=0</p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:HyphenationZone>21</w:HyphenationZone> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:70.85pt 70.85pt 70.85pt 70.85pt; 	mso-header-margin:35.4pt; 	mso-footer-margin:35.4pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p style="padding-left: 30px;"># lsuser -f [username] |grep account_locked<br />
account_locked=false</p>
<p>Agora o usuário estará apto a logar novamente. Caso ele não se recorde de sua senha então esta deverá ser trocada com o comando <em>passwd</em>.</p>
<p><strong>Referência:</strong></p>
<p>Comando lsuser: <a title="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/lsuser.htm" href="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/lsuser.htm" target="_blank">http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/lsuser.htm</a></p>
<p>Comando chsec: <a title="http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/chsec.htm" href="http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/chsec.htm" target="_blank">http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/chsec.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/08/08/aix-como-desbloquear-e-zerar-tentativas-falhas-de-login-de-um-usuario/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AWK - Exemplo de uso com if</title>
		<link>http://www.unixnotes.org/2008/07/24/awk-exemplo-de-uso-com-if/</link>
		<comments>http://www.unixnotes.org/2008/07/24/awk-exemplo-de-uso-com-if/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 14:16:40 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[awk]]></category>

		<category><![CDATA[comandos]]></category>

		<category><![CDATA[if]]></category>

		<category><![CDATA[ls]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=76</guid>
		<description><![CDATA[No exemplo abaixo, usarei o awk para avaliar o valor de uma coluna de dados e caso tenha o valor que eu desejo, imprimirei na tela os campos de meu interesse.
No exemplo abaixo quero avaliar se a data de um arquivo é 2006 e então exibir na tela a data e o nome do arquivo:
Saida [...]]]></description>
			<content:encoded><![CDATA[<p>No exemplo abaixo, usarei o awk para avaliar o valor de uma coluna de dados e caso tenha o valor que eu desejo, imprimirei na tela os campos de meu interesse.</p>
<p>No exemplo abaixo quero avaliar se a data de um arquivo é 2006 e então exibir na tela a data e o nome do arquivo:</p>
<p>Saida do comando &#8220;ls -l&#8221;</p>
<p>-rw-r&#8212;&#8211;   1 userfoo   groupfoo  68578 Dec 29 2006  file_foo1.txt<br />
-rw-r&#8212;&#8211;   1 userfoo   groupfoo  84609 Dec 29 2006  file_foo2.txt<br />
-rw-r&#8212;&#8211;   1 userfoo   groupfoo  44587 Dec 29 2006  file_foo3.txt</p>
<p>Usando o awk:</p>
<p># ls -l | awk  &#8216;{if ($8 == &#8220;2006&#8243;) print $8 &#8220;  &#8221; $9}&#8217;</p>
<p>2006  file_foo1.txt<br />
2006  file_foo2.txt<br />
2006  file_foo3.txt</p>
<p>Mais informações sobre o uso do awk: <a title="http://www.grymoire.com/Unix/Awk.html" href="http://www.grymoire.com/Unix/Awk.html" target="_blank">http://www.grymoire.com/Unix/Awk.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/07/24/awk-exemplo-de-uso-com-if/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Listando o espaço livre de um VG (Volume Manager Aix e Veritas)</title>
		<link>http://www.unixnotes.org/2008/07/03/listando-espaco-no-vg-volume-manager-aix-e-veritas/</link>
		<comments>http://www.unixnotes.org/2008/07/03/listando-espaco-no-vg-volume-manager-aix-e-veritas/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 12:45:41 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[aix]]></category>

		<category><![CDATA[lvm (logical volume manager)]]></category>

		<category><![CDATA[veritas]]></category>

		<guid isPermaLink="false">http://blog.cybershark.net/unix/?p=35</guid>
		<description><![CDATA[Para verificar espaço em disco livre num volume group, execute os seguintes comandos, para Veritas e Aix respectivamente:

Veritas:
# vxdg -g bootdg free
DISK         DEVICE       TAG          OFFSET    LENGTH FLAGS
rootdg01   [...]]]></description>
			<content:encoded><![CDATA[<p>Para verificar espaço em disco livre num volume group, execute os seguintes comandos, para Veritas e Aix respectivamente:</p>
<ul></ul>
<p><strong>Veritas:</strong></p>
<p style="padding-left: 30px;"># vxdg -g bootdg free<br />
DISK         DEVICE       TAG          OFFSET    <strong>LENGTH</strong> FLAGS<br />
rootdg01     c0t0d0s2     c0t0d0       <strong>18837360</strong> 51408000  -</p>
<p><strong>Aix:</strong></p>
<p style="padding-left: 30px;"># lsvg rootvg<br />
VOLUME GROUP:   rootvg                   VG IDENTIFIER:  00011824bd4eef54<br />
VG STATE:       active                   PP SIZE:        16 megabyte(s)<br />
VG PERMISSION:  read/write               TOTAL PPs:      1084 (17344 megabytes)<br />
MAX LVs:        256                      <strong>FREE PPs:       376 (6016 megabytes)</strong><br />
LVs:            20                       USED PPs:       708 (11328 megabytes)<br />
OPEN LVs:       17                       QUORUM:         2<br />
TOTAL PVs:      2                        VG DESCRIPTORS: 3<br />
STALE PVs:      0                        STALE PPs:      0<br />
ACTIVE PVs:     2                        AUTO ON:        yes<br />
MAX PPs per PV: 1016                     MAX PVs:        32</p>
<p>Destacado em negrito no output de cada comando, a indicação do espaço livre.</p>
<p><strong>Referência:</strong></p>
<ul>
<li>VERITAS Volume Manager™ - Command Line Interface - Administrator’s Guide - Release 3.0.1: <a title="http://www.sun.com/products-n-solutions/hardware/docs/pdf/875-3053-10.pdf" href="http://www.sun.com/products-n-solutions/hardware/docs/pdf/875-3053-10.pdf" target="_blank">http://www.sun.com/products-n-solutions/hardware/docs/pdf/875-3053-10.pdf</a></li>
</ul>
<ul>
<li>AIX Logical Volume Manager from A to Z: Troubleshooting and Commands: <a title="http://www.redbooks.ibm.com/abstracts/sg245433.html?Open" href="http://www.redbooks.ibm.com/abstracts/sg245433.html?Open" target="_blank">http://www.redbooks.ibm.com/abstract</a></li>
</ul>
<ul>
<li>lsvg command: <a title="http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/lsvg.htm&amp;resultof=%22lsvg%22 " href="http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/lsvg.htm&amp;resultof=%22lsvg%22 " target="_blank">http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/lsvg.htm&amp;resultof=%22lsvg%22<br />
</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/07/03/listando-espaco-no-vg-volume-manager-aix-e-veritas/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Korn Shell Script</title>
		<link>http://www.unixnotes.org/2008/06/27/korn-shell-script/</link>
		<comments>http://www.unixnotes.org/2008/06/27/korn-shell-script/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 13:50:37 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[shell-script]]></category>

		<category><![CDATA[korn]]></category>

		<category><![CDATA[script]]></category>

		<category><![CDATA[shell]]></category>

		<category><![CDATA[sintaxe]]></category>

		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=69</guid>
		<description><![CDATA[Post apenas para indicar um documento que achei muito bom e um site sobre Korn Shell Script que gostei também.
O documento:
&#8220;Korn Shell Syntax - A Reference Guide&#8221;
http://www.context-switch.com/docs/kshrefltr.pdf
Ele ébásico, mas tem as condições de teste, e acaba sendo uma boa referência para consulta.
O site:
http://www.mtxia.com/css/Downloads/Scripts/Korn/index.shtml
]]></description>
			<content:encoded><![CDATA[<p>Post apenas para indicar um documento que achei muito bom e um site sobre Korn Shell Script que gostei também.</p>
<p>O documento:</p>
<p><em>&#8220;Korn Shell Syntax - A Reference Guide&#8221;</em></p>
<p><a title="http://www.context-switch.com/docs/kshrefltr.pdf" href="http://www.context-switch.com/docs/kshrefltr.pdf" target="_blank">http://www.context-switch.com/docs/kshrefltr.pdf</a></p>
<p>Ele ébásico, mas tem as condições de teste, e acaba sendo uma boa referência para consulta.</p>
<p>O site:</p>
<p><a title="http://www.mtxia.com/css/Downloads/Scripts/Korn/index.shtml" href="http://www.mtxia.com/css/Downloads/Scripts/Korn/index.shtml" target="_blank">http://www.mtxia.com/css/Downloads/Scripts/Korn/index.shtml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/06/27/korn-shell-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Aix - Parâmetros de kernel</title>
		<link>http://www.unixnotes.org/2008/06/10/aix-parametros-de-kernel/</link>
		<comments>http://www.unixnotes.org/2008/06/10/aix-parametros-de-kernel/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 14:04:05 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[aix]]></category>

		<category><![CDATA[performance]]></category>

		<category><![CDATA[kernel]]></category>

		<category><![CDATA[parameters]]></category>

		<category><![CDATA[parametros]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=66</guid>
		<description><![CDATA[Alguns parâmetros de kernel do Aix:
Parameters:
mempools
Specifies the number of memory pools that the system real memory is split into.
Memory pools
The mempools value is used to subdivide the memory into pools. The parameter
mempools has a range from 1 (one) to, but not more than, the value of the
number of CPUs in the system. For example, if [...]]]></description>
			<content:encoded><![CDATA[<p>Alguns parâmetros de kernel do Aix:</p>
<p><strong><em>Parameters:</em></strong></p>
<p><strong><em>mempools</em></strong></p>
<p>Specifies the number of memory pools that the system real memory is split into.</p>
<p><strong>Memory pools</strong></p>
<p>The mempools value is used to subdivide the memory into pools. The parameter</p>
<p>mempools has a range from 1 (one) to, but not more than, the value of the</p>
<p>number of CPUs in the system. For example, if there are four CPUs in a system,</p>
<p>then the maximum value of mempools is 4 (four). Setting the value to 0 (zero),</p>
<p>restores the default number. In some circumstances, such as when most, but not</p>
<p>all, of the system memory is in use, better performance can be obtained by</p>
<p>setting this value to 1 (one).</p>
<p>Reference:</p>
<p>Aix 5L Performance Tools Handbook (SG24-6039-01)- Page 232</p>
<p><strong><em>npskill</em></strong></p>
<p>Specifies the number of free paging-space pages at which the operating system begins killing processes. If the npskill threshold is reached, a SIGKILL signal is sent to the youngest process. Processes that are handling SIGDANGER or processes that are using the early page-space allocation (paging space is allocated as soon as memory is requested) are exempt from being killed. The formula to determine the default value of npskill is as follows:</p>
<pre>npskill = maximum (64, number_of_paging_space_pages/128)</pre>
<p>The npskill value must be greater than zero and less than the total number of paging space pages on the system. It can be changed with the command vmo <strong>-o npskill=value</strong>.</p>
<p>Purpose:</p>
<p>Specifies the number of free paging-space pages at which the operating system begins killing processes.</p>
<p>Values:</p>
<ul class="unIndentedList">
<li> Default: MAX (64, number of paging space pages/128).</li>
<li> Range: 0 to total number of paging space pages on the system .</li>
<li> Type: Dynamic</li>
</ul>
<p>Diagnosis:</p>
<p>N/A</p>
<p>Tuning</p>
<p>Increase the value if you experience processes being killed because of low paging space.</p>
<p>Refer To:</p>
<p><a href="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.prftungd/doc/prftungd/values_npswarn_npskill_param.htm">Values for the npswarn and npskill parameters</a></p>
<p><strong><em>npsrpgmax</em></strong><strong><em> </em></strong></p>
<p>Purpose:</p>
<p>Specifies the number of free paging space blocks at which the Operating System stops freeing disk blocks on pagein of Deferred Page Space Allocation Policy pages.</p>
<p>Values:</p>
<ul class="unIndentedList">
<li> Default: MAX(1024, npswarn*2).</li>
<li> Range: 0 to total number of paging space blocks in the system.</li>
</ul>
<p>Diagnosis:</p>
<p>N/A</p>
<p>Tuning:</p>
<p>N/A</p>
<p><strong><em>npsrpgmin</em></strong><strong><em> </em></strong></p>
<p>Purpose:</p>
<p>Specifies the number of free paging space blocks at which the Operating System starts freeing disk blocks on pagein of Deferred Page Space Allocation Policy pages.</p>
<p>Values:</p>
<ul class="unIndentedList">
<li> Default: MAX(768, npswarn+(npswarn/2)).</li>
<li> Range: 0 to total number of paging space blocks in the system.</li>
</ul>
<p>Diagnosis:</p>
<p>N/A</p>
<p>Tuning:</p>
<p>N/A</p>
<p><strong><em>npsscrubmax</em></strong><strong><em> </em></strong></p>
<p>Purpose:</p>
<p>Specifies the number of free paging space blocks at which the Operating System stops Scrubbing in memory pages to free disk blocks from Deferred Page Space Allocation Policy pages.</p>
<p>Values:</p>
<ul class="unIndentedList">
<li> Default: MAX(1024, npsrpgmax).</li>
<li> Range: 0 to total number of paging space blocks in the system.</li>
</ul>
<p>Diagnosis:</p>
<p>N/A</p>
<p>Tuning:</p>
<p>N/A</p>
<p><strong><em>npsscrubmin</em></strong><strong><em> </em></strong></p>
<p>Purpose:</p>
<p>Specifies the number of free paging space blocks at which the Operating System starts Scrubbing in memory pages to free disk blocks from Deferred Page Space Allocation Policy pages.</p>
<p>Values:</p>
<ul class="unIndentedList">
<li> Default: MAX(768, npsrpgmin).</li>
<li> Range: 0 to total number of paging space blocks in the system.</li>
</ul>
<p>Diagnosis:</p>
<p>N/A</p>
<p>Tuning:</p>
<p>N/A</p>
<p><strong><em>npswarn</em></strong></p>
<p>Specifies the number of free paging-space pages at which the operating system begins sending the SIGDANGER signal to processes. If the npswarn threshold is reached and a process is handling this signal, the process can choose to ignore it or do some other action such as exit or release memory using the <strong>disclaim()</strong> subroutine.</p>
<p>The value of npswarn must be greater than zero and less than the total number of paging-space pages on the system. It can be changed with the command vmo <strong>-o npswarn=value</strong>.</p>
<p>Purpose:</p>
<p>Specifies the number of free paging-space pages at which the operating system begins sending the SIGDANGER signal to processes.</p>
<p>Values:</p>
<ul class="unIndentedList">
<li> Default: MAX (512, 4*npskill)</li>
<li> Range: 0 to total number of paging space pages on the system.</li>
<li> Type: Dynamic</li>
</ul>
<p>Diagnosis:</p>
<p>N/A</p>
<p>Tuning:</p>
<p>Increase the value if you experience processes being killed because of low paging space.</p>
<p>Refer To:</p>
<p><a href="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.prftungd/doc/prftungd/values_npswarn_npskill_param.htm">Values for the npswarn and npskill parameters</a></p>
<p><strong>numpsblks</strong></p>
<p>11-28-02, 01:40</p>
<p>prog_log :- It is used to find out if the dump was due to a hardware<br />
problem.</p>
<p>vmker :- For finnding out free paging space. Nowadays this command is not<br />
used as with time<br />
the offset of free_paging_space/total_paging_space has changed.<br />
The command od<br />
vmker 16 used to be used to look at total paging space and free paging<br />
space but<br />
the field values have changed. It is easier to use the vmm<br />
command to look at the vmker<br />
data. <strong>The numpsblks field is the number of total paging space<br />
blocks.<br />
</strong>The psfreeblks is the free paging space blocks.</p>
<p>Fonte: <a href="http://www.dbforums.com/archive/index.php/t-579015.html">http://www.dbforums.com/archive/index.php/t-579015.html</a></p>
<p><strong>Parameter Description <a name="sthref606"></a><a name="sthref607"></a></strong></p>
<p><strong><a href="http://download-uk.oracle.com/docs/html/A97297_01/appa_aix.htm">http://download-uk.oracle.com/docs/html/A97297_01/appa_aix.htm</a></strong></p>
<p><strong> </strong></p>
<p>MINFREE The minimum free-list size. If the free-list space in the buffer falls below this size, the system uses page stealing to replenish the free list. <a name="sthref608"></a><a name="sthref609"></a></p>
<p>MAXFREE The maximum free-list size. If the free-list space in the buffer exceeds this size, the system stops using page stealing to replenish the free list. <a name="sthref610"></a><a name="sthref611"></a></p>
<p>MINPERM The minimum number of permanent buffer pages for file I/O.</p>
<p><a name="sthref612"></a><a name="sthref613"></a>MAXPERM The maximum number of permanent buffer pages for file I/O.</p>
<p><strong><em>pinnable_frames:</em></strong></p>
<table border="1">
<tbody>
<tr>
<td>Memory environment variables</td>
<td>Description</td>
</tr>
<tr>
<td>DR_MEM_SIZE_REQUEST=N</td>
<td>Size of memory requested in megabytes. N is a decimal value.</td>
</tr>
<tr>
<td>DR_MEM_SIZE_COMPLETED=N</td>
<td>Number of megabytes that were successfully added or removed. N is a decimal value.</td>
</tr>
<tr>
<td>DR_FREE_FRAMES=N</td>
<td>Number of free frames currently in the system. Each frame is a 4 KB page. N is a 32-bit hexadecimal value.</td>
</tr>
<tr>
<td>DR_PINNABLE_FRAMES=N</td>
<td>Total number of pinnable frames currently in the system. Each frame is a 4 KB page. N is a 32-bit hexadecimal value.</td>
</tr>
<tr>
<td>DR_TOTAL_FRAMES=N</td>
<td>Total number of frames in the system. Each frame is a 4 KB page. N is a 32-bit hexadecimal value.</td>
</tr>
</tbody>
</table>
<p>Fonte: <span style="font-size: 10pt; font-family: Arial;">Redbook: SG24-7039-02 - Partitioning Implementations for IBMEserver p5 Servers, Pag 166.<br />
</span></p>
<p><strong>Maxperm</strong><strong>: </strong>maxperm influences paging behavior.  Paging frees memory by copying the &#8220;least recently used&#8221; memory to disk for temporary storage.  Tune maxperm to keep as much of the database in memory as possible when the system pages.  The default setting is usually not optimum if the system pages as it favors paging out the database first.</p>
<p>The initial maxperm setting depends on whether the database filesystem resides on JFS or JFS2. For JFS, I automatically change the default &#8220;maxperm/maxclient&#8221; as above.  For JFS2, I recommend using the defaults, and defer tuning to when the system is running a representative workload.   The reason is that AIX classifies JFS and JFS2 memory differently.  JFS is controlled by &#8220;maxperm&#8221;, which is a &#8220;soft&#8221; limit and more forgiving if set too low.  JFS2, on the other hand, is controlled by &#8220;maxclient&#8221;, which is a &#8220;hard&#8221; limit.  If set incorrectly, performance can be degraded.  See &#8220;maxclient&#8221; section for JFS2.</p>
<p>When the system is under load, you can optimize the &#8220;maxperm&#8221; setting as follows.  But first a little background.  AIX classifies memory either as persistent or working storage.  Persistent storage includes file cache, executables, and metadata.  Working storage includes the database.  Target amount of memory for persistent storage when the system is paging is the &#8220;maxperm&#8221; setting.  (Note if the system is not paging, the maxperm setting is mostly ignored.)  The default &#8220;maxperm&#8221; value of 80% favors paging out the database first, which degrades performance.   In addition, the actual persistent memory requirements are typically much lower (20-50%).</p>
<p>The tuning methodology involves finding the actual persistent memory used when the system is under load (numperm).  Then set &#8220;maxperm&#8221; to 5% below that value.</p>
<p>maxperm = numperm% - 5%.</p>
<p>(Note: be sure to set maxclient=maxperm.  See &#8220;maxclient&#8221; below for more info.)</p>
<p>There are multiple commands for displaying memory usage.  Here are two that I use.</p>
<p>AIX 5.1:   &#8220;/<strong>usr/samples/kernel/vmtune</strong><strong> | grep numperm&#8221;</strong></p>
<p>AIX 5.2:<strong> &#8220;vmstat -v | grep numperm&#8221;</strong></p>
<p>If you don&#8217;t have root access to run vmtune, you can use a different approach.  Use vmstat &#8220;avm&#8221; column to estimate the size of the working storage.  Calculate numperm% as follows</p>
<p>numperm% = 100% - &#8220;working storage%&#8221; = 100% - (avm *100  / total memory)</p>
<p>Note &#8220;avm&#8221; is in measured in 4k pages, so you&#8217;ll have to convert this number to the same units as total memory.</p>
<p><strong>maxclient</strong><strong>: </strong> A subgrouping of persistent memory.  As such, &#8220;maxclient&#8221; is always less than or equal to &#8220;maxperm&#8221; (I set &#8220;maxclient=maxperm&#8221;).</p>
<p>The &#8220;maxclient&#8221; value sets the maximum amount of memory used by its members:  JFS2, NFS, CDROM and Veritas file systems. The &#8220;maxclient&#8221; value is a &#8220;hard&#8221; limit, which is always enforced.</p>
<p>The importance is that JFS2 has a &#8220;hard&#8221; limit, while JFS does not.  It&#8217;s better to leave the JFS2 as default until the system can be tuned while running a representative load. Setting &#8220;maxclient&#8221; too low can degrade JFS2 performance.</p>
<p>Tune the&#8221;maxclient&#8221; with the system under load.  Use the &#8220;maxperm&#8221; tuning procedure for setting &#8220;maxclient&#8221;, and set &#8220;maxclient&#8221; equal to &#8220;maxperm&#8221;.    If you want to be more precise, you can use the &#8220;svmon -G&#8221; command to view the amount of memory used by client storage. It&#8217;s shown under the &#8220;clnt&#8221; column (&#8221;in use&#8221;).</p>
<p># svmon -G</p>
<p>size      inuse       free        pin    virtual</p>
<p>memory       131072     129422       1650      11704      50091</p>
<p>pg space     131072       4279</p>
<p>work       pers       clnt      lpage</p>
<p>pin           11704          0          0          0</p>
<p>in use        47052      76146       6224          0</p>
<p>The svmon command also shows the working storage under the &#8220;work&#8221; column.  It all comes together as follows:</p>
<p>Total memory = free+&#8221;working&#8221;+&#8221;persistent&#8221;</p>
<p>= free+work+(pers+clnt)</p>
<p>= 1650+47052+(76146+6224) = 1331072</p>
<p>Reference: <a href="http://users.ca.astound.net/baspence/AIXtip/AIX5_Initial_Tuning.htm">http://users.ca.astound.net/baspence/AIXtip/AIX5_Initial_Tuning.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/06/10/aix-parametros-de-kernel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TSM - Restaurando um arquivo na linha de comando</title>
		<link>http://www.unixnotes.org/2008/04/25/tsm-restaurando-um-arquivo-na-linha-de-comando/</link>
		<comments>http://www.unixnotes.org/2008/04/25/tsm-restaurando-um-arquivo-na-linha-de-comando/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 15:32:31 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=65</guid>
		<description><![CDATA[Há mais de uma maneira para restaurar um arquivo que tenha sido copiado com o software de backup da IBM, TSM.
Eu gosto de usar a linha de comando. A partir da shell do Unix pode-se executar o comando:
dsmc restore &#8216;[arquivo a ser restaurado]&#8216; &#8216;[destino do arquivo]&#8216; &#60;opções&#62;
Ex:
dsmc restore &#8216;/home/usuario/teste.txt&#8217; &#8216;/tmp/&#8217; -subdir=yes -pick -inactive
O exemplo acima [...]]]></description>
			<content:encoded><![CDATA[<p>Há mais de uma maneira para restaurar um arquivo que tenha sido copiado com o software de backup da IBM, TSM.</p>
<p>Eu gosto de usar a linha de comando. A partir da shell do Unix pode-se executar o comando:</p>
<p style="padding-left: 30px;">dsmc restore &#8216;[arquivo a ser restaurado]&#8216; &#8216;[destino do arquivo]&#8216; &lt;opções&gt;</p>
<p>Ex:</p>
<p style="padding-left: 30px;">dsmc restore &#8216;/home/usuario/teste.txt&#8217; &#8216;/tmp/&#8217; -subdir=yes -pick -inactive</p>
<p>O exemplo acima vai restaurar o arquivo /home/usuario/teste.txt no /tmp. As opções utilizadas acima não são obrigatórias:</p>
<p>-subdir: Com subdir igual a yes, no caso de restaurar um diretório, ele irá restaurar toda estrutura de subdiretórios abaixo dele. Muito útil para restore de diretórios.</p>
<p>-inactive: Vai listar as versões não ativas do backup que ainda não expiraram.</p>
<p>-pick: Esta opção vai listar os arquivos ao invés de já efetuar o restore. É muito útil para primeiro visualizar o arquivo e então selecioná-lo para o restore.</p>
<p>É possível também, ao invés de usar o &#8220;dsmc restore&#8221; direto na shell do Unix, chamar a linha de comando do TSM com o comando &#8220;dsmc&#8221; e então, usar a opção restore ou outros comandos do TSM:</p>
<p style="padding-left: 30px;"># dsmc</p>
<p style="padding-left: 30px;">tsm&gt; restore &#8216;/home/arquivo.xxx&#8217; &#8216;/tmp/&#8217; -subdir=yes -pick -inactive</p>
<p>Mais informações no Manual da IBM de TSM para Unix, &#8220;Backup-Archive Clients Installation and User’s Guide&#8221;:</p>
<p><a title="http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/topic/com.ibm.itsmc.doc_5.3.3/ans50000.pdf" href="http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/topic/com.ibm.itsmc.doc_5.3.3/ans50000.pdf" target="_blank">http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/topic/com.ibm.itsmc.doc_5.3.3/ans50000.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/04/25/tsm-restaurando-um-arquivo-na-linha-de-comando/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Aix - Usuários default de sistema</title>
		<link>http://www.unixnotes.org/2008/04/17/aix-usuarios-default-de-sistema/</link>
		<comments>http://www.unixnotes.org/2008/04/17/aix-usuarios-default-de-sistema/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 13:43:01 +0000</pubDate>
		<dc:creator>carla</dc:creator>
		
		<category><![CDATA[administração de sistemas]]></category>

		<category><![CDATA[aix]]></category>

		<category><![CDATA[segurança]]></category>

		<category><![CDATA[usuários]]></category>

		<guid isPermaLink="false">http://www.unixnotes.org/?p=64</guid>
		<description><![CDATA[As informações a seguir foram escritas num Forum do &#8220;LinusQuestions.org&#8221; pelo usuário &#8220;Harry Seldon&#8220;.
Achei um resumo útil e decidi salvar aqui no &#8220;meu&#8221; bloco de notas.
Fonte: http://www.linuxquestions.org/questions/aix-43/aix-default-user-list-612651/
&#8220;I work at a company that gets audited all the time. The ones we&#8217;re most commonly asked to remove are guest, lpd, uucp, nuucp (if it&#8217;s there) and imnadmin. [...]]]></description>
			<content:encoded><![CDATA[<p>As informações a seguir foram escritas num Forum do &#8220;<a title="http://www.linuxquestions.org/" href="http://www.linuxquestions.org/" target="_blank">LinusQuestions.org</a>&#8221; pelo usuário &#8220;<a title="http://www.linuxquestions.org/questions/user/harry-seldon-100032/" href="http://www.linuxquestions.org/questions/user/harry-seldon-100032/" target="_blank">Harry Seldon</a>&#8220;.</p>
<p>Achei um resumo útil e decidi salvar aqui no &#8220;meu&#8221; bloco de notas.</p>
<p>Fonte: <a title="http://www.linuxquestions.org/questions/aix-43/aix-default-user-list-612651/" href="http://www.linuxquestions.org/questions/aix-43/aix-default-user-list-612651/" target="_blank">http://www.linuxquestions.org/questions/aix-43/aix-default-user-list-612651/</a></p>
<p><em>&#8220;I work at a company that gets audited all the time. The ones we&#8217;re most commonly asked to remove are guest, lpd, uucp, nuucp (if it&#8217;s there) and imnadmin. Here&#8217;s a list of accounts I put together about a year ago; most of it is relevant, I think:</em></p>
<p><em>daemon - The daemon user account exists only to own and run system server processes and their associated files. This account guarantees that such processes run with the appropriate file access permissions.</em></p>
<p><em>bin - The bin user account typically owns the executable files for most user commands. This account&#8217;s primary purpose is to help distribute the ownership of important system directories and files so that everything is not owned solely by the root and sys user accounts.</em></p>
<p><em>sys - The sys user owns the default mounting point for the Distributed File Service (DFS) cache, which must exist before you can install or configure DFS on a client.</em></p>
<p><em>adm - The adm user account owns the following basic system functions:<br />
* Diagnostics, the tools for which are stored in the /usr/sbin/perf/diag_tool directory.<br />
* Accounting, the tools for which are stored in the following directories:<br />
o /usr/sbin/acct<br />
o /usr/lib/acct<br />
o /var/adm<br />
o /var/adm/acct/fiscal<br />
o /var/adm/acct/nite<br />
o /var/adm/acct/sum</em></p>
<p><em>uucp - Owner of hidden files used by uucp protocol. The uucp user account is used for the UNIX-to-UNIX Copy Program, which is a group of commands, programs, and files, present on most AIX systems, that allows the user to communicate with another AIX system over a dedicated line or a telephone line.</em></p>
<p><em>guest - Allows access to users who do not have access to accounts.</em></p>
<p><em>nobody - The nobody user account is used by the Network File System (NFS) to enable remote printing. This account exists so that a program can permit temporary root access to root users</em></p>
<p><em>lpd - Owner of files used by printing subsystem. This account has been disabled.</em></p>
<p><em>imnadm - IMN search engine used for Documentation Library Search.</em></p>
<p><em>lp - Possibly something to do with printing.</em></p>
<p><em>invscout - Surveys the host system for currently installed microcode or Vital Product Data (VPD).</em></p>
<p><em>snapp - The account that manages Snapp, an extensible, XML-based application that provides a menu-driven interface for UNIX system administration tasks on a handheld PDA.</em></p>
<p><em>sshd - The user account for managing the sshd service.&#8221;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixnotes.org/2008/04/17/aix-usuarios-default-de-sistema/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
