31 enero 2012

#Twitter cobrará a las empresas

Ya tardaban.....

Twitter abrió en fase de pruebas páginas de empresas. Inicialmente eran gratuitas, pero este mes, c...

http://tecnologia.elpais.com/tecnologia/2012/01/31/actualidad/1327998669_982255.html
PABLO CRUCES
Enviado desde mi Chuliberry®

30 enero 2012

Comandos basicos #NetApp



General Commands
setup (Re-Run initial setup)
halt (Reboots controller into bootrom)
reboot (Reboots controller back to Data Ontap)
sysconfig -a (System configuration and information)
java netapp.cmds.jsh (limited freebsd cli)
storage show disk (show physical information about disks)
passwd (Change password for logged in user)
sasadmin shelf (shows a graphical layout of your shelves with occupied disk slots)
options trusted.hosts x.x.x.x or x.x.x.x/nn (hosts that are allowed telnet, http, https and ssh admin access. x.x.x.x = ip address, /nn is network bits)
options trusted.hosts * (Allows all hosts to the above command)

Diagnostics
Press DEL at boot up during memory test followed by boot_diags and select all (Diagnostic tests for a new install)
priv set diags (Enter diagnostics CLI mode from the Ontap CLI)
priv set (Return to normal CLI mode from diagnostics mode)

Software
software list (Lists software in the /etc/software directory)
software get http://x.x.x.x/8.0_e_image.zip 8.0_e_image.zip (Copy software from http to software directory)
software delete (Deletes software in the /etc/software directory)
software update 8.0_e_image.zip -r (Install software. The -r prevents it rebooting afterwards)

ACP (Alternate Control Path)
options acp.enabled on (Turns on ACP)
storage show acp -a (show ACP status)

Aggregates
aggr create aggregate_name (Creates an Aggregate)
aggr destroy aggregate_name (removes an Aggregate)
aggr offline aggregate_name (takes an Aggregate offline)
aggr online aggregate_name (bring an Aggregate online)
aggr options aggregate_name root (makes an Aggregate root|Only use if your Root Aggregate is damanged)
aggr status (shows status of all aggregates)
aggr status aggregate_name (show status of a specific Aggregate)
aggr show_space aggregate_name (shows specific aggregate space information)
aggr options aggregate_name nosnap=on (Disable snapshot autocreation)
aggr options aggregate_name raidsize=x (x being the number of drives in the RAID)
snap reserve -A aggregate_name 0 (Set Aggregate snap reserve to 0% or any number you enter)

Volumes
vol create volume_name (Creates a volume)
vol autosize volume_name (Shows autosize settings for a given volume)
vol autosize volume_name on|off (Turns Volume autosize on or off)
vol options volume_name (Lists volume options)
vol size volume_name + size k|m|g|t (increase volume size by KB, MB, GB or TB)
vol status -f (lists broken or failed disks)

Qtree’s
qtree create /vol/volume_name/qtree_name (Create a qtree within a volume)
qtree security /vol/volume_name/qtree_name unix|ntfs|mixed (Change security settings of a qtree)
qtree stats qtree_name (Shows CIFS or NFS ops/sec for a given qtree)

Snapshots
snap create volume_name snapshot_name (create a snapshot)
snap list volume_name (List snapshots for a volume)
snap delete volume_name snapshot_name (delete a snapshot on a volume)
snap delete -a volume_name (Deletes all snapshots for a volume)
snap autodelete volume_name show (Shows snapshot autodelete settings for a volume)
snap restore -s snapshot_name volume_name (Restores a snapshot on the specified volume name)
snap sched volume_name weeks days hours@time (Creates a snapshot schedule on a volume i.e. snap sched volume 4 5 1@07)
snap delta volume_name (Shows delta changes between snapshots for a given volume)
snap reserve volume_name (Shows the snap reserve for a given volume)
snap reclaimable volume_name snapshot_name (Shows the amount of space reclaimable if you remove this snapshot from the volume)
options cifs.show_snapshot on (Allows snapshot directory to be browse-able via CIFS)
options nfs.hide_snapshot off (Allows snapshot directory to visible via NFS)

