Advertisement
fmartinelli

Some CMS metrics for the T2 @ CSCS

Oct 18th, 2016
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.80 KB | None | 0 0
  1. # Some CMS metrics for the T2 @ CSCS
  2.  
  3. # 1st metric
  4. # Last 24h of CMS Site Readiness @ @CSCS
  5. # https://twiki.cern.ch/twiki/bin/viewauth/CMS/SiteSupportSiteStatusSiteReadiness
  6. # https://dashb-ssb.cern.ch/dashboard/request.py/sitehistory?site=T2_CH_CSCS#currentView=Site+Readiness&time=custom&start_date=2016-09-28&end_date=2016-09-29&values=false&spline=false&white=false
  7. TODAY=`    date +%F -d "-0 days"`
  8. YESTERDAY=`date +%F -d "-1 days"`
  9. lynx --dump "http://dashb-ssb.cern.ch/dashboard/request.py/getsiteplotdata?site=T2_CH_CSCS&view=Site%20Readiness&time=custom&dateFrom=${YESTERDAY}&dateTo=${TODAY}&prettyprint" | egrep --color '"HC glidein"|"Prod Status"|"Site Readiness"|"Site SAM availability"|"TopologyMaintenances"|"Maintenance saddlebrown"|"Maintenance brown"|"Error"|"Warning"|"OK"|$'
  10.  
  11.  
  12. # 2nd metric
  13. # Last 24h of CMS Jobs @ CSCS, per kind of job
  14. # http://dashb-cms-job.cern.ch/dashboard/templates/web-job2/#user=&refresh=0&table=Jobs&p=1&records=200&activemenu=1&usr=&site=T2_CH_CSCS&submissiontool=&application=&activity=&status=&check=submitted&tier=&date1=2016-09-28+13%3A47&date2=2016-09-29+13%3A47&sortby=activity&scale=linear&bars=20&ce=&rb=&grid=&jobtype=&submissionui=&dataset=&submissiontype=&task=&subtoolver=&genactivity=&outputse=&appexitcode=&accesstype=&inputse=&cores=
  15. TODAY=`    date +%F+%H:%m  -d "-0 days" | sed s'/:/%3A/'`
  16. YESTERDAY=`date +%F+%H:%m  -d "-1 days" | sed s'/:/%3A/'`
  17. lynx --dump "http://dashb-cms-job.cern.ch/dashboard/request.py/jobsummary-plot-or-table2?user=&site=T2_CH_CSCS&submissiontool=&application=&activity=&status=&check=submitted&tier=&sortby=activity&ce=&rb=&grid=&jobtype=&submissionui=&dataset=&submissiontype=&task=&subtoolver=&genactivity=&outputse=&appexitcode=&accesstype=&inputse=&cores=&date1=${YESTERDAY}&date2=${TODAY}&prettyprint" | egrep --color '"name"|$'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement