File transfers are not able to use Agent groups as variables
search cancel

File transfers are not able to use Agent groups as variables

book

Article ID: 280290

calendar_today

Updated On:

Products

CA Automic Operations Manager

Issue/Introduction

File transfer job returns 'Access Denied' when using a variable for agent hostgroup but succeeds if you use the same hostgroup instead of a variable.
U00000009 'HOSTG.WIN': Access denied

- Create hostgroup containing agent A.
- Create JOBF.
- Transfer file from Agent A to Agent B.
- File transfer succeeds.
- Add variable to JOBF using "Variables & Prompts.
- Set Name as &DST_AGENT and Value to HOSTG.WIN.
- In File Transfer tab, replace Destination agent with  &DST_AGENT
 
Expected:
- File transfer succeeds
Actual:
- File transfer fails -FAULT_OTHER - Start impossible. Other error.
U00000009 'HOSTG.WIN': Access denied

Cause

Resolution

This is not possible directly, because the variables need to be already resolved with the correct hosts (not hostgroups) before the script is generated.