How do I present ProxySG's hostname or IP address in every exception message?
search cancel

How do I present ProxySG's hostname or IP address in every exception message?

book

Article ID: 166124

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

 I have multiple ProxySG units transparently deployed with load-balancer or WCCP. Once an exception occurs, I'd like to know, by adding appliance hostname or IP address in the exception message, which proxy reported the exception.

Resolution

In order to add your proxy's hostname or IP addres (or both) in the any exception page, you will need to modify the HTML code in global parent exception, and add "$(proxy.name)" and/or "$(proxy.address)" substitution variables.

 
From the Management Console, navigate to Configuration > Policy > Exceptions > select "Text Editor" from the drill down menu of Install Exceptions, "Install Exceptions Definitions from:", and click Install
 
"Edit and Install the Exceptions Definitions" window will then display
Move the cursor to the top of the text and look for "(exception.all" in the first line. From the top, go down and find HTML codes for the global parent exception. This HTML codes are where you can put the proxy's hostname and/or IP address or the substitution variables.
 
Once the exception code is modified, click Install and test the policy.
 
 
EXAMPLE
 
Exception Code:
 
(exception.all
  (contact "For assistance, contact your network support team.")
  (details)
  (format "$(exception.id): $(exception.details)")
  (help)
  (summary)
  (http
    (code "200")
    (contact)
    (details)
    (format <<--20ed26aa.e237b--
<HTML><HEAD>
<TITLE>$(exception.summary)</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong>$(exception.company_name)</strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>$(exception.summary) ($(exception.id))</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
$(exception.details)
<BR>
<BR>
Reported by $(proxy.name)($(proxy.address))
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
$(exception.help)
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
$(exception.contact)
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
.... snip ....
 
 
Exception Message:
  

Access Denied (policy_denied)

Your system policy has denied access to the requested URL.

Reported by MyProxySG01(10.10.3.1)

For assistance, contact your network support team.