Skip to main content

Overview

Copies Org CFs to Machines in the specified Org.

Requirements

  • VSAAPI module

Process

Copies Org CFs to Machines in the specified Org. It checks to ensure the Machine CF exists and creates it if it does not.

Payload Usage

./Copy-VsaOrgToMachineCF -BaseURL https://vsa.provaltech.com -VsaUserName serviceApi -RestApiToken token -OrgField 'Monitoring' -MachineField 'xPVAL Monitoring Managed' -OrgName 'Proval Technologies' -AgentName fdev-win10-1

This command sets 'xPVAL Monitoring Managed' to the org CF value from 'Monitoring' for the specified agent.

Parameters

ParameterAliasRequiredDefaultTypeDescription
BaseURLTrueStringVSA URL
VsaUserNameTrueStringUser with API Access
RestApiTokenTrueStringREST API Token for User
OrgNameTrueStringOrg Name that contains the Field to Copy
OrgFieldTrueStringOrg Custom Field to Copy
MachineFieldTrueStringMachine Custom Field to receive data
GroupNameFalseStringOptionally supply a group within the org to write the CF to exclusively
AgentNameFalseStringOptionally supply a single agent name within the org to write the CF to exclusively

Output

./UpdateVsaMonitoringFields-log.txt