random em shell script
echo “$((RANDOM % 60))”
dica do #cifali
echo “$((RANDOM % 60))”
dica do #cifali
http://www.spaweditor.com/scripts/regex/index.php
dica do braz
# vim-cmd vmsvc/getallvms
# vim-cmd vmsvc/power.getstate 624
# vim-cmd vmsvc/power.on 624
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)
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
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.
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.
isso acontece no win7, só rodar como modo de compatibilidade com windows XP
caraca, eu não acreditei…
http://www.imdb.com/name/nm0080524/
a namorada do sheldon é a blosson… :S
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]
# ztcfg -vvvvvvv
# genzaptelconf -l
# 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|^$’
http://www.digsby.com/
[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]