This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[email protected]] | |
/var/www/virtual/app1061/htdocs # grep -rni REMOTE_ADDR . 2> /dev/null | |
./forum/includes/session.php:270: // původní verze (RelBit edit) $this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? (string) $_SERVER['REMOTE_ADDR'] : ''; | |
./forum/includes/session.php:279: // Default IP if REMOTE_ADDR is invalid | |
./log/exception 2014-12-01 00-56-04 8c7069a8bad6c8c9d6010e3a9acbbf29.html:5170:<tr><th>REMOTE_ADDR</th><td><pre class="nette-dump">"172.17.129.65" (13) | |
./log/exception 2014-12-01 00-29-51 c0c51d852d040aff9e011a971ed1bb9e.html:5467:<tr><th>REMOTE_ADDR</th><td><pre class="nette-dump">"172.17.129.65" (13) | |
./log/exception 2014-12-14 13-45-42 b7f689197858d0a5ee874d1fd0b221f6.html:456:<span class='line'>223:</span> </span><span style="color: #080">'ip' </span><span style="color: #D24; font-weight: bold">=> </span><span style="colo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[email protected]] | |
~ # total=0; for mem in $(vzlist -Ho physpages); do total=$(($mem+$total)); done; echo $(($total/256)) M;93434 M | |
[[email protected]] | |
~ # cat /proc/meminfo | |
MemTotal: 263971464 kB | |
MemFree: 8237540 kB | |
Buffers: 121564 kB | |
Cached: 18635392 kB | |
SwapCached: 0 kB | |
MemCommitted: 433061888 kB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
is_ip() { | |
IP="$1" | |
python - "${IP}" <<EOF | |
import socket | |
import sys | |
# Check IPv6 | |
if socket.has_ipv6: | |
try: | |
socket.inet_pton(socket.AF_INET6, sys.argv[1]) | |
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snajpa@snajpabook:~$ echo "vpsFree.cz Cluster Stats"; echo; total_ram=0; total_cores=0; total_ct=0; for node in $VPSFREE_NODES; do total_ram=$(( $total_ram + $($node cat /proc/meminfo | grep MemTotal | awk '{ print $2; }') )); total_cores=$(( $total_cores + $($node cat /proc/cpuinfo | grep MHz | wc -l) )); total_ct=$(( $total_ct + $($node vzlist -H | wc -l) )); done; echo "RAM: $(( $total_ram / 1024 / 1024 )) GB"; echo "CPU: $total_cores cores"; echo "Containers: $total_ct"; | |
vpsFree.cz Cluster Stats | |
RAM: 2768 GB | |
CPU: 320 cores | |
Containers: 1007 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snajpa@snajpabook:~/Videos/KapitanBomba$ node1 | |
Last login: Sat Jul 11 19:25:29 2015 from 172.16.107.100 | |
[[email protected]] | |
~ # zpool status | |
pool: vz | |
state: ONLINE | |
scan: resilvered 62.6M in 0h25m with 0 errors on Thu Jul 9 18:21:18 2015 | |
config: | |
NAME STATE READ WRITE CKSUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[email protected]] | |
~ # ~/useful-scripts/meminfo -v | |
mem_total 257788 MB | |
mem_free 12899 MB | |
mem_free_no_cache 13225 MB | |
mem_swap_free 31922 MB | |
mem_swap_used 739 MB | |
slab_size 116202 MB | |
dcache_size 4964 MB | |
swapcache_size 325 MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[email protected]] | |
~ # cat /proc/3819/stack | |
[<ffffffffa0249f2f>] cv_wait_common+0xaf/0x130 [spl] | |
[<ffffffffa0249fc8>] __cv_wait_io+0x18/0x20 [spl] | |
[<ffffffffa034dc4b>] zio_wait+0x10b/0x1e0 [zfs] | |
[<ffffffffa02a5425>] arc_read+0x875/0xa00 [zfs] | |
[<ffffffffa03489e3>] zil_parse+0x2d3/0x850 [zfs] | |
[<ffffffffa034903d>] zil_check_log_chain+0xdd/0x1c0 [zfs] | |
[<ffffffffa02b5d3b>] dmu_objset_find_impl+0xfb/0x400 [zfs] | |
[<ffffffffa02b5dfa>] dmu_objset_find_impl+0x1ba/0x400 [zfs] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[email protected]] | |
~ # cat /proc/2636/stack | |
[<ffffffffa022e68d>] taskq_wait+0x5d/0x90 [spl] | |
[<ffffffffa02a049e>] dmu_objset_find_dp+0x11e/0x1c0 [zfs] | |
[<ffffffffa02e4448>] spa_load+0x12c8/0x1a30 [zfs] | |
[<ffffffffa02e4c0e>] spa_load_best+0x5e/0x270 [zfs] | |
[<ffffffffa02e596b>] spa_import+0x1eb/0x730 [zfs] | |
[<ffffffffa0318234>] zfs_ioc_pool_import+0xe4/0x120 [zfs] | |
[<ffffffffa031ab25>] zfsdev_ioctl+0x495/0x4d0 [zfs] | |
[<ffffffff811cb492>] vfs_ioctl+0x22/0xa0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aug 4 00:04:28 node5 kernel: [ 841.532042] INFO: task zpool:2636 blocked for more than 120 seconds. | |
Aug 4 00:04:28 node5 kernel: [ 841.532172] Tainted: P --------------- 2.6.32-042stab108.8 #1 | |
Aug 4 00:04:28 node5 kernel: [ 841.532360] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. | |
Aug 4 00:04:28 node5 kernel: [ 841.532555] zpool D ffff88206fc0f2c0 0 2636 2477 0 0x00000000 | |
Aug 4 00:04:28 node5 kernel: [ 841.532564] ffff88206f26fa98 0000000000000086 0000000000000000 0000000000000086 | |
Aug 4 00:04:28 node5 kernel: [ 841.532570] 0000000000000001 0000000000100000 0000008ead9462c2 ffff8840734bf010 | |
Aug 4 00:04:28 node5 kernel: [ 841.532575] ffff882000000000 0000000000000000 000000010004ab42 0000001681066c22 | |
Aug 4 00:04:28 node5 kernel: [ 841.532579] Call Trace: | |
Aug 4 00:04:28 node5 kernel: [ 841.532601] [<ffffffffa022e68d>] taskq_wait+0x5d/0x90 [spl] | |
Aug 4 00:04:28 node5 kernel: [ 841.532610] [<ffffffff810a9880>] ? autoremove_wak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console# show lacp port-channel 2 | |
Port-Channel ch2 | |
Port Type Unknown | |
Attached Lag id: | |
Actor | |
System Priority:1 | |
MAC Address: 9c:4e:20:21:a8:b3 | |
Admin Key: 26 | |
Oper Key: 26 | |
Partner |