GET_OBJECT_TYPE shows HOST for agents unavailable in working client

book

Article ID: 211722

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

GET_OBJECT_TYPE can be used in a non-zero client for agents that are not allowed permission in the client where GET_OBJECT_TYPE is being run

Steps to reproduce:
1) Find an agent (or install one) that is has no permissions in a non-zero client (for example, agent WIN01 has no permission RWX permissions in client 100)
2) In the client that does not have permissions to the agent, create a script object that simply has:
:set &object_type# = get_object_type("[agent_name]")
:p &object_type#

Result:
Report shows: U00020408 object type returns HOST

Cause

By Design

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Resolution

This behavior is as designed.  The GET_OBJECT_TYPE function will first check in the current client for any definitions and then will check in client 0.  As the agents reside in client 0 no matter what, they will show as a type of HOST.  Please see the GET_OBJECT_TYPE documentation below for more information:

https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#Script/Reference/GET_OBJECT_TYPE.htm