How does the MVS agent get Host and IP in U02000066 message?

book

Article ID: 225949

calendar_today

Updated On:

Products

CA Automic One Automation

Issue/Introduction

Where does the following message come from when the MVS agent starts up?

U02000066 Host information: Host name='DNS_SHORT_NAME_OR_FQDN', IP address='127.0.0.1'

Environment

Release : 12.3

Component :

Resolution

The Automic z/OS agent uses the following system calls to gather the information that is put into the U02000066 message:
The z/OS systemcall gethostname() gets the DNS name
The information returned by that is then used in the getaddrinfo() z/OS systemcall to return the IP address