Scripting in McM
In this page, some examples of scripts which can be used in McM for queries and actions are listed.
Last updated
Was this helpful?
In this page, some examples of scripts which can be used in McM for queries and actions are listed.
Last updated
Was this helpful?
Repository for using McM scripts and example scripts
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:
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
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)
(Please use it with care, only if you know what you are doing)