28/03/2012

Backup via comando Servidor Virtual pelo VCB VmWare

Segue linha de comando para backup via comando no servidor VCB

c:\
cd\
cd Program Files\VMware\VMware Consolidated Backup Framework
vcbMounter.exe -h host virtual center -a name:host do servidor para backup -t fullvm -r d:\ diretório\host do servidor -fullVM -u vcbuser2 -p (passowrd do VCB) -M 1 -F 1 -m san -Q 0


Observações
host virtual center - Nome do host do Virtual Center ou pode ser o próprio servidor ESX que esta alocado a VM
host do servidor para backup - nome do host do servidor que ira ser realizado backup
host do servidor - aqui será criado automático pasta com o backup hostname do servidor-fullVM
diretório - Diretorio qualquer que tenha a acesso para a copia do arquivo exe.: c:\backup\
vcbuser2 - Usuário do servidor VCB que tem diretiro de acesso ou outro usuário qu tenha o mesmo prilegio no vCenter.

21/03/2012

Remove Device Inativos após P2V

Customização de server P2V, após a virtualização tem um script que ajuda a remover o devices inativos do servidor, processo este que atualmente é feito manualmente, e muito demorado conforme abaixo.

1. comando set devmgr_show_nonpresent_devices=1
2. comando start devmgmt.msc
3. Habilitar opção Hidden devices

Segue Script abaixo onde foi realizado teste em um servidor de PV2 que neste tinha vários devices inativos após a execução do bat este removeu mais de 98% dos devices foi reiniciado o servidor e não foi identificado problemas neste, observando que antes de executar o script via arquivo bat é necessário remover o software que não serão utilizados.
Obs.; Salve o arquivo remove.txt com a extensão remove.bat, baixe e copie e executável devcon.exe para caminho c:\windows\system32 do servidor P2V
O script tem a função de ajudar no processo, lembrando que ainda existem pontos que devem ser feitos manualmente.

Script


@ECHO OFF
:: Check DOS/Windows version
IF NOT "%OS%"=="Windows_NT" GOTO Syntax

:: Localize variables
SETLOCAL

:: Check command line arguments
IF NOT "%~1"=="" IF /I NOT "%~1"=="/D" IF /I NOT "%~1"=="/Y" GOTO Syntax

:: Check if debug mode is requested
IF /I NOT "%Debug%"=="ECHO" SET Debug=
ECHO.%* | FIND /I "/D" >NUL && SET Debug=ECHO

:: Check if confirmation is required
SET Confirmed=N
ECHO.%* | FIND /I "/Y" >NUL && SET Confirmed=Y

:: Check if DEVCON.EXE is available and if not, prompt for download
SET DevconAvailable=
SET Download=
DEVCON.EXE /? >NUL 2>&1
IF ERRORLEVEL 1 (
SET DevconAvailable=No
ECHO This batch file requires Microsoft's DEVCON untility.
SET /P Download=Do you want to download it now? [y/N]
)

:: Start download if requested
IF /I "%Download%"=="Y" (
START "DevCon" "http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272"
ECHO.
ECHO Install the downloaded file and make sure DEVCON.EXE is in the PATH.
ECHO Then try again.
)

:: Abort if DEVCON.EXE is not available yet
IF "%DevconAvailable%"=="No" GOTO End

:: Ask for confirmation, unless overruled by command line switch
IF NOT "%Confirmed%"=="Y" (
ECHO You are about to remove all inactive PnP devices from this computer.
SET /P Confirmed=Are you sure you want to continue? [yN]
)
IF /I NOT "%Confirmed%"=="Y" GOTO Syntax

:: Save a list of all active devices in a temporary file
DEVCON Find * | FIND /I /V "matching device(s)" > "%Temp%\DevconFind.txt"
IF NOT EXIST "%Temp%\DevconFind.txt" GOTO Syntax

:: List all devices, both hidden/inactive and active ones, and remove
:: all devices that are not listed as active in the temporary file
FOR /F "tokens=1 delims=: " %%A IN ('DEVCON FindAll * ^| FIND /I /V "matching device(s)"') DO (
TYPE "%Temp%\DevconFind.txt" | FIND "%%~A" >NUL
IF ERRORLEVEL 1 %Debug% DEVCON Remove "@%%~A"
)

:: Remove the temporary file
DEL "%Temp%\DevconFind.txt"

:: Done
ENDLOCAL
GOTO:EOF

