Skip to content

Instantly share code, notes, and snippets.

View bbg-deploy's full-sized avatar

Blue Box Implementations Team bbg-deploy

View GitHub Profile
root@dox-sea-rails-dox-01:~# curl -I -H 'Host: bb.doximity.com' localhost:443/healthcheck
HTTP/1.1 400 Bad Request
Server: nginx/1.4.5
Date: Thu, 06 Mar 2014 20:00:44 GMT
Content-Type: text/html
Content-Length: 270
Connection: close
root@esgw:/etc/nginx/conf.d# curl -I -k -H 'Host: es-prod-gw.doximity.com' http://localhost:443/status
HTTP/1.1 401 Unauthorized
Server: nginx/1.1.19
Date: Thu, 06 Mar 2014 18:36:31 GMT
Content-Type: text/html
Content-Length: 195
Connection: keep-alive
WWW-Authenticate: Basic realm="ElasticSearch"
[root@vsh205 ~]# lsmod | grep ip_tables
ip_tables 18151 3 iptable_nat,iptable_filter,iptable_mangle
[root@vsh205 ~]# vzlist -a | grep iptables
14162198 36 running 67.214.216.147 cc-iptables-vbox.c45223.blueboxgrid.com
[root@vsh205 ~]# grep ip_tables /etc/vz/conf/14162198.conf
IPTABLES="ip_tables iptable_filter iptable_mangle ipt_limit ip_conntrack ip_conntrack_ftp ipt_conntrack ipt_state"
[root@vsh205 ~]# vzctl enter 14162198
entered into CT 14162198
[root@cc-iptables-vbox /]# lsmod | grep ip_tabl
[root@cc-iptables-vbox /]# logout
- - 199.182.120.10
- - 199.182.120.9
- - 199.182.120.11
- - 199.182.120.8
- 199.182.120.16
- - 199.182.120.13
- - 199.182.120.17
- - 199.182.120.14
- - 199.182.120.146
- 199.182.120.19
- - 199.91.170.69
- - 199.91.170.132
- - 199.91.170.50
- - 199.182.120.56
- - 173.247.96.10
- - 199.91.171.26
- - 199.91.170.222
- - 199.91.170.105
- - 199.91.171.21
- - 199.91.171.22
Ashburn v4
================
199.91.168.0/22
199.182.120.0/22
173.247.96.0/21
Ashburn v6
===================
2607:F700:8000::/33
[root@ds1203 ~]# for ctid in `vzlist -a | awk 'NR > 1 { print $1 }'`; do vzctl exec $ctid hostname; vzctl exec $ctid curl -s -I www.ibm.com; done
inserm01.c44031.blueboxgrid.com
HTTP/1.1 302 Found
Date: Thu, 23 Jan 2014 03:46:40 GMT
Cache-Control: max-age=301
Expires: Thu, 23 Jan 2014 03:51:41 GMT
Content-Type: text/html
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, must-revalidate
[root@ds836 ~]# tw_cli /c0 show
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - 931.312 W OFF
u1 RAID-10 INOPERABLE - - 16K 1862.62 Ri ON
VPort Status Unit Size Type Phy Encl-Slot Model
------------------------------------------------------------------------------
p0 OK u0 931.51 GB SATA 0 - WDC WD1002FBYS-02A6
[root@ds0235 cache]# pwd
/vz/template/cache
You have new mail in /var/spool/mail/root
[root@ds0235 cache]# du -hs *
5.7G 066f7e8c-d00b-4f5a-94ae-15eb0324dfed
8.0G 1210a16c-2917-4773-8789-7e5c797fa0f4
4.7G 1e9173f3-b9f0-4b98-936a-ec1ba1627284
5.6G 20b76320-f648-423f-b370-e14672bdbb11
5.5G 2223a55f-b4d9-4a92-9722-be836872c26b
5.7G 29bc4802-572b-4fb8-aef7-4217b884955f
rsyslog_pid = value_for_platform_family(
'rhel' => '/var/run/syslogd.pid',
'debian' => '/var/run/rsyslogd.pid',
)
monit_check 'rsyslog' do
check_id rsyslog_pid
group 'system'
start '/etc/init.d/rsyslog start'
stop '/etc/init.d/rsyslog stop'