Mid server name showing in acc.yml config file instead of mid server IP address.

Tapish Sharma1
Kilo Sage

Hi All, 

I am installing the ACC in a windows machine using the single line command. I have given two mid servers url in the command.
Command - msiexec /i <msi_file_path> /quiet /qn /norestart ACC_API_KEY=*********** ACC_MID="wss://10.10.10.1:8080/ws/events,ws://10.10.10.2:8080/ws/events"

 

After the agent is installed ,  I can see the two mid urls in the acc.yml config file. But for one url instead of IP I can see the hostname in the url.

For eg -  "wss://10.10.10.2:8080/ws/events" , it is seen as "wss://'mid_hostname':8080/ws/events" ,

Has anyone else experienced this ? , how to rectify this ? It is not feasible to change it manually in every machine, as the agents are being installed in the entire estate. 

2 REPLIES 2

Amit Gujarathi
Giga Sage
Giga Sage

Hi @Tapish Sharma1 ,
I trust you are doing great.
you would write a script that checks the acc.yml file for the URL format and replaces the hostname with the correct IP address. Here's a pseudocode example:

Read acc.yml file
For each URL in ACC_MID:
    If URL contains a hostname instead of IP:
        Replace hostname with the corresponding IP address
Write changes back to acc.yml file

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



Hi amit ,
THanks for your reply, I was looking into why this happened . Why one ip is showing and the other as hostname. After some investigation , I saw one mid web server was configured to use secured connection. As a result it's hostname was reflecting in the config file . Still dont know why this is the case.