pra não esquecer…

janeiro 29th, 2016

Disable debug asterisk

Posted by Felipe Olivaes in asterisk

Mensagens:
<< [ TYPE: Null Frame (5) SUBCLASS: N/A (0) ] [SIP/XXXXX-0001aec2] rasterisk > core set verbose 0
> core set debug 0
> sip set debug off
> iax2 set debug off

janeiro 26th, 2016

administrando controladora hp esxi

Posted by Felipe Olivaes in Hardware, vmware

cd /opt/hp/hpssacli/bin/

# mostra status dos discos
./hpssacli ctrl all show config

# mostra config da controladora
./hpssacli ctrl slot=0 show detail

# seta prioridade de rebuild
./hpssacli ctrl slot=0 modify rebuildpriority=high

# ativa cache da controladora
./hpssacli ctrl slot=0 modify drivewritecache=enable

Show configuration
/opt/hp/hpssacli/bin/hpssacli ctrl all show config

Controller status
/opt/hp/hpssacli/bin/hpssacli ctrl all show status

Show detailed controller information for all controllers
/opt/hp/hpssacli/bin/hpssacli ctrl all show detail

Show detailed controller information for controller in slot 0
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail

Rescan for New Devices
/opt/hp/hpssacli/bin/hpssacli rescan

Physical disk status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show status

Show detailed physical disk information
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show detail

Logical disk status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all show status

View Detailed Logical Drive Status
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 show

Create New RAID 0 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0

Create New RAID 1 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1

Create New RAID 5 Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5

Delete Logical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 delete

Add New Physical Drive to Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7

Add Spare Disks
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7

Enable Drive Write Cache
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify dwc=enable

Disable Drive Write Cache
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify dwc=disable

Erase Physical Drive
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd 2I:1:6 modify erase

Turn on Blink Physical Disk LED
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 modify led=on

Turn off Blink Physical Disk LED
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 modify led=off

Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify cacheratio=100/0

Enable smart array write cache when no battery is present (No-Battery Write Cache option)
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 modify nbwc=enable

Disable smart array cache for certain Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable

Enable smart array cache for certain Logical Volume
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable

Enable SSD Smart Path
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a modify ssdsmartpath=enable

Disable SSD Smart Path
/opt/hp/hpssacli/bin/hpssacli ctrl slot=0 array a modify ssdsmartpath=disable

dezembro 11th, 2015

corrigindo teclado linux

Posted by Felipe Olivaes in Linux

loadkeys br-abnt2

novembro 22nd, 2015

dell 6248 storm control

Posted by Felipe Olivaes in xalassa

console# configure
console(config)# interface range ethernet all
console(config-if)# no storm-control unicast
console(config-if)# storm-control multicast
console(config-if)# storm-control broadcast
console(config-if)# end
console# copy running-config startup-config
console# exit

novembro 19th, 2015

Linux aumento de tabela arp

Posted by Felipe Olivaes in Linux

Erro: Neighbour table overflow.

sysctl -w net.ipv4.neigh.default.gc_thresh1=4096
sysctl -w net.ipv4.neigh.default.gc_thresh2=8192
sysctl -w net.ipv4.neigh.default.gc_thresh3=8192
sysctl -w net.ipv4.neigh.default.base_reachable_time=86400
sysctl -w net.ipv4.neigh.default.gc_stale_time=86400

—————–

echo 16384 > /proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 32768 > /proc/sys/net/ipv4/neigh/default/gc_thresh2
echo 65535 > /proc/sys/net/ipv4/neigh/default/gc_thresh3

outubro 8th, 2015

nmap subdomínios

Posted by Felipe Olivaes in Hack

Para buscar subdomínios de um host:
nmap –script dns-brute -v -sn www.xxx.com.br

outubro 8th, 2015

ferramenta de benchmark linux

Posted by Felipe Olivaes in Linux

phoronix-test-suite

setembro 12th, 2015

cópia layout partições linux

Posted by Felipe Olivaes in Linux

Copiando o layout do disco /dev/sda para o disco /dev/sdb
sfdisk -d /dev/sda | sfdisk /dev/sdb

julho 13th, 2015

erro ao logar no sftp ubuntu

Posted by Felipe Olivaes in Linux

No auth.log recebe a seguinte mensagem:
Received disconnect from x.x.x.x: 11:

Editar /etc/ssh/sshd_config
Troque:
Subsystem sftp /usr/lib/openssh/sftp-server

Por:
Subsystem sftp internal-sftp

depois:
# service ssh restart

maio 13th, 2015

configurando proxy reverso apache – passando header

Posted by Felipe Olivaes in Apache

<VirtualHost *:80>
    ServerName servidor.dominio.com.br
    ServerAlias servidor.dominio.net
    ServerAdmin servidor@servidor.dominio.com.br

    # configurando header IP
    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} ^(.*)
    RewriteRule ^.* - [env=MY_REMOTE_ADDR:%1]
    RequestHeader set X-Kinghost-Ip "%{MY_REMOTE_ADDR}e"

    # configurando proxy reverso
    ProxyPreserveHost On
    ProxyPass        / http://10.99.99.100:80/
    ProxyPassReverse / http://10.99.99.100:80/

    # libera utilização de proxy
    <Proxy *>
        Order deny,allow
        allow from all
    </Proxy>
</VirtualHost>

abril 13th, 2015

Visualizando pacotes de rede windows

Posted by Felipe Olivaes in xalassa

tcpdump -i $eth0 -n dst host $ipdestino -s 0 -c 1000 -w capture.cap
tcpick -C -yP -r capture.cap

abril 7th, 2015

estudos científicos de influência

Posted by Felipe Olivaes in xalassa

# ast – conformismo

# obedecer uma instrução
http://pt.wikipedia.org/wiki/Experi%C3%AAncia_de_Milgram

# marshmelow

abril 1st, 2015

switch dell expires

Posted by Felipe Olivaes in Hardware

line telnet
exec-timeout 3600
exit

fevereiro 19th, 2015

MegaCli – erro data in cache for offline or missing virtual drives.

Posted by Felipe Olivaes in Hardware

# ./MegaCli -CfgLdAdd -r0 '[32:0]' -a0
Adapter 0: Configure Adapter Failed

FW error description:
The current operation is not allowed because the controller has data in cache for offline or missing virtual drives.

Exit Code: 0x54

# ./MegaCli -GetPreservedCacheList -a0
Adapter #0

Virtual Drive(Target ID 01): Missing.

Exit Code: 0x00

# coloca o mesmo L+ID que o vd acima
# MegaCli -DiscardPreservedCache -L1 -a0
Adapter #0

Virtual Drive(Target ID 01): Preserved Cache Data Cleared.

Exit Code: 0x00

setembro 18th, 2014

dns xss

Posted by Felipe Olivaes in xalassa

DNS XSS =)

http://who.is/dns/jamiehankins.co.uk


# host -t txt jamiehankins.co.uk
jamiehankins.co.uk descriptive text " script src='//peniscorp.com/topkek.js'>"
jamiehankins.co.uk descriptive text " iframe width='420' height='315' src='//www.youtube.com/embed/dQw4w9WgXcQ?autoplay=0' frameborder='0' allowfullscreen  /iframe "
Pró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