pra não esquecer…

junho 17th, 2011

random em shell script

Posted by Felipe Olivaes in shell

echo “$((RANDOM % 60))”

dica do #cifali

junho 7th, 2011

expressões regulares

Posted by Felipe Olivaes in xalassa

http://www.spaweditor.com/scripts/regex/index.php

dica do braz

maio 17th, 2011

gerenciando guest por ssh/console esxi

Posted by Felipe Olivaes in vmware

# vim-cmd vmsvc/getallvms
# vim-cmd vmsvc/power.getstate 624
# vim-cmd vmsvc/power.on 624

maio 3rd, 2011

esxi versions

Posted by Felipe Olivaes in vmware

ESXi, 4.0.0, 208167 (ESXi 4.0 update 1)

ESXi, 4.1.0, 260247 (ESXi 4.1)
ESXi, 4.1.0, 348481 (ESXi 4.1 update 1)

maio 3rd, 2011

ESXi – 4.1 to 4.1 update1

Posted by Felipe Olivaes in vmware

entrar em modo de manutenção e:

vihostupdate.pl –server (host name/IP address) –username (username) –password (senha) -i -b (location of the ESXi upgrade ZIP bundle) -B ESXi410-GA-esxupdate
vihostupdate.pl –server (host name/IP address) –username (username) –password (senha) -i -b (location of the ESXi upgrade ZIP bundle) -B ESXi410-GA
vihostupdate.pl –server (host name/IP address) –username (username) –password (senha) –query

abril 19th, 2011

tcpdump

Posted by Felipe Olivaes in Linux

tcpdump -i %ETH% -n host %IP%

março 29th, 2011

Mysql performance – MaatKit

Posted by Felipe Olivaes in MySQL

http://www.petefreitag.com/item/724.cfm

included in Maatkit:

* mk-archiver Archive rows from a MySQL table into another table or a file.
* mk-audit Analyze, summarize and report on MySQL config, schema and operation
* mk-checksum-filter Filter checksums from mk-table-checksum.
* mk-deadlock-logger Extract and log MySQL deadlock information.
* mk-duplicate-key-checker Find duplicate indexes and foreign keys on MySQL tables.
* mk-fifo-split Split files and pipe lines to a fifo without really splitting.
* mk-find Find MySQL tables and execute actions, like GNU find.
* mk-heartbeat Monitor MySQL replication delay.
* mk-kill Kill MySQL queries that match certain criteria.
* mk-loadavg Watch MySQL load and take action when it gets too high.
* mk-log-player Split and play MySQL slow logs.
* mk-parallel-dump Dump sets of MySQL tables in parallel.
* mk-parallel-restore Load files into MySQL in parallel.
* mk-profile-compact Compact the output from mk-query-profiler.
* mk-query-digest Parses logs and more. Analyze, transform, filter, review and report on queries.
* mk-query-profiler Execute SQL statements and print statistics, or measure activity caused by other processes.
* mk-show-grants Canonicalize and print MySQL grants so you can effectively replicate, compare and version-control them.
* mk-slave-delay Make a MySQL slave server lag behind its master.
* mk-slave-find Find and print replication hierarchy tree of MySQL slaves.
* mk-slave-move Move a MySQL slave around in the replication hierarchy.
* mk-slave-prefetch Pipeline relay logs on a MySQL slave to pre-warm caches.
* mk-slave-restart Watch and restart MySQL replication after errors.
* mk-table-checksum Perform an online replication consistency check, or checksum MySQL tables efficiently on one or many servers.
* mk-table-sync Synchronize MySQL tables efficiently.
* mk-upgrade Execute SQL statements against two MySQL servers and compare the results.
* mk-visual-explain Format EXPLAIN output as a tree.

fevereiro 16th, 2011

vmware tools centos 5.5

Posted by Felipe Olivaes in xalassa

from: http://fusion.infofabrics.com/Home/enviornment-infrastructure/personal-cloud-using-esxi

VMWare can exploit yum repository.

1. Import public key for yum repository. Execute this as root

# rpm –import http://packages.vmware.com/tools/VMWARE-PACKAGING-GPG-KEY.pub

2. CentOS stores yum repository definition in /etc/yum.repos.d
Create a file named, vmtools.repo and populate it with following contents
[vmware-tools]
name=VMware Tools for CentOS $releasever – $basearch
baseurl=http://packages.vmware.com/tools/esx/4.0/rhel5/x86_64
enabled=1
gpgcheck=1

In the above example, I’ve used baseurl with “4.0” as ESXi version & x86_64 for 64 bit CentOS. This can be different for you.

3. Run yum install command to install VMWare tools on your CentOS Linux server.
# yum install vmtools

You should see installation log on your screen at attached on this page “yum_vmware-tools.install.log”, with one prompt for vmware package installation.

4. Restart CentOS linux server.

GOOD NEWS, post CentOS restart if you go to vSphere vmserver instance -> console you don’t have to press Ctrl+Alt every time you want to switch between Linux console & Windows OS 🙂 . And it’s fast too.

fevereiro 8th, 2011

eyebeam – tab contacts disabled

Posted by Felipe Olivaes in Windows

isso acontece no win7, só rodar como modo de compatibilidade com windows XP

fevereiro 7th, 2011

blosson + the big bang theory

Posted by Felipe Olivaes in xalassa

caraca, eu não acreditei…

http://www.imdb.com/name/nm0080524/

a namorada do sheldon é a blosson… :S

fevereiro 7th, 2011

horário de verão gentoo linux

Posted by Felipe Olivaes in Linux

editar /etc/conf.d/clock e adicionar:
Adicionar: TIMEZONE=”America/Sao_Paulo”
[code]vi /etc/conf.d/clock[/code]

Adicionar para baixar timezone-data:
[code]echo sys-libs/timezone-data >> /etc/portage/package.keywords
emerge sys-libs/timezone-data [/code]

fevereiro 4th, 2011

asterisk ativação e1

Posted by Felipe Olivaes in xalassa

# ztcfg -vvvvvvv
# genzaptelconf -l

fevereiro 3rd, 2011

controlando dell/perc no linux

Posted by Felipe Olivaes in Linux

# emerge megacli

// listando discos virtuais
# MegaCli -LDInfo -Lall -aALL

// listando discos fisicos
# MegaCli -PDList -aALL | egrep ‘Adapter|Enclosure|Slot|Inquiry’

// listando configuracao atual
# MegaCli -CfgDsply -aAll | egrep ‘Reference|RAID|Slot|Data|^$’

Download do 4.00.11_Linux_MegaCLI.zip

janeiro 27th, 2011

digsby – im + mail + social network

Posted by Felipe Olivaes in xalassa

http://www.digsby.com/

janeiro 14th, 2011

enable round-robin storage vmware 4.1

Posted by Felipe Olivaes in vmware

[code]
echo “#!/bin/ash” > set.sh
esxcli nmp device list | awk ‘/^naa/{print “esxcli nmp device setpolicy –device “$0″ –psp VMW_PSP_RR” }’ >> set.sh
chmod +x set.sh
./set.sh
[/code]

« Página anteriorPróxima página »


nuvem de tags:

24 horas acentuação Apache bash benchmark bios boot celular centos charset comando console Download esxi Firebird firefox http importação intel ipod kinghost legenda Linux lost mod_deflate msn mssql MySQL owner Padel PHP placa mãe portabilidade Postgre SQL recovery root password rewrite shell sinuca sql server svn temporada completa veronica mars vmware Windows ícones