<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5256012299728715035</id><updated>2024-09-14T23:08:41.655-03:00</updated><category term="Linux"/><category term="Ocomon"/><category term="Oracle"/><category term="mysql"/><category term="TSM"/><category term="VMWare"/><category term="SQL Server"/><category term="Windows"/><title type='text'>GenixSky</title><subtitle type='html'>Blog com procedimentos, comandos e resolução de problemas para Oracle, Linux e TSM obtidos no meu dia a dia de trabalho como administrador Linux e DBA Oracle.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-7685866770599346580</id><published>2017-09-06T08:23:00.000-03:00</published><updated>2017-09-06T08:23:06.347-03:00</updated><title type='text'>TSM</title><content type='html'>&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;Índice:&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
1. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Acessar_Console_TSM_Monitor&quot;&gt;Acessar o
Console do TSM para monitorar tarefas em execução&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
2. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Iniciar_Desligar_Reiniciar_TSM&quot;&gt;Iniciar,
Desligar e Reiniciar TSM&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
3. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Cancelando_Sessao_Node_Usuario&quot;&gt;Cancelando a
sessão de um node, usuário&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
4. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Cancelando_Processo_TSM&quot;&gt;Cancelando processo
no TSM&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
5. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Desativar_Replicacao_TSM&quot;&gt;Desativando a
Replicação entre os TSM&lt;/a&gt;&lt;u&gt;&lt;span style=&quot;color: #0563c1; mso-themecolor: hyperlink;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
6. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Deletando_Filespace_Nodename&quot;&gt;Deletando um
filespace de dentro de um nodename&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
7. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Executando_Migrate_Manualmente&quot;&gt;Executando o
migrate manualmente&lt;/a&gt;&lt;br /&gt;
8. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Cancelar_Habilitar_Sessao_Cliente&quot;&gt;Cancelando e habilitando sessões
de clientes&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
9. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Verifica_nodename_replicando&quot;&gt;Verifica qual
nodename está replicando&lt;/a&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
10. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Retirar_Fitas_Dentro_Unidade_Robo&quot;&gt;Retirar
Fitas de Dentro da Unidade Robo&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
11. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Inserir_Fita_Private_Unidade&quot;&gt;Inserir fitas
dentro da unidade (Fitas Private)&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
12. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Alterar_Limite_Migrate_Stgpool&quot;&gt;Alterar
limite migrate no stgpool&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
13. &lt;a href=&quot;file:///C:/Users/breny.TBSADOM/Google%20Drive/TSM.docx#Criar_STPOOL_Reclamation&quot;&gt;Criar um STPOOL
para Reclamation&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Acessar_Console_TSM_Monitor&quot;&gt;&lt;b&gt;Acessar
o Console do TSM para monitorar as tarefas em execução&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
dsmadmc -servername=TSM2 –console&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Iniciar_Desligar_Reiniciar_TSM&quot;&gt;&lt;b&gt;Iniciar,
Desligar e Reiniciar TSM&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;u&gt;Parando o TSM&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Entrar na linha de comandos do TSM e executar o comando
HALT&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Aguardar o processo finalizar e cair na linha de
comandos do AIX.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Verificar se o processo ainda se encontra ativo: ps –ef
| grep dsm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;u&gt;Iniciando o TSM&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Logar no servidor TSM como root&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Executar o comando: su – tsminst1&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Executar as variáveis de ambiente contidas no script: .
~/sqllib/db2profile&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Ir até o diretório /tsm_cfg/&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Iniciar o TSM em modo background /opt/tivoli/tsm/server/bin/dsmserv
-q &amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Após o start do TSM o resultado deverá ser o seguinte ps
-ef | grep dsm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;tsminst1
7799026 1 0 10:40:09 - 0:25 /opt/tivoli/tsm/server/bin/dsmserv -u tsminst1 –i /tsm_cfg
-q&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Outra maneira de iniciar o TSM é reiniciando o servidor,
pois os serviços estão contidos na inittab para iniciar automaticamente após o
reboot.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;u&gt;Verificar Status TSM&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Para verificar se o serviço do TSM está iniciado, basta
executar o comando ps -ef | grep dsm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- Após o start do TSM o resultado deverá ser o seguinte:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;tsminst1&amp;nbsp; 7799026&amp;nbsp;&amp;nbsp;&amp;nbsp;
1&amp;nbsp;&amp;nbsp; 0 10:40:09&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;
0:25 /opt/tivoli/tsm/server/bin/dsmserv -u tsminst1 -i /tsm_cfg -q&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;u&gt;Observações:&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
- No diretório /tsm_cfg/ estão contidos os arquivos de
configurações e logs do TSM Server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Cancelando_Sessao_Node_Usuario&quot;&gt;&lt;b&gt;Cancelando
a sessão de um node, usuário&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Execute o comando query session para obter o número das
sessões (conexões) ativas no TSM, com essa informação, execute o comando:
cancel session número_da_sessao&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Cancelando_Processo_TSM&quot;&gt;&lt;b&gt;Cancelando
um processo do TSM&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Execute o comando query process para obter os processos
em execução pelo TSM, com o número do processo (primeira coluna) execute o
comando: cancel process numero_do_processo&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Desativar_Replicacao_TSM&quot;&gt;&lt;b&gt;Desativando
a Replicação entre os TSM&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Para desativar a replicação entre os TSM execute o
comando: disable replication e para ativar, execute o comando: enable
replication&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Deletando_Filespace_Nodename&quot;&gt;&lt;b&gt;Deletando
um filespace de dentro de um nodename&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Esse procedimento é utilizado, quando não precisamos mais
dos backups de uma VM, por exemplo, que foi clonada e possui uma ID antiga.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Delete filespace &lt;span style=&quot;color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128;&quot;&gt;NODENAME&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;FILESPACE&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
delete filespace &lt;span style=&quot;color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128;&quot;&gt;VM_TBSA_DC1 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;\VMFULL-Antivirus&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Executando_Migrate_Manualmente&quot;&gt;&lt;b&gt;Executando
o migrate manualmente&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
O comando abaixo pode ser executado para priorizar o
processo de migrate, onde pode ser indicado os parâmetros lowmig (limite
mínimo) e highmig (limite maximo) e duration (tempo máximo de execução).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;migrate
stgpool pool_name -lowmig=10 duration=200&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Cancelar_Habilitar_Sessao_Cliente&quot;&gt;&lt;b&gt;Cancelando
e habilitando sessões de clientes&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;disable
session&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;enable
session&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Verifica_nodename_replicando&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Verifica qual nodename está
replicando&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;query
replication * status=running&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;q
replication * f=d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Valida a replicação de um node&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
validade replication node verifyconnection=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Retirar_Fitas_Dentro_Unidade_Robo&quot;&gt;&lt;b&gt;Retirar
Fitas de Dentro da Unidade (Robo)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;checkout
libvol ts3100 DR0044L5 remove=no checkl=no&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Inserir_Fita_Private_Unidade&quot;&gt;&lt;b&gt;Inserir
fitas dentro da unidade (Fitas Private)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;checkin
libvol ts3200 search=yes checklabel=barcode status=private&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Inserir fitas novas dentro da library&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;label
libvolume ts3100 search=yes labels=barcode checkin=scratch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Realizar o inventário da Library&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
audit library ts3100 checklabel=barcode&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Alterar_Limite_Migrate_Stgpool&quot;&gt;&lt;b&gt;Alterar
limite migrate no stgpool&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
stgpool DP_DB_DD highmig=90 lowmig=10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Alterar Reclaim em um STGPOOL&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
stgpool TP_FS_DD reclaim=99&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Solicitar reclaim de um STGPOOL com base no
limite&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;reclaim
stgpool TP_VM_DD threshold=50&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Criar_STPOOL_Reclamation&quot;&gt;&lt;b&gt;Criar um
STPOOL para Reclamation&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 36.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;1.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;Defina
o novo STGPOOL para reclaim&lt;br /&gt;
Comando: define stgpool new_stg_reclaim fileclass maxscratch=100&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 36.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;2.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;Atualize
o STG que você precisa fazer reclaim&lt;br /&gt;
Comando: update stgpool TP_VM_DD reclaimstgpool=new_stg_reclaim&lt;br /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;margin-left: 36.0pt; mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;3.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--[endif]--&gt;Atualize
o STG new_stg_reclaim para voltar com os dados para Fita&lt;br /&gt;
Comando: update stgpool new_stg_reclaim nextstg=TP_VM_DD&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Ativar replicação para um novo node&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
node NODENAME replstate=enabled&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;ou&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Desativar:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
update node NODENAME replstate=disabled&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Remover replicação e remover node&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
remove replnode NODENAME&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
remove node NODENAME&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Mover dados entre volumes e storagepool&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
move data nome_do_volume stgpool=nome_do_storagepool&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Lista o consumo das Fitas&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;select
substr(volume_name,1,10) as volume_name, stgpool_name,
cast(((est_capacity_mb*pct_utilized)/1024) as decimal(20,2)) as GB,
substr(status,1,10) as status, substr(access,1,12) as access from volumes where
devclass_name=&#39;LTOCLASS&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Verificar as opções de configuração do TSM&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
q opt&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
q status&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Alterar o tempo de reorg do banco&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;setopt
reorgduration 4 (4 horas)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Listar schedules administrativos&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
q schedule * type=adm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Verificar o conteúdo do script em questão&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;q
schedule &lt;span style=&quot;color: red;&quot;&gt;AS_DB_BACKUP&lt;/span&gt; type=a f=d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Executar um Sched manualmente&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;UPDATE
SCHED PD_FS OMNILINK_W7_MM &lt;span style=&quot;color: red;&quot;&gt;startt=now&lt;/span&gt;
startd=today &lt;span style=&quot;color: red;&quot;&gt;scheds=Enhanced&lt;/span&gt; DAYofweek=ANY
DAYOFMonth=ANY WEEKofmonth=ANY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Criar um novo Sched PD_FS&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;DEFINE
SCHED PD_FS OMNILINK_W7_MM TYPE=CLIENT DESCRIPTION=OMNILINK SCHEDStyle=Enhanced
ACTION=ARCHIVE OPTIONS=&quot;-subdir=yes -archmc=MC_EVENTS_MM&quot;
OBJECTS=&quot;c:\saver2000\databases\&quot; PRIORITY=5 STARTD=today
STARTTime=11:00:00 DURation=1 DURUnits=Hours DAYofweek=ANY MONth=ANY
DAYOFMonth=1 WEEKofmonth=ANY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Criar um novo Sched PD_VM&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;DEFINE
SCHED PD_VM VM_BPA_SERVER_10_2 Action=backup subaction=vm
Options=&quot;-vmfulltype=vstor -vmbackuptype=fullvm -asnodename=VM_TBSA_DC1
-domain.vmfull=VM= BPA_Server_10_2 -MODE=IFIncremental&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Cria um sched administrativo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;define
sched REPL_MENSAL t=a cmd=&quot;run REPLICA_FS_MENSAL&quot; SCHEDStyle=Enhanced
STARTTime=11:00:00 DURation=30 DURUnits=M DAYofweek=ANY MONth=ANY DAYOFMonth=2
WEEKofmonth=ANY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Associar o novo sched com um node&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;DEFINE
ASSOC PD_FS OMNILINK_W7_MM OMNILINK_W7_MM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Atualizar Sched de File Level&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;UPDATE
SCHED PD_FS OMNILINK_W7_MM TYPE=CLIENT DESCRIPTION=OMNILINK SCHEDStyle=Enhanced
ACTION=ARCHIVE OPTIONS=&quot;-subdir=yes -archmc=MC_EVENTS_MM&quot;
OBJECTS=&quot;c:\saver2000\&quot; PRIORITY=5 STARTD=today STARTTime=11:00:00
DURation=1 DURUnits=Hours DAYofweek=ANY MONth=ANY DAYOFMonth=1 WEEKofmonth=ANY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Atualizar schedule para executar a cada 1
hora&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
sched PD_DB ORA_TBSAPRD_ARC_LOG starttime=15:00:00 action=command
objects=&quot;su - oracle -c /usr/tivoli/tsm/scripts/backup_tsm_arch.scr&quot; &lt;span style=&quot;color: red;&quot;&gt;duration=30 durunits=m period=1 perunits=h&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Atualizar schedule para executar uma vez
por semana&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
sched pd_vm VM_ATOM_HM_IFFULL schedstyle=enhanced startt=18:15:00 duration=1
durunits=h dayofweek=saturday month=any dayofmonth=any weekofmonth=any&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Atualizar schedule de VMs em Grupo&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
update sched PD_VM VM_BKP_INCR_GRP1
Options=&quot;-vmfulltype=vstor -vmbackuptype=fullvm -asnodename=VM_TBSA_DC1
-domain.vmfull=VM=
Prosoft2,BPA_ConsultaDTA,BPA_Registro,BPA_Server9,BPACAL01,BPACAL02,Controle_Pneus,DataPar_Prod,DataPar_Hom,OMNE_BKP,Router_Interno,Samba_TBSA,Samba_TBSA_CNTR,Seabox_Gate,Seabox_Scanner,site_agendamento,OMNILINK_W7,SRV_Centro,SRV_Coletor,SRV_DTE_W2008,SRV_Versionamento,SRV-Catracas,VM-TOC-TSM,VMVMS001-S1,W3K_Targa,OMNE_EMAIL,OMNE_MASTER
-MODE=IFIncremental&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Atualizar sched de VMs Individual&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
sched PD_VM VM_BKP_CONSULTA_DTA TYPE=CLIENT DESCRIPTION=VM_BKP_CONSULTA_DTA
SCHEDStyle=Enhanced ACTION=Incremental Subaction=vm PRIORITY=5 STARTD=today
STARTTime=12:00:00 DURation=1 DURUnits=Hours DAYofweek=ANY MONth=ANY
DAYOFMonth=ANY WEEKofmonth=ANY Options=&quot;-vmfulltype=vstor
-vmbackuptype=fullvm -asnodename=VM_TBSA_DC1 -domain.vmfull=VM= BPA_ConsultaDTA
-MODE=IFIncremental&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Alterar sched de VM para backup Full&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
sched PD_VM VM_BKP_BPA_SERVER9 Options=&quot;-vmfulltype=vstor
-vmbackuptype=fullvm -asnodename=VM_TBSA_DC1 -domain.vmfull=VM= BPA_Server9
-MODE=FULL&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Executar backup manual do banco de dados do
TSM&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;backup
db devc=ltoclass t=f wait=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Fazer pesquisa do percentual dos volumes
utilizados&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;q vol * stgpool=TP_VM_DD&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Consultar eventos executados no passado&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;q event
* *cam-247* begindate=-5 enddate=today f=d&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;q event
* * exception=yes begind=-2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;q event
* type=admin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Identificar Fitas UNAVAILABLE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;select
volume_name,stgpool_name from volumes where access=&#39;UNAVAILABLE&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Lista todas as fitas que já estiveram
dentro da Library&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
q volume * devclass=LTO*&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Verificar Retenção dos Backups&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
q copy&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Verifica a configuração de retenção de uma
classe em específico&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;q copy
PD_FS ACTIVE MC_SCANVOL_DD F=D&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Criar um novo node&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;register
node [nodename] [senha_nodename] domain=[policy domain] userid=none passexp=0
backdel=no archdel=no clopt=[clopt] maxnummp=10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Onde:&lt;br /&gt;
clopt deve ser alterado de acordo com o sistema operacional desse novo node&lt;br /&gt;
Windows = CLOPT_ WIN&lt;br /&gt;
Linux = CLOPT_UNX&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Verificar espaço ocupado com as tarefas de
backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
q occ &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Permissão para deletar backups diretamente
no cliente&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
node SAMBA_TBSA ARCHDELETE=yes BACKDELETE=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Lista consumo de Fitas Mensais&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;q vol *
STGPOOL=*MM DEVCLASS=LTOCLASS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;Verificar ACTLOG&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;QUERY
ACTLOG BEGIND=05/23/2016 BEGINT=20:00 ENDD=05/23/2016 ENDT=23:30&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Desativar ou Ativar Scheds administrativos&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Ativar:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
sched AS_REPL_NODE t=a active=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Desativar:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
sched AS_REPL_NODE t=a active=no&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Removendo restrição Java&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;a href=&quot;http://www-01.ibm.com/support/docview.wss?uid=swg1PI44866&quot;&gt;http://www-01.ibm.com/support/docview.wss?uid=swg1PI44866&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Cria script administrativo&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
define script nome_script “replicate node node1,node2”
desc=”descrição”&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Solicitar limpeza manual do drive para uma
library&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
clean drive ts3100 3100_DRV01&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Ativar ou desativar PATH (Caminho) para o
driver&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Ativa:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
path TSMSERVER1 3200_DRV01 srctype=SERVER desttype=DRIVE library=TS3200 online=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Desativa:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
path TSMSERVER1 3200_DRV01 srctype=SERVER desttype=DRIVE library=TS3200
online=no&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Ativa ou desativa DRIVE para o TSM&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Ativa:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update drive
TS3200 3200_DRV01 online=yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Desativa:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;update
drive TS3200 3200_DRV01 online=no&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNoSpacing&quot; style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Verifica Status da Fita de Limpeza&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
q libvol * cln* f=d&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/7685866770599346580/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2017/09/tsm.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7685866770599346580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7685866770599346580'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2017/09/tsm.html' title='TSM'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-7460990961659080217</id><published>2016-08-26T16:24:00.000-03:00</published><updated>2016-08-26T16:24:28.648-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Criar relação de confiança entre Linux com SSH</title><content type='html'>Execute a linha de comando abaixo para criar as chaves criptografadas:&lt;br /&gt;
&lt;br /&gt;
ssh-keygen –b 1024 –t rsa&lt;br /&gt;
&lt;br /&gt;
Logo após isso, será solicitado o local e as senhas para a chave, pressione [Enter] em todas as mensagens, sem alterar nada, pois dessa forma, a senha ficará em branco.&lt;br /&gt;
&lt;br /&gt;
Agora, após a chave ter sido criada, é necessário copiá-la para o servidor de destino, para isso, utilize a linhas a seguir:&lt;br /&gt;
&lt;br /&gt;
cd /root/.ssh/&lt;br /&gt;
scp id_rsa.pub usuario@hostremoto:/root/.ssh/authorized_keys</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/7460990961659080217/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/08/criar-relacao-de-confianca-entre-linux.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7460990961659080217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7460990961659080217'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/08/criar-relacao-de-confianca-entre-linux.html' title='Criar relação de confiança entre Linux com SSH'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-5185749262095777538</id><published>2016-08-19T11:05:00.008-03:00</published><updated>2016-08-19T11:05:58.950-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>SQL Server</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Microsoft SQL Server&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Verifica fragmentação nos Indexes&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
SELECT object_id AS ObjectID,&lt;br /&gt;
&amp;nbsp; index_id AS IndexID,&lt;br /&gt;
&amp;nbsp; avg_fragmentation_in_percent AS PercentFragment,&lt;br /&gt;
&amp;nbsp; fragment_count AS TotalFrags,&lt;br /&gt;
&amp;nbsp; avg_fragment_size_in_pages AS PagesPerFrag,&lt;br /&gt;
&amp;nbsp; page_count AS NumPages&lt;br /&gt;
FROM sys.dm_db_index_physical_stats(DB_ID(&#39;Meu_Banco&#39;),&lt;br /&gt;
&amp;nbsp; NULL, NULL, NULL , &#39;DETAILED&#39;)&lt;br /&gt;
WHERE avg_fragmentation_in_percent &amp;gt; 0&lt;br /&gt;
ORDER BY ObjectID, IndexID&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Compila os Indexes do Banco indicado&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
use NomedaBase&lt;br /&gt;
GO&lt;br /&gt;
DECLARE @TableName VARCHAR(255)&lt;br /&gt;
DECLARE @sql NVARCHAR(500)&lt;br /&gt;
DECLARE @fillfactor INT&lt;br /&gt;
SET @fillfactor = 80&lt;br /&gt;
DECLARE TableCursor CURSOR FOR&lt;br /&gt;
SELECT OBJECT_SCHEMA_NAME([object_id])+&#39;.&#39;+name AS TableName&lt;br /&gt;
FROM sys.tables&lt;br /&gt;
OPEN TableCursor&lt;br /&gt;
FETCH NEXT FROM TableCursor INTO @TableName&lt;br /&gt;
WHILE @@FETCH_STATUS = 0&lt;br /&gt;
BEGIN&lt;br /&gt;
SET @sql = &#39;ALTER INDEX ALL ON &#39; + @TableName +&#39; REBUILD WITH (FILLFACTOR = &#39; + CONVERT(VARCHAR(3),@fillfactor) + &#39;)&#39;&lt;br /&gt;
EXEC (@sql)&lt;br /&gt;
FETCH NEXT FROM TableCursor INTO @TableName&lt;br /&gt;
END&lt;br /&gt;
CLOSE TableCursor&lt;br /&gt;
DEALLOCATE TableCursor&lt;br /&gt;
GO</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/5185749262095777538/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/08/sql-server.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5185749262095777538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5185749262095777538'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/08/sql-server.html' title='SQL Server'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-3031439492907801117</id><published>2016-06-22T10:01:00.000-03:00</published><updated>2016-06-22T10:01:05.377-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Script DiskFree para Linux</title><content type='html'>#!/bin/bash&lt;br /&gt;
THRESHOLD=&quot;20&quot;&lt;br /&gt;
EMAIL=&quot;user@empresa.com.br&quot;&lt;br /&gt;
&lt;br /&gt;
df -P | awk &#39;{print $6&quot;\t&quot;$5}&#39; |grep &quot;%&quot; | while read LINE; do&lt;br /&gt;
PERC=`echo $LINE |awk &#39;{print $2}&#39; |cut -d&quot;%&quot; -f1`&lt;br /&gt;
if [ $PERC -gt $THRESHOLD ]; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;echo &quot;ALERT $LINE UTILIZADO em `hostname`&quot; | /bin/mail -s &quot;Disk Space Alert: ${LINE} used on `hostname`&quot; $EMAIL&lt;br /&gt;
fi&lt;br /&gt;
done&lt;br /&gt;
#&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/3031439492907801117/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/06/script-diskfree-para-linux.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/3031439492907801117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/3031439492907801117'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/06/script-diskfree-para-linux.html' title='Script DiskFree para Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-5149637255991198215</id><published>2016-06-19T12:00:00.000-03:00</published><updated>2016-06-19T12:00:28.582-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>mySQL - Backups e Restore</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Realizar
o backup com o banco parado “fechado”&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Observação: O diretório: /var/lib/mysql é o local onde
o mySQL armazena a base de dados.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;# /etc/init.d/mysql stop&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;# tar -zcvf mysql.tar.gz /var/lib/mysql/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;# /etc/init.d/mysql start&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Realizar
o backup com o mySQL em execução “aberto”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Para isso, é necessário utilizer o executável
mysqldump.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Para salvar todas as base de dados existentes,
execute:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;# mysqldump -u root -p --add-drop-table -x -e -A &amp;gt;
backup.sql&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Onde:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;-u root – Especifica qual o usuário que irá conectar
no mySQL para executar o backup;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;-p – Irá solicitor a senha do usuário especificado na
opção –u;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;--add-drop-table – Utilizado quando for restaurar esse
backup, caso já exista a base no destino, a mesma será sobre escrita;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;-x – trava as bases de dados no momento em que cada
uma é copiada, evitando qualquer problema de inconsistência;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;-e – Utilizada para otimizar o processo de backup,
permitindo ao mysqldump combinar argumentos INSERT dentro das tabelas, tornando
o backup e restauração mais rápidos;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;-a – Informa que é para fazer um backup completo de
todas as bases de dados existentes;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;- &amp;gt; – Redireciona para um arquivo de texto que
conterá o backup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Realizar
o restore da base de dados mySQL &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Observação:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt; Para restaurar um backup deve-se utilizar o utilitário mysql&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mysql -u root -p12345 --database=nome_da_base &amp;lt; backup.sql&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Se a base já existir no destino, será retornada a
mensagem de erro abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;ERROR 1050 at line 19: Table &#39;xpto&#39; already exists&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Caso isso ocorra, será necessário deletar a base de
dados existente no destino, com o procedimento abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;# mysql -u root -p&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Enter password:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mysql&amp;gt; DROP DATABASE xpto;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Query OK, 0 rows affected (0.00 sec)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mysql&amp;gt; CREATE DATABASE xpto;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;mysql&amp;gt; exit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,sans-serif; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;Bye&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/5149637255991198215/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/06/mysql-backups-e-restore.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5149637255991198215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5149637255991198215'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/06/mysql-backups-e-restore.html' title='mySQL - Backups e Restore'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-3134004914685319220</id><published>2016-06-19T11:28:00.003-03:00</published><updated>2016-06-19T11:28:53.412-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ocomon"/><title type='text'>Ocomon - Script para Backup</title><content type='html'>&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#!/bin/bash&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#PARAMETROS&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
data=`date +%Y%m%d`&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mutt=&#39;/usr/bin/mutt&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
find=&#39;/usr/bin/find&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rm=&#39;/bin/rm&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
null=&quot;/dev/null&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
ls=&#39;/bin/ls&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysqldump=&#39;/usr/bin/mysqldump&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
cd /home/backup/ocomon&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#Gera o arquivo de backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$mysqldump -u ocomon --password=senha --opt ocomon &amp;gt;
bkp_dump_ocomon_$data.sql&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#Lista o diretório após o arquivo ser gerado&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$ls -lh &amp;gt; lista_dir.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#Informa o Usuário sobre o Backup&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$mutt usuario@empresa.com.br -s &quot;Backup Ocomon -
$data&quot; -a lista_dir.txt &amp;lt; $null&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#Deleta o backup com data maior que 48 horas&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 2 -iname &quot;bkp_dump*&quot; -exec
$rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 3 -iname &quot;bkp_dump*&quot; -exec
$rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 4 -iname &quot;bkp_dump*&quot; -exec
$rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 5 -iname &quot;bkp_dump*&quot; -exec
$rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 6 -iname &quot;bkp_dump*&quot; -exec
$rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 7 -iname &quot;bkp_dump*&quot; -exec
$rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 8 -iname &quot;bkp_dump*&quot; -exec
$rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 9 -iname &quot;bkp_dump*&quot; -exec
$rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 10 -iname &quot;bkp_dump*&quot;
-exec $rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 11 -iname &quot;bkp_dump*&quot;
-exec $rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
$find -type f -mtime 12 -iname &quot;bkp_dump*&quot;
-exec $rm -f {} \;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/3134004914685319220/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/06/ocomon-script-para-backup.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/3134004914685319220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/3134004914685319220'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/06/ocomon-script-para-backup.html' title='Ocomon - Script para Backup'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-6561302700476440234</id><published>2016-06-19T11:23:00.001-03:00</published><updated>2016-06-19T11:23:24.162-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ocomon"/><title type='text'>Ocomon - Configurando Layout para qualquer navegador</title><content type='html'>&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Na pasta do ocomon, dentro de includes/css/estilos.css.php,
localize o código:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
print “body&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
font-family: tahoma;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
color:black;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
font-size:11px;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
background-color:”.$row[&#39;tm_color_body&#39;].”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
} “;/*#cde5ff background-color:#d9d8da; 5E515B font-size:
11px; */&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Logo após esta linha, adicione:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
print “&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
#centro {&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
min-width: 140px;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
width: 140px;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
}”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/6561302700476440234/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/06/ocomon-configurando-layout-para.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/6561302700476440234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/6561302700476440234'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/06/ocomon-configurando-layout-para.html' title='Ocomon - Configurando Layout para qualquer navegador'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-8206903872035117919</id><published>2016-06-19T11:19:00.001-03:00</published><updated>2016-06-19T11:19:35.861-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ocomon"/><title type='text'>Ocomon - Migrando Base de Dados Ocomon</title><content type='html'>&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Existe a necessidade de migrar as informações da antiga
instalação do ocomon existente em um antigo ocomon para o novo equipamento com
essa nova instalação do ocomon.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Para isso, acesse o servidor antigo e gere o dump com o
comando abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysqldump -u root -p --opt ocomon &amp;gt; dump.sql&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Executando a importação, para isso, acesse o novo
servidor e execute o comando abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysql -u root -p senha database_name &amp;lt; dump.sql&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Nesse momento, ao acessar a página do ocomon, deve ser
observado que todas as informações já estão prontas para a utilização, podendo
desligar o antigo ocomon no servidor antigo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/8206903872035117919/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/06/ocomon-migrando-base-de-dados-ocomon.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/8206903872035117919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/8206903872035117919'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/06/ocomon-migrando-base-de-dados-ocomon.html' title='Ocomon - Migrando Base de Dados Ocomon'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-5157242530198233901</id><published>2016-06-17T10:24:00.004-03:00</published><updated>2016-06-17T10:25:44.924-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VMWare"/><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Links VMware&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Ativar/Desativar CBT&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;a href=&quot;https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1031873&quot;&gt;https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1031873&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/5157242530198233901/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/06/links-vmware-ativardesativar-cbt-httpskb.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5157242530198233901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5157242530198233901'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/06/links-vmware-ativardesativar-cbt-httpskb.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-5138110409335871414</id><published>2016-06-08T10:02:00.003-03:00</published><updated>2016-06-08T10:16:04.654-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;ADRCI - Oracle&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Mostra o local home do adrci&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt; show homes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Altera o Home Path para o ADRCI&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt; set homepath PATH&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Mostra o Alert Log&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Mostra as ultimas 10 linhas&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;SHOW ALERT -TAIL&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Mostra as ultimas 50 linhas&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;SHOW ALERT -TAIL 50&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Mostra o alert e suas novas atualização&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;SHOW ALERT -TAIL –F&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;SHOW ALERT -P “MESSAGE_TEXT LIKE ‘%ORA-600%&#39;”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Mostra arquivos trace&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Lista os traces&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt;SHOW TRACEFILE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Mostra os traces que contenha mmon&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt;SHOW TRACEFILE %mmon%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Mostra todos os traces do ultimo que foi modificado&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt;SHOW TRACEFILE -RT&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Mostra os incidentes&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt;SHOW INCIDENT&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt;SHOW INCIDENT -MODE BRIEF&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt;SHOW INCIDENT -MODE DETAIL&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;adrci&amp;gt;SHOW INCIDENT -MODE DETAIL -P “INCIDENT_ID=1591”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/pt/articles/database-performance/automatic-diagnostic-repository-2417674-ptb.html&quot;&gt;http://www.oracle.com/technetwork/pt/articles/database-performance/automatic-diagnostic-repository-2417674-ptb.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/5138110409335871414/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/06/blog-post.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5138110409335871414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5138110409335871414'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/06/blog-post.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-687122471001729371</id><published>2016-05-31T09:34:00.000-03:00</published><updated>2016-05-31T09:34:37.383-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TSM"/><title type='text'></title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Ativar Trace Log no TSM&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
trace disable *&lt;br /&gt;
trace enable pvr addmsg&lt;br /&gt;
trace begin &amp;lt;path_to_file&amp;gt;/server.out&lt;br /&gt;
&amp;lt;&amp;lt; Recrie o procedimento que está retornando erro ou ocorrendo algum problema&amp;gt;&amp;gt;&lt;br /&gt;
trace flush&lt;br /&gt;
trace end&lt;br /&gt;
trace disable *&lt;br /&gt;
&lt;br /&gt;
Agora no arquivo server.out terá em detalhes tudo o que ocorreu nesse período que aconteceu o erro.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/687122471001729371/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/05/ativar-trace-log-no-tsm-trace-disable.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/687122471001729371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/687122471001729371'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/05/ativar-trace-log-no-tsm-trace-disable.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-78075591812484847</id><published>2016-05-27T08:33:00.001-03:00</published><updated>2016-05-27T08:34:34.237-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>TAR - Compactação e Descompactação</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;TAR&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Gerar arquivo .tar:&lt;br /&gt;tar -zcf nome_diretorio_ou_arquivo.tar diretorio_ou_arquivo_a_ser_compactado&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Descompactar arquivo .tar:&lt;br /&gt;tar -zxvf arquivo.tar&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/78075591812484847/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/05/tar-compactacao-e-descompactacao.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/78075591812484847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/78075591812484847'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/05/tar-compactacao-e-descompactacao.html' title='TAR - Compactação e Descompactação'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-2980867943731431245</id><published>2016-05-24T10:50:00.002-03:00</published><updated>2016-06-19T12:01:07.271-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>mySQL - Comandos Úteis</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;mySQL&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Conectar no mySQL&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Mostra o charset que esta sendo utilizado pelo mySQL&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Esse comando é útil para saber qual o tipo de charset esta configurado no mySQL, normalmente necessário para analisar problemas de acentuação.&lt;br /&gt;
SHOW VARIABLES LIKE &#39;character%&#39;;&lt;br /&gt;
&lt;br /&gt;
Para alterar os valor é necessário utilizar a instrução set, conforme exemplo abaixo:&lt;br /&gt;
set character_set_server = utf8;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;Conceder permissão no mySQL&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
GRANT [tipo de permissão] ON [nome da base de dados].[nome da tabela] TO ‘[nome do usuário]’@&#39;localhost’;&lt;br /&gt;
&lt;br /&gt;
flush privileges&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/2980867943731431245/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/05/mysql.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/2980867943731431245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/2980867943731431245'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/05/mysql.html' title='mySQL - Comandos Úteis'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-7757014716158151320</id><published>2016-05-04T17:16:00.000-03:00</published><updated>2016-05-04T17:17:21.012-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Regra com Iptables para mascarar IP Interno</title><content type='html'>Hoje precisei realizar o mascaramento do IP Interno do meu roteador para que a comunicação conseguisse chegar em um switch/roteador, ligado na mesma rede, para atender um equipamento específico.&lt;br /&gt;
&lt;br /&gt;
No roteador em questão possuo algumas placas virtuais na Eth0, pois tenho somente uma interface física Eth0.&lt;br /&gt;
&lt;br /&gt;
iptables -I FORWARD -i eth0 -o eth0 -j ACCEPT&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
iptables -t nat -A POSTROUTING -d IP_DESTINO -s FAIXA_ORIGEM/24 -p tcp -j SNAT --to IP_DESSE_IPTABLES&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/7757014716158151320/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/05/regra-com-iptables-para-mascarar-ip.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7757014716158151320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7757014716158151320'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/05/regra-com-iptables-para-mascarar-ip.html' title='Regra com Iptables para mascarar IP Interno'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-7874143132849319512</id><published>2016-05-04T17:00:00.000-03:00</published><updated>2016-05-04T17:02:42.570-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TSM"/><title type='text'>Desativar Drive TAPE no TSM</title><content type='html'>Para desativar&lt;br /&gt;
&lt;br /&gt;
update drive nome_library nome_driver online=no&lt;br /&gt;
&lt;br /&gt;
update path nome_server nome_driver srct=server destt=drive libr=nome_library online=no&lt;br /&gt;
&lt;br /&gt;
Para ativar é o inverso e o parâmetro online=yes</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/7874143132849319512/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/05/desativar-drive-tape-no-tsm.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7874143132849319512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7874143132849319512'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/05/desativar-drive-tape-no-tsm.html' title='Desativar Drive TAPE no TSM'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-4388872281520947848</id><published>2016-04-04T11:53:00.002-03:00</published><updated>2016-04-04T11:53:21.169-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VMWare"/><title type='text'>VMWare vCenter não inicializa o banco de dados</title><content type='html'>Não estava conseguindo me conectar no VMWare vSphere Client e identifiquei que o motivo era o vCenter não estava iniciado.&lt;br /&gt;
&lt;br /&gt;
Devido a isso, me conectei diretamente no Host que hospeda o vCenter para subir o serviço, mas ao tentar subir o serviço, depois de muito tempo tentando, era retornada a mensagem abaixo nos logs do Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;The description for Event ID 1000 from source VMware VirtualCenter Server cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;CREATE DATABASE or ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 10240 MB per database.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Could not allocate space for object &#39;dbo.VPX_HIST_STAT1_220&#39;.&#39;IX_VPX_HIST_STAT1_220_TIME_ID&#39; in database &#39;VIM_VCDB&#39; because the &#39;PRIMARY&#39; filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Ou seja, o vCenter estava informando que não consegui subir, pois o banco de dados Sql Server Express havia atingido o limite do database e não era possível expandir esse database.&lt;br /&gt;
&lt;br /&gt;
Na documentação da própria VM Ware: (&lt;a href=&quot;https://kb.vmware.com/selfservice/search.do?cmd=displayKC&amp;amp;docType=kc&amp;amp;docTypeID=DT_KB_1_1&amp;amp;externalId=2037293&quot;&gt;Limpando dados antigos do banco de dados usado pelo VMware vCenter Server (2037293)&lt;/a&gt;) é explicado que o banco de dados do vCenter, por padrão, guarda as estatísticas de desempenho dos últimos 365 dias dentro do próprio banco e com isso, pode ocorrer do banco lotar, caso seja utilizado o SQL Express.&lt;br /&gt;
&lt;br /&gt;
Executei os procedimentos descritos no KB acima e após reiniciar o servidor, o vCenter voltou a subir normalmente.&lt;br /&gt;
&lt;br /&gt;
Segue o resumo do procedimento:&lt;br /&gt;
&lt;br /&gt;
Para limpar os dados na tabela VPX_EVENT:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Conecte-se a Servername\SQL Database e faça login com as credenciais adequadas.&lt;/li&gt;
&lt;li&gt;Clique em databases para expandir e selecione &lt;b&gt;VIM_VCDB &amp;gt; Tables&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Clique com o botão direito do mouse na tabela &lt;b&gt;dbo.VPX_PARAMETER&lt;/b&gt; e selecione Open.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;b&gt;Observação:&lt;/b&gt; Se você estiver usando o SQL Server 2008, clique com o botão direito do mouse na tabela &lt;b&gt;dbo.VPX_PARAMETER&lt;/b&gt; e clique em Edit Top 200 Rows.&lt;br /&gt;
&lt;br /&gt;
Modifique &lt;span style=&quot;color: red;&quot;&gt;event.maxAge&lt;/span&gt; para &lt;span style=&quot;color: blue;&quot;&gt;30&lt;/span&gt; e modifique o valor &lt;span style=&quot;color: red;&quot;&gt;event.maxAgeEnabled&lt;/span&gt; para &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;.&lt;br /&gt;
Modifique &lt;span style=&quot;color: red;&quot;&gt;task.maxAge&lt;/span&gt; para &lt;span style=&quot;color: blue;&quot;&gt;30&lt;/span&gt; e modifique o valor &lt;span style=&quot;color: red;&quot;&gt;task.maxAgeEnabled&lt;/span&gt; para &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
Observação: para diminuir o tempo gasto na limpeza de dados, realize as etapas anteriores em vários intervalos. Para tal, certifique-se de manter o valor padrão de event.maxAge e de task.maxAge, e execute a etapa 6 para realizar a limpeza. Em seguida, reduza os valores event.maxAge e task.maxAge em 60 e execute a limpeza. Repita as etapas até que o valor atinja 30 para o processo final de limpeza.&lt;br /&gt;
&lt;br /&gt;
Execute o procedimento armazenado integrado:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Vá até &lt;b&gt;VIM_VCDB &amp;gt; Programmability &amp;gt; Stored Procedures&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Clique com o botão direito do mouse em dbo.cleanup_events_tasks_proc e selecione &lt;b&gt;Execute Stored Procedure&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Isso limpa os dados das tabelas vpx_event, vpx_event_arg e vpx_task na data especificada em maxAge.&lt;br /&gt;
&lt;br /&gt;
Quando essa etapa tiver sido concluída com êxito, feche o SQL Management Studio e inicie o serviço do VMware Virtual Center Server.&lt;br /&gt;
&lt;br /&gt;
Para garantir que o Statistics Level padrão esteja definido como 1:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Usando o vSphere Client, conecte-se ao vCenter Server como administrador.&lt;/li&gt;
&lt;li&gt;Vá até Administration &amp;gt; vCenter Server Settings &amp;gt; Statistics.&lt;/li&gt;
&lt;li&gt;Em Statistics Intervals, verifique se a coluna Statistics Level está definida como 1.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Para alterar o valor, selecione o Interval Duration, clique em Edit e selecione Level 1 no menu suspenso.</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/4388872281520947848/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/04/vmware-vcenter-nao-inicializa-o-banco.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/4388872281520947848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/4388872281520947848'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/04/vmware-vcenter-nao-inicializa-o-banco.html' title='VMWare vCenter não inicializa o banco de dados'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-5923870427635489083</id><published>2016-04-01T08:32:00.000-03:00</published><updated>2016-06-19T12:01:39.562-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="Ocomon"/><title type='text'>Ocomon - Extrair relatórios de Indicadores de T.I. direto do mySQL</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;
Segue abaixo o SQL que deve ser executado no banco de dados
mySQL com o schema: ocomon, essa consulta irá trazer os indicadores que devem
ser salvos na planilha mensal para que seja gerado os gráficos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
use ocomon;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
SELECT o.Numero,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
p.problema AS Tipo,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
cat.probt1_desc as Categoria,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
o.contato AS Contato,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
o.descricao AS Descrição, &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
m.solucao AS Solução,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
s.sistema AS Área,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
l.local AS Localização,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
t.status AS Situação,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
data_abertura AS Abertura,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
data_fechamento AS Fechamento,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
login AS Analista &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
FROM&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
ocorrencias AS o &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
INNER JOIN sistemas AS s ON o.sistema = s.sis_id &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
INNER JOIN usuarios AS u ON o.operador = u.user_id &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
INNER JOIN problemas AS p ON o.problema = p.prob_id &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
INNER JOIN prob_tipo_1 AS cat ON cat.probt1_cod =
p.prob_tipo_1&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
INNER JOIN localizacao AS l ON o.local = l.loc_id &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
INNER JOIN status AS t ON o.status = t.stat_id &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
LEFT JOIN prob_tipo_3 AS c ON c.probt3_cod =
p.prob_tipo_3&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
LEFT JOIN solucoes AS m on o.numero = m.numero&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
WHERE t.stat_id IN (1,2,3,4,7,12,15,16,19,21,22,28,29,25,26,27,30,31)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
AND data_fechamento BETWEEN &#39;2016-01-01 00:00:00&#39; AND
&#39;2016-01-31 23:59:59&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
AND (s.sistema = &#39;TI_Sistemas&#39; OR s.sistema =
&#39;TI_Suporte&#39;) &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
GROUP BY &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
p.problema,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
c.probt3_desc,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
s.sistema,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
l.local,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
numero,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
t.status,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
data_abertura,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
data_fechamento,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
login,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
DATE_FORMAT(data_abertura, &#39;%Y-%m&#39;),&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
o.descricao,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
m.solucao&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
ORDER BY 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Copiar o SQL acima para um notepad e depois executá-lo no
mySQL.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Observação:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Com os dados retornados será possível criar uma planilha no Excel para gerar gráficos. Adeque os campos s.sistema acima, conforme os grupo de atendimento em sua empresa, aqui eu separei o Ocomon em dois grupos distintos para atendimento, que são: &quot;TI_Sistemas&quot; que são os programadores que atendem e o grupo &quot;TI_Suporte&quot; que são os analistas de suporte que atendem.&lt;/li&gt;
&lt;li&gt;O valor datas no Where deve ser alterado para o período que você deseja extrair o seu relatório.&lt;/li&gt;
&lt;li&gt;Montei uma planilha em Excel e criei algumas Abas, em uma delas, eu insiro o retorno do Select acima e nas demais Abas, eu criei gráficos e apontamentos diretamente no Excel, pois achei mais fácil e já que não tenho conhecimento suficiente em PHP para alterar no próprio Ocomon.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/5923870427635489083/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/04/ocomon-extrair-relatorios-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5923870427635489083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5923870427635489083'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/04/ocomon-extrair-relatorios-de.html' title='Ocomon - Extrair relatórios de Indicadores de T.I. direto do mySQL'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-5419665987657695655</id><published>2016-03-30T16:36:00.000-03:00</published><updated>2016-03-30T16:36:35.439-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Desativar SELinux no CentOS 7 64 bits</title><content type='html'>Acesse o arquivo:&amp;nbsp;vi /etc/sysconfig/selinux e altere a linha abaixo:&lt;br /&gt;
&lt;br /&gt;
de:&lt;br /&gt;
&lt;br /&gt;
SELINUX=enforcing&lt;br /&gt;
&lt;br /&gt;
para:&lt;br /&gt;
&lt;br /&gt;
SELINUX=disabled&lt;br /&gt;
&lt;br /&gt;
Execute o comando abaixo para o parâmetro acima seja carregado.&lt;br /&gt;
&lt;br /&gt;
setenforce 0&lt;br /&gt;
&lt;br /&gt;
Verifique se funcionou executando o comando abaixo. Deve retornar o valor &quot;Disabled&quot;&lt;br /&gt;
&lt;br /&gt;
getenforce&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/5419665987657695655/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/03/desativar-selinux-no-centos-7-64-bits.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5419665987657695655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/5419665987657695655'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/03/desativar-selinux-no-centos-7-64-bits.html' title='Desativar SELinux no CentOS 7 64 bits'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-2778000117025051599</id><published>2016-03-30T11:38:00.000-03:00</published><updated>2016-03-30T11:38:15.637-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Instalar Client Oracle CentOS 7 64 bits</title><content type='html'>&lt;span style=&quot;font-family: inherit;&quot;&gt;Realizar a instalação dos pacotes abaixo com o comando rpm -ivh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# rpm -ivh oracle-instantclient-devel-10.2.0.4-1.i386.rpm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Após a instalação os arquivos ficarão armazenados nos diretórios:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;- Código Fonte em: /usr/include/oracle&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;- Binários e bibliotecas em: /usr/lib/oracle&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Após a instalação, verifiquei que ainda não era possível executar, por exemplo, o SQLPlus, provavelmente por não ter criado a variável ORACLE_HOME e ORACLE_BASE no PATH do meu usuário no Linux. Identifiquei que o Linux conseguiu localizar o binário no /usr/bin/sqlplus, mas retornando a mensagem abaixo:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;-bash: /usr/bin/sqlplus: &lt;span style=&quot;color: red;&quot;&gt;/lib/ld-linux.so.2&lt;/span&gt;: bad ELF interpreter: Arquivo ou diretório não encontrado&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Inseri as variáveis abaixo no .bash_profile:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# VARIAVEIS ORACLE CENTOS 7&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;export ORACLE_BASE=&quot;/usr/lib/oracle/10.2.0.4&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;export ORACLE_HOME=&quot;/usr/lib/oracle/10.2.0.4/client&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;export LD_LIBRARY_PATH=&quot;/usr/lib/oracle/10.2.0.4/client/lib&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;export NLS_LANG=ENGLISH.WE8ISO8859P1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;export NLS_DATE_FORMAT=&#39;DD/MM/RRRR&#39;&lt;/span&gt;&lt;br /&gt;
export TNS_ADMIN=&quot;/etc/tnsnames.ora&quot;&lt;br /&gt;
&lt;br /&gt;
PATH=$PATH:$HOME/bin:$ORACLE_BASE:$ORACLE_HOME:$LD_LIBRARY_PATH:$TNS_ADMIN&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Mesmo após ter inserido as variáveis acima, a mensagem de erro continuava.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Identifiquei que essa mensagem ocorria, devido ao fato que os rpms do client Oracle instalado eram de 32 bits e o CentOS 7 era de 64 bits. A instalação minima do CentOS não instala a glibc de 32 bits, somente a de 64 bits, com isso, os programas de 32 bits podem apresentar a mensagem acima. Devido a isso, realizei a instalação da glic 32 bits, conforme as linhas abaixo:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;yum install glibc.i686&lt;/span&gt;&lt;br /&gt;
yum install glibc-devel.i686&lt;br /&gt;
yum install glibc-static.i686&lt;br /&gt;
&lt;br /&gt;
Após a instalação, consegui executar o sqlplus normalmente:&lt;br /&gt;
&lt;br /&gt;
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Mar 30 10:03:32 2016&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 1982, 2007, Oracle. &amp;nbsp;All Rights Reserved.&lt;br /&gt;
&lt;br /&gt;
Enter user-name:&lt;br /&gt;
&lt;br /&gt;
Falta copiar o arquivo tnsnames.ora para o /etc&lt;br /&gt;
&lt;br /&gt;
Após isso, consegui me conectar no Oracle nas TNS listados no arquivo tnsnames.ora</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/2778000117025051599/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/03/instalar-client-oracle-centos-7-64-bits.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/2778000117025051599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/2778000117025051599'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/03/instalar-client-oracle-centos-7-64-bits.html' title='Instalar Client Oracle CentOS 7 64 bits'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-4263536540080790035</id><published>2016-03-27T22:48:00.001-03:00</published><updated>2016-04-01T21:39:58.891-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Oracle - Procedimentos, Comandos e Selects Úteis</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Post Oracle - Procedimentos, Comandos e Selects Úteis Resenha feita por Breny Ricardo Martins Coelho em 28/03/2016. Muito útil no dia a dia Conteúdo deste post foi validado! Classificação: 5 &lt;br /&gt;&lt;br /&gt;&lt;u&gt;ASM:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;- Verificar espaço disponível dentro do ASM&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Data Base:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;- Identificando a versão do banco de dados Oracle Server&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Funções:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;- Deletando uma função&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Tablespaces:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;- Dropar uma Tablespace&lt;br /&gt;- Informa as Tablespaces existentes&lt;br /&gt;- Verifica o Tamanho das Tablespaces&lt;br /&gt;- Informa o espaço ocupado nas Tablespaces system e sysaux&lt;br /&gt;- Colocar Tablespace em modo off line&lt;br /&gt;- Verifica quais objetos estão crescendo&lt;br /&gt;- Verifica o espaço livre nas Tablespaces&lt;br /&gt;- Verifica se a Tablespace está gerenciada localmente&lt;br /&gt;- Gerenciando Tablespace TEMP&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ASM&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Verificar espaço disponível dentro do ASM&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;Logar com o usuário: &lt;span style=&quot;color: blue;&quot;&gt;grid&lt;/span&gt; para executar o comando abaixo:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;asmcmd lsdg&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Data Base&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Identificando a versão do banco de dados Oracle Server&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;COL PRODUCT FORMAT A35&lt;br /&gt;COL VERSION FORMAT A15&lt;br /&gt;COL STATUS FORMAT A15&lt;br /&gt;SELECT * FROM PRODUCT_COMPONENT_VERSION;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;b&gt;Funções&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Deletando uma função&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;Execute o comando abaixo para deletar uma função específica.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;DROP FUNCTION OWNER_FUNCTION.FUNCTION_NAME;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;b&gt;Tablespaces&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Dropar uma Tablespace&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;DROP TABLESPACE TABLESPACE_NAME INCLUDING CONTENTS AND DATAFILES;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Informa as Tablespaces existentes&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT TABLESPACE_NAME FROM DBA_TABLESPACES;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Verifica o Tamanho das Tablespaces&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;br /&gt;SET LINESIZE 100&lt;br /&gt;COLUMN TABLESPACE FORMAT A15 &lt;br /&gt;select&lt;br /&gt;t.tablespace, &lt;br /&gt;t.totalspace as &quot; Totalspace(MB)&quot;,&lt;br /&gt;round((t.totalspace-fs.freespace),2) as &quot;Used Space(MB)&quot;,&lt;br /&gt;fs.freespace as &quot;Freespace(MB)&quot;,&lt;br /&gt;round(((t.totalspace-fs.freespace)/t.totalspace)*100,2) as &quot;% Used&quot;,&lt;br /&gt;round((fs.freespace/t.totalspace)*100,2) as &quot;% Free&quot; &lt;br /&gt;from&lt;br /&gt;(select round(sum(d.bytes)/(1024*1024)) as totalspace, &lt;br /&gt;d.tablespace_name tablespace &lt;br /&gt;from&lt;br /&gt;dba_data_files d group by d.tablespace_name) t,&lt;br /&gt;(select round(sum(f.bytes)/(1024*1024)) as freespace,&lt;br /&gt;f.tablespace_name tablespace&lt;br /&gt;from dba_free_space f group by f.tablespace_name) fs&lt;br /&gt;where&lt;br /&gt;t.tablespace=fs.tablespace order by t.tablespace;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Informa o espaço ocupado nas Tablespaces system e sysaux&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;br /&gt;&lt;b&gt;Observação&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;li&gt;As colunas USED_SPACE e TABLESPACE_SIZE são mostrados em blocos de dados, devido a isso, é necessário multiplicar o valor informado nas duas colunas pelo valor padrão do tamanho do bloco Oracle, que é normalmente 8192.&lt;/li&gt;
&lt;li&gt;O interessante a ser notar nos resultados da view DBA_TABLESPACE_USAGE_METRICS é que ela não leva em conta somente a soma do tamanho atual dos arquivos de dados que compõem uma tablespace, mas o tamanho máximo que eles poderão atingir de acordo com a configurações de cada um, ou seja, dependerá também do valor de MAXSIZE caso a opção AUTOEXTEND do arquivo de dados esteja habilitada.&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
Na instrução abaixo, notar que foi selecionada somente duas tablespaces (system, sysaux), mas poderia ser qualquer uma existente no Oracle.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT *&lt;br /&gt;FROM dba_tablespace_usage_metrics&lt;br /&gt;WHERE tablespace_name in (&#39;SYSTEM&#39;, &#39;SYSAUX&#39;)&lt;br /&gt;ORDER BY 1;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Colocar Tablespace em modo off line&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;ALTER TABLESPACE TABLESPACE_NAME OFFLINE;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Verifica quais objetos estão crescendo&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;Observação&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A instrução abaixo deve ser executada a cada hora para se ter a idéia do que está crescendo.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT SEGMENT_NAME, EXTENTS, BYTES, MAX_EXTENTS, NEXT_EXTENT, SEGMENT_TYPE FROM DBA_SEGMENTS WHERE OWNER = &#39;SYS&#39; ORDER BY BYTES DESC;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Verifica o espaço livre nas Tablespaces&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT TABLESPACE_NAME, SUM(BYTES) FREE_SPACE &lt;br /&gt;FROM DBA_FREE_SPACE &lt;br /&gt;GROUP BY TABLESPACE_NAME;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Verifica se a Tablespace está gerenciada localmente&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT TABLESPACE_NAME, EXTENT_MANAGEMENT FROM DBA_TABLESPACES WHERE TABLESPACE_NAME = &#39;SYSTEM&#39;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;Gerenciando Tablespace TEMP&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;Adicionando um tempfiles&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;ALTER TABLESPACE TABLEPSACE_TEMP_NAME ADD TEMPFILE &#39;ENDEREÇO_DATA_FILE&#39; SIZE 50M AUTOEXTEND ON NEXT 50M MAXSIZE 512M;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Deletando um tempfile&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;ALTER DATABASE TEMPFILE &#39;ENDEREÇO_DATA_FILE&#39; OFFLINE; &lt;br /&gt;ALTER DATABASE TEMPFILE &#39;ENDEREÇO_DATA_FILE&#39; DROP; &lt;br /&gt;SELECT FILE_NAME, TABLESPACE_NAME FROM DBA_TEMP_FILES&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;O datafile que você excluiu, não pode ser mais listado &lt;br /&gt;Acesse o diretório no sistema operacional onde o datafile está armazenado e a princípio mova-o para outro diretório; &lt;br /&gt;Se possível, realize um shutdown, seguido de um startup na instância com o objetivo de verificar se o Oracle retornará algum erro, caso não retorne, delete o arquivo movido. &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/4263536540080790035/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2016/03/oracle-procedimentos-comandos-e-selects.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/4263536540080790035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/4263536540080790035'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2016/03/oracle-procedimentos-comandos-e-selects.html' title='Oracle - Procedimentos, Comandos e Selects Úteis'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-2080144885161073483</id><published>2013-08-09T15:11:00.003-03:00</published><updated>2016-05-04T17:07:19.882-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Filtrando endereço de Spam de Arquivo Texto no Linux</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Hoje eu precisei melhorar o meu sistema de Antispam e extrai através do banco de dados todos os endereços de Spam, aqueles caras que ficam enviando propaganda para o meu servidor de e-mail.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Pois bem, o meu servidor de e-mail possui um sistema de Antispam muito bom, e barra 90% dos spam, ocorre que os e-mails de spam que ficam parados na Quarentena, fica ocupando espaço no meu HD e eu não quero isso.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Para resolver isso, criei um arquivo de texto com todos os endereços de e-mails dos remetentes de spams, e precisei encontrar uma forma de listar os domínios, ou seja, tudo que vem depois do &quot;@&quot; apos o nome do remetente.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Para isso, utilizei o nosso amigo cut no Linux com o comando abaixo:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;cut -f2 -d\@ teste.txt&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Na linha acima eu chamei o cut e falei pra ele, que dentro do arquivo teste.txt existe os nomes dos endereços de e-mail, falei pra ele que o meu delimitador é o &quot;@&quot;, conforme a opção -d\@ essa barra é para falar para o bash não interpretar o &quot;@&quot; como sendo um comando, mas sim um simples caractere de teclado.&lt;br /&gt;E na opção -f2, falei que quero que me traga o que vier depois do &quot;@&quot;, ou seja, o segundo campo.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Ok, percebi que alguns domínios devem ser excluídos desse processamento, por exemplo, o do próprio gmail, para isso, alterei a linha de comando acima para:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;cut -f2 -d\@ teste.txt | sed &#39;/gmail/d&#39; &amp;gt; blacklist.txt&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Ok, agora eu consegui gerar o arquivo blacklist.txt com os domínios, com esse arquivo eu posso fazer um for, enviando domínio a domínio para o meu blacklist dentro do meu sistema de Antispam.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/2080144885161073483/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2013/08/filtrando-endereco-de-spam-de-arquivo.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/2080144885161073483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/2080144885161073483'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2013/08/filtrando-endereco-de-spam-de-arquivo.html' title='Filtrando endereço de Spam de Arquivo Texto no Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-7482030634740619033</id><published>2013-07-04T16:28:00.003-03:00</published><updated>2016-05-04T17:11:07.870-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Group Police (GPO) Através do Registro do Windows</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Boa tarde.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Segue abaixo as linhas que eu utilizo para bloquear ou configurar a estação de um usuário através do registro do Windows.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;rem Configura o Proxy no Navegador do Usurio (ProxyEnable = 1 Ativa e = 0 Desativa)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings&quot; /v ProxyEnable /t REG_DWORD /d 00000001 /f&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings&quot; /v ProxyOverride /t REG_SZ /d &quot;192.168.1.1:128;192.168.1.1:243;&amp;lt;local&amp;gt;&quot; /f&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings&quot; /v ProxyServer /t REG_SZ /d 192.168.1.1:128 /f&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;

&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;rem DESATIVA PAINEL DE CONTROLE 1=Bloqueia 0=Libera&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoControlPanel /t REG_DWORD /d 00000000 /f&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;rem DESATIVA PENDRIVE E DISPOSITIVO DE ARMAZENAMENTO USB 4=Bloqueia 0=Libera&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg delete &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR&quot; /v Start /f&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR&quot; /v Start /t REG_DWORD /d 00000000 /f&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;rem CONFIGURA WSUS NAS ESTAÇÕES&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate&quot; /v WUServer /t REG_SZ /d http://antivirus /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate&quot; /v WUStatusServer /t REG_SZ /d http://antivirus /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v AUOptions /t REG_DWORD /d 00000004 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v AutoInstallMinorUpdates /t REG_DWORD /d 00000001 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v DetectionFrequency /t REG_DWORD /d 00000001 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v DetectionFrequencyEnabled /t REG_DWORD /d 00000001 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 00000001 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v NoAutoUpdate /t REG_DWORD /d 00000000 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v RescheduleWaitTime /t REG_DWORD /d 000000012 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v RescheduleWaitTimeEnabled /t REG_DWORD /d 00000001 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v ScheduledInstallDay /t REG_DWORD /d 00000000 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v ScheduledInstallTime /t REG_DWORD /d 000000014 /f&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU&quot; /v UseWUServer /t REG_DWORD /d 00000001 /f&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;rem Bloquear a alterao do Papel de Parede da area de trabalho 1=Bloqueia 0=Libera&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoDesktopCleanupWizard /t REG_DWORD /d 0x00000000 /f&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;rem Remover Menus Personalizados 1=Remove 0=Mantem&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v Intellimenus /t REG_DWORD /d 0x00000001 /f&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;rem Bloquear Barra de Tarefas 1=Bloqueia 0=Libera&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v LockTaskbar /t REG_DWORD /d 0x00000000 /f&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;rem Menu Iniciar no estilo Clássico 1=&quot;Estilo Classico&quot;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoSimpleStartMenu /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Acelera o Menu Iniciar&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Control Panel\Desktop&quot; /v MenuShowDelay /t REG_SZ /d 0 /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_USERS\.DEFAULT\Control Panel\Desktop&quot; /v MenuShowDelay /t REG_SZ /d 0 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desabilitar a Notificao de Antivrus Desativado 0=Ativa 1=Desativa&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center&quot; /v AntiVirusDisableNotify /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desabilitar a Notificao de Firewall Desativado Ativa Notificacao=0 | Desativa Notificacao=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center&quot; /v FirewallDisableNotify /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desabilitar a Notificao de Atualizaes Automticas Desativada Desativa Notificacao=1 | Ativa Notificacao=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\Software\Microsoft\Security Center&quot; /v UpdatesDisableNotify /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desabilitar Windows Messenger Habilita MSN=0 | Desativa MSN=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Messenger\Client&quot; /v PreventRun /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Disable Windows Xp Firewall Ativa Firewall=1 | Desativa Firewall=0&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Serices\SharedAccess\Parameters\FirewallPolicy\StandardProfile&quot; /v EnableFirewall /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Limpa arquivos temporarios do Internet Explorer Limpa Arquivos=0 | Nao Limpa Arquivos=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache&quot; /v Persistent /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Esconde a pagina para configurao de temas Esconde=1 | Nao Esconde=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;reg add &lt;/b&gt;&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoThemesTab /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Exibe o botao logoff no menu iniciar &amp;nbsp;1=Exibe 0=No exibe&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v ForceStartMenuLogoff /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Exibe arquivos ocultos Exibir Arquivos=1 | Ocultar Arquivos=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced&quot; /v Hidden /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Bloqueia a alteracao da pagina inicial&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
rem reg add &quot;HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer&quot;&lt;/div&gt;
&lt;div&gt;
rem reg add &quot;HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel&quot;&lt;/div&gt;
&lt;div&gt;
rem reg add &quot;HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel&quot; /v homepage /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Define Papel de Parede&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Control Panel\Desktop&quot; /v ConvertedWallpaper /t REG_SZ /d &quot;\\endereco\arquivo&lt;b&gt;.bmp&lt;/b&gt;&quot; /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Control Panel\Desktop&quot; /v OriginalWallpaper /t REG_SZ /d &quot;\\endereco\arquivo&lt;b&gt;.bmp&lt;/b&gt;&quot; /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Control Panel\Desktop&quot; /v Wallpaper /t REG_SZ /d &quot;\\endereco\arquivo&lt;b&gt;.bmp&lt;/b&gt;&quot; /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativa o Horario de Verao na estacao&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
rem reg DELETE &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation&quot; /v DisableAutoDaylightTimeSet /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativa a Tour ao Iniciar o Windows pela primeira vez&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour&quot; /v RunCount /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativando instalacoes .msi atraves de dispositivos removiveis - Desativa Instalacoes=1 | Ativa Instalacoes=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer&quot; /v DisableMedia /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativando o Windows Installer - Bloqueia=2 | Libera=0 | AdminOnly = 1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer&quot; /v DisableMSI /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Ocultacao de icones na barra de tarefas - Mostra Icone=0 | Esconde Icones=1&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer&quot; /v EnableAutoTray /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Boot automatico apos erro de tela azul - Disativa=0 | Ativa=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl&quot; /v AutoReboot /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Hide Gerenciar do Meu Computador - Mantem=0 - Hide=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoManageMyComputerVerb /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativando o Botao Direito no Internet Explorer - Desativa Acesso=1 | Ativa Acesso=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions&quot; /v NoBrowserContextMenu /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativando alteracao no Menu Iniciar - Desativa Alteracoes=1 | Permite Alteracoes=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoChangeStartMenu /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Alterar o nome do responsavel pelo Windows&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion&quot; /v RegisteredOwner /t REG_SZ /d &quot;Minha Empresa&quot; /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion&quot; /v RegisteredOrganization /t REG_SZ /d &quot;Minha Empresa&quot; /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Nao deleta impressoras do sistema - Nao permite apagar=1 | Permite Apagar=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoDeletePrinter /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Nao permite instalar novas impressoras no sistema - Nao permite instalar=1 | Permite Instalar=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoAddPrinter /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Esconde o executar do Menu Iniciar - Esconde o Executar=1 | Mostra o Executar=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoRun /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Bloqueia alteracao na Barra do Internet Explorer - Bloqueia=1 | Desbloqueia=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Restrictions&quot; /v NoBrowserBars /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Bloqueia Salvar como no Internet Explorer - Bloqueia=1 | Desbloqueia=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Restrictions&quot; /v NoBrowserSaveAs /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Bloqueia Opes de Internet - Bloqueia=1 | Desbloqueia=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Restrictions&quot; /v NoBrowserOptions /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Define a pagina inicial do Internet Explorer&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main&quot; /v &quot;Start Page&quot; /t REG_SZ /d &quot;http://www.meusite.com.br&quot; /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Define a pagina de pesquisa do Internet Explorer&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main&quot; /v &quot;Search Page&quot; /t REG_SZ /d &quot;www.google.com.br&quot; /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Remover as dicas dos bales nos itens do &quot;Menu Iniciar&quot;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoSMBalloonTip /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Bloquear o Gerenciador de Tarefas - Bloquear=1 | Liberar=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System&quot; /v DisableTaskMgr /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Bloqueia Barra de Ferramentas do Internet Explorer - Bloquear=1 | Liberar=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoBandCustomize /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativar Assistencia Remota - Bloquear=1 | Liberar=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server&quot; /v fAllowToGetHelp /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server&quot; /v fDenyTSConnections /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativar rastreamento automatico de impressora e compartilhamento na rede - Bloquear=1 | Liberar=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoActiveDesktopChanges /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativa Protecao de Tela - Ativa o Funcionamento=1 | Desativa=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel&quot;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop&quot;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop&quot; /v ScreenSaveActive /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativa Ferramentas Opcoes do Windows Explorer - Forcar=1 | Liberar=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoFolderOptions /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Oculta o Icone do Ambiente de Redes do Desktop - Mostra=0 | Oculta=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoNetHood /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativa o Logon com Senha em Cache - Desativar=0 | Padro=10&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon&quot; /v cachedlogonscount /t REG_SZ /d 0 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem com Senha em Cache - Desativar=0 | Padro=10&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon&quot; /v cachedlogonscount /t REG_SZ /d 0 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Configura mensagem no Logon&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon&quot; /v Welcome /t REG_SZ /d &quot;Bem vindo a Minha Empresa&quot; /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Oculta os computadores identificados no Ambiente de Rede - Oculta=1 | Mostra=0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters&quot; /v Hidden /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Oculta Opcao Mapear Unidade de Rede e Desconectar Unidade de Rede - Desativado=0 | Ativado=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoNetConnectDisconnect /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Oculta Ajuda do Windows no Menu Iniciar - Desativado=0 | Ativado=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoSMHelp /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Oculta Localizar no Menu Iniciar - Desativado=0 | Ativado=1&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v NoFind /t REG_DWORD /d 0x00000000 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativar Salvar como Papel de Parede - Desativado=1 | Ativado=3&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CLASSES_ROOT\SystemFileAssociations\.jpeg&quot; /v ImageOptionFlags /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CLASSES_ROOT\SystemFileAssociations\.jpg&quot; /v ImageOptionFlags /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CLASSES_ROOT\SystemFileAssociations\.gif&quot; /v ImageOptionFlags /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CLASSES_ROOT\SystemFileAssociations\.png&quot; /v ImageOptionFlags /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop&quot; /v NoChangingWallpaper /t REG_DWORD /d 0x00000001 /f&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Desativa Tumnails&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
C:\WINDOWS\system32\REGSVR32 shimgvw.dll /s&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;rem Bloquear Jogos/aplicativos no Windows&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&quot; /v DisallowRun /t REG_SZ /d 1 /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 1 /t REG_SZ /d winmine.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 2 /t REG_SZ /d sol.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 3 /t REG_SZ /d mshearts.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 4 /t REG_SZ /d spider.exe /f&lt;/div&gt;
&lt;div&gt;
rem reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 5 /t REG_SZ /d msnmsgr.exe /f&lt;/div&gt;
&lt;div&gt;
rem reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 6 /t REG_SZ /d skype.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 7 /t REG_SZ /d hrtzzm.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 8 /t REG_SZ /d chkrzm.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 9 /t REG_SZ /d shvlzm.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 10 /t REG_SZ /d bckgzm.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 11 /t REG_SZ /d Rvsezm.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 12 /t REG_SZ /d pinball.exe /f&lt;/div&gt;
&lt;div&gt;
reg add &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun&quot; /v 13 /t REG_SZ /d freecell.exe /f&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/7482030634740619033/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2013/07/group-police-gpo-atraves-do-registro-do.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7482030634740619033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/7482030634740619033'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2013/07/group-police-gpo-atraves-do-registro-do.html' title='Group Police (GPO) Através do Registro do Windows'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-1208537478123745010</id><published>2013-07-02T17:05:00.001-03:00</published><updated>2016-05-04T17:19:03.815-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Redimensionar e diminuir tamanho de imagens no Linux</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Autor: Breny Ricardo Martins Coelho&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Boa tarde.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Abaixo, segue o conteúdo do script que eu criei para diminuir o tamanho das imagens .JPG no meu servidor.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;#CONSTANTES&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;convert=&quot;/usr/local/imagemagick/bin/convert&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;dir_tmp=&quot;/home/breny/tmp/&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;dir_img=&quot;/home/breny/img&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;chmod=&quot;/bin/chmod&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;chown=&quot;/bin/chown&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;find=&quot;/usr/bin/find&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;lsjpg=&#39;/bin/ls -1 *.jpeg&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;imagem=&quot;/bin/cat lista&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;#EXECUCAO&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;cd $dir_tmp&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;$lsjpg &amp;gt; lista&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;for s in `$imagem`&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo $s&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #$convert -resize 2304x768 -crop &#39;1280x720+0+0&#39; +profile &#39;*&#39; $s $dir_img/$s&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $convert -antialias +profile &#39;*&#39; -quality 40 $s $dir_img/$s&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #$convert -antialias +profile &#39;*&#39; -resize 1024x768 $s $dir_img/$s&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;done&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/1208537478123745010/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2013/07/redimensionar-e-diminuir-tamanho-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/1208537478123745010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/1208537478123745010'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2013/07/redimensionar-e-diminuir-tamanho-de.html' title='Redimensionar e diminuir tamanho de imagens no Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5256012299728715035.post-8739388673167213546</id><published>2013-06-12T17:57:00.004-03:00</published><updated>2016-06-19T11:16:57.084-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ocomon"/><title type='text'>Ocomon – Instalação e Configuração</title><content type='html'>&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;text-align: left;&quot;&gt;
Autor: Breny Ricardo M. Coelho&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Contatos:&lt;br /&gt;
Twitter: @brenyricardo&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;Ambiente:&lt;/b&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Red Hat Enterprise Linux 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;Requerimento:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
perl-DBI-1.52-2.el5.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysql-5.0.77-4.el5_5.4.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysql-devel-5.0.77-4.el5_5.4.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
perl-DBD-MySQL-3.0007-2.el5.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysql-server-5.0.77-4.el5_5.4.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysql-test-5.0.77-4.el5_5.4.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
php-5.1.6-27.el5_5.3&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
php-common-5.1.6-27.el5_5.3&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
php-cli-5.1.6-27.el5_5.3&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
php-pdo-5.1.6-27.el5_5.3.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
php-mysql-5.1.6-27.el5_5.3.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
php-gd-5.1.6-27.el5_5.3.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;Observação:&lt;/b&gt;
Como até o momento esse servidor Red Hat Enterprise Linux 5 não foi registrado
com a Red Hat, estou impossibilitado de executar a instalação através do yum,
por esse motivo, realizei a instalação manualmente com o rpm -ivh, levei em
consideração a ordem de instalação necessária para satisfazer as dependências
existentes entre os pacotes descritos acima. Dessa forma, os pacotes descritos
acima, seguem a ordem de instalação de cima para baixo.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Para realizar a instalação de cada pacote é necessário
executar o comando: rpm -ivh seguido do nome do pacote que será instalado,
seguindo a ordem mencionada no requerimento.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh perl-DBI-1.52-2.el5.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh mysql-5.0.77-4.el5_5.4.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh mysql-devel-5.0.77-4.el5_5.4.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh perl-DBD-MySQL-3.0007-2.el5.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh mysql-server-5.0.77-4.el5_5.4.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh mysql-test-5.0.77-4.el5_5.4.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh php-pdo-5.1.6-27.el5_5.3.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh php-mysql-5.1.6-27.el5_5.3.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
rpm -ivh php-gd-5.1.6-27.el5_5.3.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Após realizar a instalação dos pacotes acima o mysql
utilizara o diretório: /var/lib/mysql para o dicionário de dados do mysql e
inicialmente um banco de teste, localizado dentro do diretório: /var/lib/mysql
como mysql e test.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;Criar a senha para
o usuário root no mySQL&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
O mysql utiliza ACLs para permitir que os seus usuários
consigam conectar, inicialmente é necessário criar a senha para o usuário root
do banco, para isso execute o comando abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
service mysqld start&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysqladmin -u root password insira_a_nova_senha_aqui&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysqladmin -u root -h localhost password
insira_a_nova_senha_aqui&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Dependendo de como o usuário root irá se conectar no
banco, cadastramos as senhas seguindo o mesmo conceito.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Após isso podemos conectar no mysql com o usuário root,
executando o comando abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
mysql –u root –p&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Será solicitada a senha cadastrada para o usuário root&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Será disponibilizado o prompt de comando do mysql&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Execute a instrução abaixo para que o mysql mostre os
bancos existentes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;gt;show databases;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
+-----------------------------+&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
| Database&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
|&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
+-----------------------------+&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
| information_schema |&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
| mysql&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
| test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
+-----------------------------+&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
3 rows in set (0.00 sec)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Com isso terminamos o procedimento de instalação do
mysql.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;Aumentando a
segurança do Mysql&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Execute o script mysql_secure_installation para que o
mesmo reconfigure alguns parâmetros para aumentar a segurança do mysql.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;Instalando o
ocomon&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
O ocomon é um sistema para o gerenciamento de chamados
abertos para o help desk da empresa.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Realize o download do arquivo: ocomon_2.0-RC6.zip no
seguinte link: &lt;a href=&quot;http://sourceforge.net/projects/ocomonphp/files/&quot;&gt;http://sourceforge.net/projects/ocomonphp/files/&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Salve o mesmo no servidor e após concluir o download,
execute o comando abaixo para descompactar e gerar um novo diretório para
realizar a instalação:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
[root@localhost]# unzip ocomon_2.0-RC6.zip&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Será criado o diretório:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
ocomon_2.0-RC6&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Crie o diretório ocomon dentro diretório root do Apache
para que o servidor Apache possa publicar esses arquivos, execute os comandos
abaixo para isso:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
[root@localhost]# mkdir /var/www/html/ocomon/&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
[root@localhost]# rsync -av ocomon_2.0-RC6/
/var/www/html/ocomon/&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Acesse o diretório que possui o script para popular o
mysql com a estrutura de tabelas utilizadas pelo ocomon:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
[root@localhost]# cd /var/www/html/ocomon/install/2.0RC6/&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Edite o arquivo: DB_OCOMON_2.0RC6_FULL.SQL alterando o
nome do banco. Siga as linhas abaixo e substitua as linhas semelhantes no
arquivo com os exemplos abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
CREATE DATABASE ocomon DEFAULT CHARACTER SET utf8;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
CREATE USER ocomon IDENTIFIED BY &#39;senha_do_usuario&#39;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
GRANT SELECT , INSERT , UPDATE , DELETE ON ocomon .* TO
ocomon@localhost;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
GRANT ALL PRIVILEGES ON ocomon.* TO ocomon@localhost
IDENTIFIED BY &#39;senha do usuario ocomon;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
USE ocomon;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Salve o arquivo e execute o comando abaixo para iniciar a
criação:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
[root@localhost]# mysql -u root -p &amp;lt;
DB_OCOMON_2.0RC6_FULL.SQL&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Após esse procedimento, o banco, o usuário e as tabelas
estarão criadas no mysql.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Agora é necessário alterar o arquivo de parâmetros do
próprio ocomon, para isso, execute:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
[root@localhost]# /var/www/html/ocomon/includes&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
[root@localhost]# mv config.inc.php-dist config.inc.php&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Acesse o arquivo: config.inc.php e altere o nome do banco
para o nome indicado dentro do script executado para criar o banco&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
[root@localhost]# vi config.inc.php&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Encontrar as linhas semelhante as abaixo e alterar
seguindo esse exemplo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
define ( &quot;SQL_USER&quot;, &quot;ocomon&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
define ( &quot;SQL_PASSWD&quot;,
&quot;senha_do_banco&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
define ( &quot;SQL_SERVER&quot;, &quot;localhost&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
define ( &quot;SQL_DB&quot;, &quot;ocomon&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
define ( &quot;DB_CCUSTO&quot;,&quot;ocomon&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Essas informações são as mesmas informadas dentro do
script que criou o banco.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;b&gt;Observação:&lt;/b&gt; Ao
terminar esse processo, verifiquei que o PHP não estava conseguindo logar com o
usuário ocomon no mysql, retornando a mensagem “Access denied for user
&#39;ocomon&#39;@&#39;localhost&#39; (using password: YES)”. Ao analisar o motivo, identifiquei
que não havia informado o mysql para dar permissão para o usuário ocomon logar
no banco.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Para conceder essa permissão para o usuário ocomon,
logue-se com o usuário root no mysql com o comando: mysql –u root –p &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Após logar, execute a linha abaixo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;gt; GRANT ALL PRIVILEGES ON ocomon.* TO ocomon@localhost
IDENTIFIED BY &#39;senha do usuario ocomon;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Essa mesma linha pode ser inserida no script que cria o
banco para o ocomon, dessa forma, não sendo necessário executar ela agora, com
o usuário root.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Após realizar o passo acima, a página do ocomon já estará
disponível através do endereço especificado no servidor web, no contexto desse
documento, o acesso a página é feito acessando o link:
http://ocomon.empresa.com.br/&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Como é o primeiro acesso, o usuário a ser utilizado é o:
admin e a senha: admin&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Altere a senha do usuário admin quando possível.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://genixsky.blogspot.com/feeds/8739388673167213546/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://genixsky.blogspot.com/2013/06/ocomon-instalacao-e-configuracao.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/8739388673167213546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5256012299728715035/posts/default/8739388673167213546'/><link rel='alternate' type='text/html' href='http://genixsky.blogspot.com/2013/06/ocomon-instalacao-e-configuracao.html' title='Ocomon – Instalação e Configuração'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15114338877432059565</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>