It's all about the answers!

Ask a question

How to populate a widget with the actual server hostname ?


long TRUONG (3654123147) | asked Sep 08 '15, 10:16 a.m.
 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 ?   

Comments
long TRUONG commented Sep 08 '15, 11:06 a.m.

 Or Is there any other way to tell which env we are on, using the exact same URI ?


long TRUONG commented Sep 08 '15, 11:10 a.m.

 Could we somehow run a command like hostname on the server within a widget then display it on same widget ?

Accepted answer


permanent link
Donald Nong (14.5k614) | answered Sep 08 '15, 8:44 p.m.
The easiest way I can think of is changing some logos or images on the web page, or using a Web UI theme, as explained in this technote.
http://www-01.ibm.com/support/docview.wss?uid=swg21634120
The path to the images may be different between versions, but it should be quite easy to identify the image name in the web page and locate it in the package or installation location.
long TRUONG selected this answer as the correct answer

Comments
long TRUONG commented Dec 03 '15, 4:42 a.m. | edited Dec 03 '15, 4:42 a.m.

Cool, Thx Don,

This will help us in using banners to notify users of major events like planned maintenance too.

Better acknowledging late than never :)
Been fighting bigger battles.


Kevin Ramer commented Dec 03 '15, 2:58 p.m.

As far as notify goes, you might look into the JTS configuration "System Alerts" ( available in 4.0.x and later ).   Add an alert and it will display on all registered applications ( but only in web ui :( )

2 other answers



permanent link
Jeremy Haddock (61) | answered Sep 08 '15, 12:41 p.m.

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.


Comments
long TRUONG commented Sep 08 '15, 3:21 p.m.

 Thx Jeremy,


Ingenious! But we had hope not having to depend on an external measure. :(


permanent link
long TRUONG (3654123147) | answered Sep 28 '18, 3:26 p.m.

 Had an occasion today to use the "System Alerts" to warn users of an imminent maintenance window: And wonder why I hadn't thought of simply setting a permanent banner with either DEV, UAT, or even PRD or a hostname via "System Alerts"?


Comments
Kevin Ramer commented Sep 28 '18, 4:38 p.m.
Sometimes we just have to let things "stew" in the background of our minds when suddenly we reach the moment of enlightenment

:-D

Your answer


Register or to post 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.