Skip to content

Running plugins on the MOC (x86_64)

Rudolph Pienaar edited this page Dec 7, 2019 · 1 revision

Running plugins on the MOC (x86_64)

Overview

This page documents some pfcon related commands for executing plugins on the Massachusetts Open Cloud

Service access

Set the access IP to fnndsc.childrens.harvard.edu

export HOST_IP=134.174.13.44

Call

pfurl --verb POST --raw \
      --http ${HOST_IP}:5005/api/v1/cmd \
      --httpResponseBodyParse \
      --jsonwrapper 'payload' \
      --msg \
'{  "action": "internalctl",
    "meta": {
                "var":     "/service/moc",
                "set":     {
                    "compute": {
                        "addr": "pman-radiology.k-apps.osh.massopen.cloud",
                        "baseURLpath": "api/v1/cmd/",
                        "status": "undefined",
                        "authToken": "{Bu7H)FyWp{,e<"
                    },
                    "data": {
                        "addr": "pfioh-radiology.k-apps.osh.massopen.cloud",
                        "baseURLpath": "api/v1/cmd/",
                        "status": "undefined",
                        "authToken": "{Bu7H)FyWp{,e<",
                        "serviceMan": "openshift"
                    }
                }
            }
}'

Set an optional proxy if in a proxied network:

pfurl --verb POST --raw \
      --http ${HOST_IP}:5005/api/v1/cmd \
      --httpResponseBodyParse \
      --jsonwrapper 'payload' \
      --msg \
'{  "action": "internalctl",
    "meta": {
                "var":     "/self",
                "set":     {
                     "httpProxy": {
                        "httpSpec": "http://proxy.tch.harvard.edu:3128",
                        "use":  true
                    }
                }
            }
}'

-30-