How to populate a widget with the actual server hostname ?
![]()
We have to use the C:\Windows\System32\drivers\etc\hosts to spoof the same PRD URI to access RTC on POC and TST env's: To make sure we know which RTC instance we are on, we manually label the instance via a widget on a shared dashboard.
Every time we refresh the DB's on POC or TST with clones from PRD, we would have to manually fix this label to correspond with the env. Is there a way to pick up the actual server hostname to populate a widget to automate this label ?
|
Accepted answer
2 other answers
![]() It would be nice to be able to easily customize the GUI with a different color bar or something. We ended up writing a small script, actually with AutoIt script, that runs all the time with a small window in the top-right corner. This is green for prod, red for test and yellow for PoC, and it also displays the text PROD, TEST or PoC. All it does is, every 5 seconds or something, it pings the TEST and PoC IPs, and changes color and text if either is alive. Otherwise, we must be connected to PROD. You can write a script like this in about a dozen lines, and AutoIt also has a script compiler. We find this to be very useful. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Or Is there any other way to tell which env we are on, using the exact same URI ?
Could we somehow run a command like hostname on the server within a widget then display it on same widget ?