Monte Carlo production tools
  • Introduction
  • Monte Carlo production overview
  • Monte Carlo Management (McM): introduction
  • Analyzer's corner
    • Monitoring submitted requests
    • How to search for datasets in DAS and McM
    • How to find the fragment of a request in McM
    • How to find the cmsDriver used for a certain request
    • How to use randomized parameters samples
  • Monte Carlo contact's corner
    • Rules for dataset names
    • Rules for Run3 dataset names
    • Rules for Run3 2024 dataset names
    • How to create a new ticket
    • High priority requests
    • Scripting in McM
    • Request checking script
    • News and current request policy
    • Interactive MC contact exercises
    • Randomized Parameters
    • Info for MC production for Ultra Legacy Campaigns 2016, 2017, 2018
    • Info for MC production for Run3 Campaigns
  • Request manager's corner
    • [DRAFT] MultiValidation in McM
    • Procedure how to create and setup a campaign
    • Fast Simulation Campaigns
    • "Dead" requests and tickets
  • Computing's corner
    • Status of requests in computing
    • Errors in production: explanation
    • Task chain vs step chain
  • cmsDriver argument and meaning
    • runTheMatrix and release validation
  • Monte Carlo Management (McM): detailed guide
    • McM Glossary: requests
    • McM glossary: chained requests
    • McM glossary: campaigns
    • McM glossary: flows
    • McM glossary: tickets
  • Production Monitoring Platform (pMp): detailed guide
  • Data reprocessing (old injection method via script)
  • FAQ
  • Contacts
  • Group Analysis Samples Page: GrASP
    • Tagging on GrASP
Powered by GitBook
On this page
  • McM Scripts
  • Link to script repository

Was this helpful?

  1. Monte Carlo contact's corner

Scripting in McM

In this page, some examples of scripts which can be used in McM for queries and actions are listed.

PreviousHigh priority requestsNextRequest checking script

Last updated 6 years ago

Was this helpful?

McM Scripts

Repository for using McM scripts and example scripts

Basic info

  • Link to McM:

  • McM Rest API:

  • For most actions you will NEED to have a valid CERN SSO cookie

  • Public APIs do not require a cookie. Index of public API:

CERN SSO cookie

  • Use cern-get-sso-cookie command line tool to generate it:

    • cern-get-sso-cookie --url https://cms-pdmv-dev.cern.ch/mcm/ -o dev-cookie.txt

    • cern-get-sso-cookie --url https://cms-pdmv.cern.ch/mcm/ -o prod-cookie.txt

  • cern-get-sso-cookie is already available in lxplus nodes

  • It expires after ~10 hours, so be sure to regenerate it

  • Dev cookie is valid only for dev environment and production cookie is valid only for production environment

Priority change

  • If you want to use priority changing scripts or do anything else related to cmsweb, you'll have to use voms-proxy:

    • voms-proxy-init -voms cms

    • export X509_USER_PROXY=$(voms-proxy-info --path)

Link to script repository

(Please use it with care, only if you know what you are doing)

https://cms-pdmv.cern.ch/mcm/
https://cms-pdmv.cern.ch/mcm/restapi
https://cms-pdmv.cern.ch/mcm/public/restapi/
LogoGitHub - cms-PdmV/mcm_scripts: Repository holding examples of McM scriptsGitHub
LogoGitHub - pgunnell/mcm_scripts: Repository holding examples of McM scriptsGitHub