Cluster
cf enable (enable cluster)
cf disable (disable cluster)
cf takeover (take over resources from other controller)
cf giveback (give back controller resources after a take over)

vFiler – Multistore
vfiler status (Displays the status of the vfiler i.e. running or stopped)
vfiler run vfiler_name setup (Runs the vfiler setup wizard)
vfiler run vfiler_name cifs setup (Runs the cifs setup wizard for a vfiler)
vfiler create vfiler_name -i x.x.x.x /vol/volume_name or qtree_name (Creates a vfiler name with ip address x.x.x.x and assigns the volume or qtree to the vfiler)
vfiler add vfiler_name -i x.x.x.x /vol/volume_name (Adds an ip address and additional volume to an existing vfiler name)
vfiler remove vfiler_name -i x.x.x.x /vol/volume_name (Removes an IP address and volume from an existing vfiler)
vfiler rename vfiler_name_old vfiler_name_new (Renames a vfiler from old name to new name)
vfiler stop vfiler_name (Stops a vfiler instance)
vfiler start vfiler_name (Starts a vfiler instance)

Autosupport
options autosupport.support.enable on (Turns Autosupport on)
options autosupport.support.enable off (Turns Autosupport off)
autosupport.doit “description” (creates an autosupport alert with a user defined description)

Hot Spares
Any functioning disk that is not assigned to an aggregate but is assigned to a controller functions as a hot spare disk
disk show
vol status -r (displays which disks are allocated as spare)

Disks
disk show (Show disk information)
disk show -n (Show unowned disks)
disk assign 0d.02.0 -s unowned (Changes ownership from owned to unowned or to other cluster member)
disk assign 0d.02.0 (assigns the disk to the controller you perform the command on)
options disk.auto_assign off (turns auto assign of unowned disks to controllers to off)
options disk.auto_assign on (turns auto assign of unowned disks to controllers to on)

Luns
lun setup (runs the cli lun setup wizard)
lun offline lun_path (takes a lun offline)
lun online lun_path (brings a lun online)
lun show -v (Verbose listing of luns)
lun move /lun_path_source /lun_path_destination (Move lun from source to destination)
lun resize -f lun_path +|- new_size k|m|g|t (Resizes a lun by adding space (+) or subtracting space (-) Note: a lun can only ever grow 10x it’s original size)

Fiber FCP
fcadmin config -t taget 0a (Changes adapter from initiator to target)
fcadmin config (lists adapter state)
fcadmin start (Start the FCP service)
fcadmin stop (Stop the FCP service)
fcp show adapters (Displays adapter type, status, FC Nodename, FC Portname and slot number)
fcp nodename (Displays fiber channel nodename)
fcp show initiators (Show fiber channel initiators)
fcp wwpn-alias set alias_name (Set a fiber channel alias name for the controller)
fcp wwpn-alias remove -a alias_name (Remove a fiber channel alias name for the controller)

iSCSI
iscsi start (Start the iscsi service)
iscsi stop (Stop the iscsi server)
iscsi status (Show whether iscsi server is running or not running)
iscsi interface show (Show which interfaces are enabled or disabled for iscsi)
iscsi interface enable interface_name (Enable an interface for iscsi)
iscsi interface disableinterface_name (Disable an interface for iscsi)
iscsi nodename (Display the controllers iscsi nodename)

