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
Parameter | Alias | Required | Default | Type | Description |
---|---|---|---|---|---|
BaseURL | True | String | VSA URL | ||
VsaUserName | True | String | User with API Access | ||
RestApiToken | True | String | REST API Token for User | ||
OrgName | True | String | Org Name that contains the Field to Copy | ||
OrgField | True | String | Org Custom Field to Copy | ||
MachineField | True | String | Machine Custom Field to receive data | ||
GroupName | False | String | Optionally supply a group within the org to write the CF to exclusively | ||
AgentName | False | String | Optionally supply a single agent name within the org to write the CF to exclusively |
Output
./UpdateVsaMonitoringFields-log.txt