Created
May 17, 2019 09:59
-
-
Save Ladsgroup/c34d9efe712ce7f4bf8ddf16d7a12805 to your computer and use it in GitHub Desktop.
SWAT
This file contains hidden or 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
function swat { | |
# open browser window (--new-tab will only target the new window in a separate command) | |
firefox \ | |
--new-window https://wikitech.wikimedia.org/wiki/Deployments | |
firefox \ | |
--new-tab https://logstash.wikimedia.org/app/kibana#/dashboard/Fatal-Monitor \ | |
--new-tab https://logstash.wikimedia.org/app/kibana#/dashboard/mediawiki-errors \ | |
--new-tab https://logstash.wikimedia.org/app/kibana#/dashboard/mwdebug1002 \ | |
--new-tab https://integration.wikimedia.org/zuul/ \ | |
--new-tab https://tools.wmflabs.org/versions/ | |
# ensure the ssh key is in the agent and the ControlMaster connection is alive | |
ssh mwdebug1002.eqiad.wmnet true | |
# set up the SWAT terminal window: | |
# fatalmonitor deployment | |
# mwdebug1002 mwmaint1002 | |
gnome-terminal --maximize -- \ | |
tmux \ | |
new-session -s SWAT ssh mwlog1001.eqiad.wmnet \; \ | |
split-window -h ssh deployment.eqiad.wmnet \; \ | |
split-window -t {left} -v ssh mwdebug1002.eqiad.wmnet \; \ | |
split-window -t {right} -v ssh mwmaint1002.eqiad.wmnet \; \ | |
send-keys -t {top-left} "exec fatalmonitor" Enter \; \ | |
send-keys -t {top-right} "cd /srv/mediawiki-staging" Enter \; | |
select-pane -t {top-right} \; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment