Display server name in StoreFront 3

Following up this article at the Citrix forum, I’l explain how to display the Server name in StoreFront 3 in the browser. I’m doing that using a text file as a cache.  The reason for this is because I’m trying to use the  server name in the native receiver as well which works offline only (not yet working ).  

My method is based on the older GetServerData.aspx method that I modified for our needs.

Step 1: Create ‘GetServerData.aspx’ in \custom folder.  It does the following:

  • Gets  IP and server name into variables (I use only server name, format is xxx_xxx)
  • Shortens the server name to the first 2 and the last character
  • If it not exists already it writes it to text file /custom/cache/server-info.txt
  • text file is re-created every 24 hours

I’m sure the code can be better but it works for me. 

 

Step 2:  In /custom/script.js add the code below

  • It will add the server name to the login and main page of StoreFront

 

Step 3:  Add this to  /custom/style.css

 

Do a IIS restart and have a look at the right lower corner.

 

Native Citrix Receiver:  I’m really having a hard time to use the server-info.txt file and display it for receiver as well.  Any proposals are welcome. Please leave a comment.

 

Leave a Reply

Your email address will not be published. Required fields are marked *