Run a script using VMware Tools.

{
  "id": "run-script-via-vm-tools",
  "name": "Run Script via VMware Tools",
  "description": "Run Script via VMware Tools with Initial Delay",
  "version": "1.0",
  "startStep": "item0",
  "variables": [
    { "name": "vnfId", "type": "string" }
  ],
  "input": [
    { "name": "VDU_USER", "description": "VDU Username", "type": "string" },
    { "name": "VDU_PWD", "description": "VDU Password", "type": "password" },
    { "name": "VDUNAME", "description": "VDU Name from VNF Catalog", "type": "string" }
  ],
  "output": [
    { "name": "VDU_RESULT", "description": "VDU Result", "type": "string" }
  ],
  "steps": [
    {
      "stepId":"item0",
      "workflow":"RUN_PROGRAM_IN_GUEST",
      "namespace": "nfv",
      "type":"task",
      "description": "VM Tools Script with Delay",
      "inBinding": [
        { "name": "initialDelay", "type": "number", "default": "300" },
        { "name": "username", "type": "string", "exportName": "VDU_USER" },
        { "name": "password", "type": "password", "exportName": "VDU_PWD" },
        { "name": "vduName", "type": "string", "exportName": "VDUNAME" },
        { "name": "scriptType", "type": "string", "value": "bash", "default": "bash" },
        { "name": "script", "type": "string", "default": "uptime" },
        { "name": "scriptTimeout", "type": "number", "default": "12" },
        { "name": "scriptRefreshTime", "type": "number", "default": "5" },
        { "name": "scriptWorkingDirectory", "type": "string", "default": "/bin" },
        { "name": "interactiveSession", "type": "boolean", "value": false, "default": "false" }
      ],
      "outBinding": [
        { "name": "result", "type": "string", "exportName": "VDU_RESULT" }
      ],
      "nextStep": "END"
    }
  ]
}