Paste P7791

servers that were too hot in the hour of 1700, Nov 12 2018, summarized
ActivePublic

Authored by CDanis on Mon, Nov 12, 5:53 PM.
cdanis@neodymium:~$ sudo cumin 'mw1*' '[ $(grep "trip temperature" /var/log/syslog | grep "Nov 12 17:" | wc -l) -ge 10 ] && echo too hot || echo ok'
122 hosts will be targeted:
mw[1221-1235,1238-1258,1261-1290,1293-1348].eqiad.wmnet
Confirm to continue [y/n]? y
===== NODE GROUP =====
(96) mw[1228,1230,1239,1249-1250,1252,1254,1256-1258,1261-1290,1293-1348].eqiad.wmnet
----- OUTPUT of '[ $(grep "trip t...o hot || echo ok' -----
ok
===== NODE GROUP =====
(26) mw[1221-1227,1229,1231-1235,1238,1240-1248,1251,1253,1255].eqiad.wmnet
----- OUTPUT of '[ $(grep "trip t...o hot || echo ok' -----
too hot
================
CDanis created this paste.Mon, Nov 12, 5:53 PM