Mid server name showing in acc.yml config file instead of mid server IP address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 05:14 AM - edited 11-23-2023 05:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 10:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 12:38 AM
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.