Cifs
cifs setup (cifs setup wizard)
cifs terminate (terminate the cifs service)
cifs restart (restarts cifs)
cifs shares (displays cifs shares)
cifs status (show status of cifs)
cifs lookup SID|name (Either displays the SID if you type in the name or name if you type in the SID)
cifs sessions (Show you current cifs sessions)
cifs sessions -s username (Shows the current session for a user)
cifs broadbast -v volume_name “message” (Broadcast a message to all users connected to volume_name)
cifs shares -add share_name /vol/volume_name/qtree_name (Create a cifs share on a specific volume or qtree)
cifs shares -delete share_name (Deletes a share name)
cifs shares share_name (Displays full path and permissions of the share)
cifs access share_name -g user_rights (Grants specific user rights to the share)
cifs access share_name user_name permission (Grants a specific permission to a user for a share. Permissions = Full Control, Change, Read, No Access)
cifs domain info (Lists information about the filers connected Windows Domain)
cifs testdc ip_address (Test a specific Windows Domain Controller for connectivity)
cifs prefdc (Displays configured preferred Windows Domain Controllers)
cifs prefdc add domain address_list (Adds a preferred dc for a specific domain i.e. cifs prefdc add netapplab.local 10.10.10.1)
cifs prefdc delete domain (Delete a preferred Windows Domain Controllers)
cifs gpresult (Displays which Windows Group Policies apply to this filer)
cifs gpupdate (Forces an update of Windows Group Policy)
cifs top (Performance data for cifs. cifs.per_client_stats.enable option must be on to use this feature)
vscan on (Turns virus scanning on)
vscan off (Turns virus scanning off)
vscan reset (Resets virus scanning)

NFS
nfs setup (Runs the NFS setup wizard)
exportfs (Displays current exports)
exportfs -p path (Adds exports to the /etc/exports file)
exportfs -uav (Unexports all current exports)
exportfs -u path (Unexports a specific export from memory)
exportfs -z path (Unexports a specific export and also removes it from /etc/exports)
exportfs -a (Updates memory buffer with contents in /etc/exports)
nfsstat -d (Displays NFS statistics)

HTTP Admin
options httpd.admin.enable on (Turns on http web admin, na_admin)
options httpd.admin.access host=x.x.x.x,x.x.x.x (Allows admin access for specific hosts separated by a comma)

SIS (Deduplication)
sis status (Show SIS status)
sis config (Show SIS config)
sis on /vol/vol1 (Turn on deduplication on vol1)
sis config -s mon-fri@23 /vol/vol1 (Configure deduplication to run every monday – Friday at 11pm on vol1)
sis start -s /vol/vol1 (Run deduplication manually on vol1)
sis status -l /vol/vol1 (Display deduplication status on vol1)
df -s vol1 (View space savings with deduplication)
sis stop /vol/vol1 (Stop deduplication on vol1)
sis off /vol/vol1 (Disables deduplication on vol1)

User Accounts
useradmin user add user_name -g group_name (Adds a user to a group)
useradmin user list (Lists current users)
useradmin user list user_name (List specific user information)
useradmin group list (Lists current groups)
useradmin group delete group_name (Deletes a specific group name)
useradmin group modify group_name -g new_group_name (Modify group name)
useradmin user delete user_name (Delete a specific user)
useradmin user modify user_name -g group_name (Adds a user to a group)
useradmin domain user add user_name -g group_name (Adds a Windows Domain user to a local group)
useradmin domain user list -g group_name (List Windows Domain users in a specific group)

DNS
dns flush (Flushes the DNS cache)

Reading and Writing Files (Deduplication)
rdfile path/file (Reads a file)
wrfile path/file (Writes to a file. Warning this method overwrites the file. Make sure you copy out original contents if you wish to keep it. If you haven’t used this before try on the simulator.)
wrfile -a path/file (Writes to a file by appending the changes)

Logging
/etc/messages (All logging is for the system is stored here)

Network
if config vif0 -addr=x.x.x.x -mask=x.x.x.x -gw=x.x.x.x -dns-x.x.x.x (Sets IP information on the interface named vif0)

29 enero 2012

#Google y su nueva politica despiertan la polémica

El gran cambio anunciado por Google, al unificar las condiciones de uso de casi todos sus servicios...

http://tecnologia.elpais.com/tecnologia/2012/01/25/actualidad/1327483852_263916.html
PABLO CRUCES
Enviado desde mi Chuliberry®

#Symantec: desconecten #PCAnywhere

Symantec, fabricante estadounidense de antivirus, pide a sus clientes que desactiven su programa de...

http://tecnologia.elpais.com/tecnologia/2012/01/26/actualidad/1327598382_979037.html
PABLO CRUCES
Enviado desde mi Chuliberry®

26 enero 2012

Almacenamiento en la nube con #Amazon (#AWS #Storage #Gateway)