:Syntax
ECHO.
ECHO RmHidDev.bat, Version 1.00 for Windows 2000 / XP
ECHO Use DEVCON to remove all hidden/inactive PnP devices.
ECHO.
ECHO Usage: RMHIDDEV [ /D ] [ /Y ]
ECHO.
ECHO Where: /D Will only ECHO the removal commands instead of executing them
ECHO /Y Will remove devices without confirmation
ECHO.
ECHO Notes: [1] This batch file requires Microsoft's DEVCON.EXE, available at
ECHO http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272
ECHO You will be prompted for download if it isn't found.
ECHO [2] This batch file was developed with "ghost devices" on Ghost images
ECHO in mind. It has been tested on Windows XP Ghost images only.
ECHO I cannot guarantee flawless operation on any other PC.
ECHO Use this batch file entirely at your own risk. Make sure you have
ECHO a recent full backup available in case something might go wrong.
ECHO And remember to test, test, test and test before using it in a
ECHO production environment.
ECHO.
IF "%OS%"=="Windows_NT" ENDLOCAL

Fonte.: Script http://www.robvanderwoude.com

16/03/2012

Datastore persistente no VmWare

Como criar um disco persistente quando este por algum motivo deixa de aparecer sendo que esta chegando a Lun na HBA, observando que alguns nós do cluster chega a vizualizar o disco.

Segue abaixo link da VM


Execute via SSH o comando abaixo para forçar a criação do datastore de forma persistente:

esxcfg-volume -M "nome_do_datastore"








13/03/2012

Frase da semana

Não corrigir nossas falhas é o mesmo que cometer novos erros

Confúcio

08/03/2012

Serviço NetIQ dando tela Azul

Para aqueles que tiverem serviço do NetIQ instalado em servidores windows e com sintomas de tela azul gerando dump de mémoria e for identificado o drive cgwfunc_02_00_03_004.sys, este refere-se ao NetIQ.

log dump


06/03/2012

Ajuste Horario Servidor ESX via servidor NTP Server

Script para configuração do horário em servidor ESX para sincronizar com servidor NTP

# Configurar o "Time Configuration" do Host para apontar para o "ntp"
# Configurar o serviço "NTP Daemon" para "Start Automatically" para versão 4.1 ou "Start and stop with host" para versão 5


# Abrir arquivo ntp.conf
vi /etc/ntp.conf

# inserir na última linha, a linha abaixo com o máximo de fontes no arquivo ntp.conf
tos maxdist 30

# alterar a permissão do arquivo do serviço Local Security Authentication Server
chmod +w /etc/likewise/lsassd.conf

# abrir o arquivo lsassd.conf
vi /etc/likewise/lsassd.conf

# localizar e remover o comentário "#" da linha abaixo e setar como "=no":
remove sync-system-time = no

# executar o script
/sbin/auto-backup.sh

# restartar os serviços via command line ou via vClient no "Security Profile" do host, em "Services", restartar os serviços "Local Security Authentication Server (Active Directory Services)" e "NTP Daemon"
./etc/init.d/lsassd restart
./etc/init.d/ntpd restart

#ajustar a hora do hardware com a hora do sistema (substituir HH,MM, DD, logicamente pelos dados do instante atual)
/sbin/hwclock -t HH:MM:SS
/sbin/hwclock -d DD/MM/AAAA


fonte.: VmWare

Erro The Desktop Window Manager via Citrix

Erro que acontece via Citrix no Windows 2008 (Error 9009 The Desktop Window Manager has exited with code ), identifiquei este erro quando fui publicar um explorer, mesmo com o último fix do Citrix não resolveu, pesquisando achei um artigo da Citrix com a seguinte solução

Resolution

Add a 10-second delay to client session so that the client waits for the published explorer to start before disconnecting the session.

Caution! This fix requires you to edit the registry. Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

You can do this by adding the following registry key in:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\Wfshell\TWI

Name: LogoffCheckerStartupDelayInSeconds
Type: REG_DWORD
Set a value of 10 seconds to this key.

Fonte.: Link http://support.citrix.com/article/CTX127883


Comandos para PowerPath


Click na imagem para ampliar.

Frase da Semana

O Homem esquece mais facilmente a morte do pai do que a perda do patrimônio.
Maquiavel




Certificações Microsoft Voucher

A Microsoft em comemoração ao 20 anos de Certificação esta distribuindo voucher veja no link abaixo


 
Pesquisa personalizada