Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Some CMS metrics for the T2 @ CSCS
- # 1st metric
- # Last 24h of CMS Site Readiness @ @CSCS
- # https://twiki.cern.ch/twiki/bin/viewauth/CMS/SiteSupportSiteStatusSiteReadiness
- # 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
- TODAY=` date +%F -d "-0 days"`
- YESTERDAY=`date +%F -d "-1 days"`
- 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"|$'
- # 2nd metric
- # Last 24h of CMS Jobs @ CSCS, per kind of job
- # 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=
- TODAY=` date +%F+%H:%m -d "-0 days" | sed s'/:/%3A/'`
- YESTERDAY=`date +%F+%H:%m -d "-1 days" | sed s'/:/%3A/'`
- 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