Basicamente se trata de tener una replica de los datos de nuestro almacenamiento interno sincronizado con almacenamiento en la nube de Amazon, con un canal de baja latencia y encriptado, y que soporta la mayoria de los sistemas de almacenamiento del mercado. 

En este video se hace una introduccion:

25 enero 2012

Nuevo #VMware #vCenter Operations 5.0

#VMware #vSphere #PowerCLI: consultar si las VM sincronizan con el host #ESXi (Synchronize guest time with host)


Para consultar si las VM de nuestro vCenter o Host tienen el check marcado para sincronicen la hora con el propio host donde esten inventariadas, podemos consultarlo en modo grafico a traves de las propias tools de la mv, o desde las settings de la VM (Synchronize guest time with host)


Pero cuando tenemos muchas mv´s, el mejor modo es realizarlo es mediante PowerCLI y estos sencillos scripts:

Con este listas las VM que No tiene el check marcado para sincronizar con el host:

get-vm |where { ( %{ get-view $_.Id } | where { $_.Config.Tools.SyncTimeWithHost -ne "True" } ) } | select name


Con este otro listas lasVM que SI tienen el check marcado para sincronizar con el host:

get-vm |where { ( %{ get-view $_.Id } | where { $_.Config.Tools.SyncTimeWithHost } ) } | select name




24 enero 2012

#VMware #ESXi 5 updates

En este enlace teneis los ultimos updates (parches) de ESXi5 que afectan a detalles tan importantes como la conectividad de las mv´s Windows si estan configuradas sobre vlans en una plataforma HP-Flexfabric o IBM VFA... ahi es nada...

VMware ESXi 5.0, Patch Release ESXi500-201112001


Updates esx-base

ESXi500-201112401-SG
Security Important
Updates tools-light

ESXi500-201112402-BG
Bug Fix Important
Updates net-be2net

ESXi500-201112405-BG
Bug Fix Low
Updates misc-drivers

ESXi500-201112404-BG
Bug Fix Low
Updates net-e1000 and net-e1000e

ESXi500-201112403-SG
Security Important










#VMware #VCP5 Upgrade Path

Si eres VCP4, puedes realizar el examen de VCP5 hasta el 29 de Febrero de 2012 (inclusive) sin ningun curso presencial obligatorio. Pasada esa fecha, es necesarior ealizar un curso presencial o live online en base a esta tabla:

http://mylearn.vmware.com/courseware/103586/VMW-VCP5-109.jpg

Para ser VCP4 los upgrade paths son los de la siguiente tabla:

http://mylearn.vmware.com/courseware/99990/VMW-VCP4-104.jpg

Para registraros para los examenes lo podeis hacer en este enlace de PearsonVue:



Para los despitados, os recuerdo que para ser VCP es necesario realizar en algun momento un curso oficial presencial, y que ahora tambien existe en modalidad live online en algunos centros autorizados (VATC, VMware Authorized Training Centers).  Despues tocar seguir los diferentes caminos de upgrades.


19 enero 2012

Solucionar Error 25085 al instalar #VMware vCenter Update Manager 5


Al instalar en vSphere 5 el Update Manager nos podemos encontrar con el "Error 25085: Setup failed to register VMware vCenter Update Manager extension to VMware vCenter Server".
Tras visitar varios blogs y KB oficiales.... con resultados mas bien nulos.... la solucion ha sido tan sencilla como poner en la instalacion la IP del vCenter donde queremos registrarlo en vez del nombre FQDN.


17 enero 2012

Mas métodos para enviar logs al soporte de #VMware

En el post anterior hemos visto como subir los logs al soporte de VMware por ftp, otros métodos son:

-a través de la web de VMware:  File Support Request 
(https://www.vmware.com/support/login.portal)


-a través del ftp pero por http:  https://ftpsite.vmware.com/


usuario y contraseña: inbound





Enviar logs por ftp al soporte de #VMware

Para enviar los logs de VMware al soporte cuando tengamos un tck abierto y así nos lo requiera su soporte (y salvo indicación en contrario) debemos seguir los siguientes pasos, poniendo el numero de tck como nombre de la carpeta que creemos en su ftp "ftpsite.vmware.com"
El usuario y la contraseña es "inbound"



C:\Users\Pablo>ftp ftpsite.vmware.com
Conectado a ftpsite-prod-sc9.vmware.com.
220-WELCOME TO VMWARE FTPSITE
220 If You are Unable to Login Please Contact VMWARE Support
Usuario (ftpsite-prod-sc9.vmware.com:(none)): inbound
331 User name okay, need password.
Contraseña:
230 User logged in, proceed.
ftp>
ftp>
ftp> mkdir tck_number_virtualshocks
257 "/tck_number_virtualshocks"
ftp>
ftp> cd tck_number_virtualshocks
250 File operation OK.
ftp>
ftp> lcd d:\vmware_virtualshocks
Directorio local ahora D:\vmware_virtualshocks.
ftp>
ftp> put test.txt
200 Command OK.
150 File OK.
226 Closing data connection.
ftp>
ftp> bye
221 Service closing control connection.
C:\Users\Pablo>

16 enero 2012

Exportar logs en #VMware #ESXi 5

Para poder exportar los logs de ESXi 5 debemos hacerlo a traves del vSphere Client, ya que desde la consola únicamente podremos revisar algunos logs, pero no exportarlo, con lo que su análisis es mas complicado.


Accedemos al host ESXi desde el vClient pulsamos en File, luego en Export y por ultimo en Export Systen Logs:








15 enero 2012

Cambiar de IP fácilmente con Simple IP Config

Con este programa podéis guardar varios perfiles de Ip y cambiar fácilmente en función de si os conectáis en casa, en el trabajo, etc...



Opciones configurables:
- Set static IP address
- Set subnet mask
- Set default gateway
- Set primary and alternate DNS servers
- Automatically set IP address and DNS server (DHCP)


Enlace descarga directa Simple IP Config


14 enero 2012

Nuevo update de PowerCLI 5.0.1 con cmdlets para vCloud Director

Esta nueva release contiene por primera vez, cmdlets para automatizar operaciones de VMware vCloud Director 1.5





El clásico error al iniciar PowerCLI se produce por no tener habilitada la política para habilitar scripts como en el pantallazo siguiente que se soluciona ejecutando "set-ExecutionPolicy RemoteSigned"



"No se puede cargar el archivo C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1 porque en el sistema está deshabilitada la ejecución de scripts. Vea "get-help about_signing" para obtener más información.
En línea: 1 Carácter: 2+ . <<<<  "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Script
s\Initialize-PowerCLIEnvironment.ps1"
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException
PS C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> set-ExecutionPolicy RemoteSigned
Cambio de directiva de ejecución
La directiva de ejecución le ayuda a protegerse de scripts en los que no confía. Si cambia dicha directiva podría exponerse a los riesgos de seguridad descritos en el tema de la Ayuda about_Execution_Policies. ¿Desea cambiar la directiva de ejecución?
[S] Sí  [N] No  [U] Suspender  [?] Ayuda (el valor predeterminado es "S"): s
PS C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>











#MCITP Virtualization Administrator on Windows Server 2008 R2

La certificacion de Microsoft sobre virtualizacion se compone de 3 examenes: 

-70-669: TS: Windows Server 2008 R2, Desktop Virtualization
-70-693: Pro: Windows Server 2008 R2, Virtualization Administrator
-70-659: TS: Windows Server 2008 R2, Server Virtualization

Libro de apoyo gratuito: E-book: Understanding Microsoft Virtualization Solutions


Si ya estas certificado como MC puedes acceder desde esta web a contenido de Ms:
https://mcp.microsoft.com/Authenticate/Migrate/Migrate.aspx?ReturnUrl=https://mcp.microsoft.com/mct/Community/community.mspx? 

 

10 enero 2012

Purgar base de datos SQL 2005 de #vSphere vCenter

Recomendable ejecutar cada cierto tiempo en funcion del nivekl de log que tengamos en el vCenter y del numero de host y mv´s de la infraestructura. VMware recomienda hacerlo cada 6 meses pero esto varia mucho en fiuncion de la dimension de la infraestructura, por eso os recomiendo monitorizar la bbdd de SQL para evitar sorpresas.
En este video se explica como purgar datos antiguos.




Para Oracle, podeis guiaros de este enlace donde se explica como truncar tablas:

http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_10007.htm


09 enero 2012

Cambiar "Network Adapter Type" en #vSphere con PowerCLI

Una vez creada una mv no se puede cambiar el tipo de adaptador a las tarjetas de red mediante el entorno grafico. Para hacer esta operacion primero debemos apagar la mv y luego cambiar por PowerCLI el tipo de adaptador. Eso si, es mas que probable que perdamos la configuracion de las tarjetas de red, con lo que sera necesario anotar las ip´s de estas antes de hacer cualquier cambio.

Estos serian los pasos para cambiar varias tarjetas E1000 a VMXNET3, primero nos conectamos al vCenter, listamos las tarjetas de red y despues lanzamos el cambio del tipo de adaptador, nos preguntara tarjeta por tarjeta si que queremos cambirlar...y voila!!!

-----------------------------------------------------------------------------------------------------

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> 
get-vm MVTEST01 | get-networkadapter

Name                 Type       NetworkName  MacAddress         WakeOnLan
                                                                  Enabled
----                 ----       -----------  ----------         ---------
Network adapter 1    e1000      RED_VLAN1 -... 00:50:56:93:75:11       True
Network adapter 2    e1000      RED_VLAN2... 00:50:56:93:75:22       True
Network adapter 3    e1000     RED_VLAN13... 00:50:56:93:75:33    True


PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>
get-vm MVTEST01 | get-networkadapter | set-networkadapter -type "vmxnet3"

Confirmar
¿Está seguro de que desea realizar esta acción?
Se está realizando la operación "Setting Type: Vmxnet3" en el destino "Network
adapter 1".
[S] Sí  [O] Sí a todo  [N] No  [T] No a todo  [U] Suspender  [?] Ayuda
(el valor predeterminado es "S"):s

Confirmar
¿Está seguro de que desea realizar esta acción?
Se está realizando la operación "Setting Type: Vmxnet3" en el destino "Network
adapter 2".
[S] Sí  [O] Sí a todo  [N] No  [T] No a todo  [U] Suspender  [?] Ayuda
(el valor predeterminado es "S"):s

Confirmar
¿Está seguro de que desea realizar esta acción?
Se está realizando la operación "Setting Type: Vmxnet3" en el destino "Network
adapter 3".
[S] Sí  [O] Sí a todo  [N] No  [T] No a todo  [U] Suspender  [?] Ayuda
(el valor predeterminado es "S"):s

Name                 Type       NetworkName  MacAddress         WakeOnLan
                                                                  Enabled
----                 ----       -----------  ----------         ---------
Network adapter 1    Vmxnet3    RED_VLAN1-... 00:50:56:93:75:11       True
Network adapter 2    Vmxnet3    RED_VLAN2... 00:50:56:93:75:22       True
Network adapter 3    Vmxnet3    RED_VLAN3... 00:50:56:93:75:33       True


PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>
 -----------------------------------------------------------------------------------------------------


05 enero 2012

Instalar plugins de cabinas para #SRM en #VMware vSphere vCenter

Para poder utilizar las replicas a nivel de cabina para la proteccion de maquinas virtuales mediante Site Recovery Manager, debemos instalar el plugin de turno de cada fabricante en el vCenter.

Aqui teneis los enlaces y howto de cada fabricante soportado por VMware:







#vSphere 5: Error #SRM con #3PAR: "SRA command 'testFailoverStart' failed"

Para solucionar este error en los test de SRM con vSphere 5:

"Error - Failed to create snapshots of replica devices. SRA command 'testFailoverStart' failed. Error. Exception has occurred: Object reference not set to an instance of an object. If the problem still persists, please contact 3PAR support for assistance."

 ....podeis guiaros de este KB1011630: 

"Running a TestFailover fails when using vCenter Site Recovery Manager with 3Par Storage Replication Adapter (SRA)"
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1011630



Enjoy!!!