Customizing Error Messages - HP ProCurve NAC 800 User Manual

Hide thumbs Also See for ProCurve NAC 800:
Table of Contents

Advertisement

End-user Access

Customizing Error Messages

The default error message strings (remediation messages) are defined in the follow-
ing file:
/usr/local/nac/scripts/BaseClasses/Strings.py
You can create custom error message strings that appear in the test result reports,
and on the test results access window that the end-user views by editing or creating
the following file:
/usr/local/nac/scripts/BaseClasses/CustomStrings.py
To customize the error messages:
1.
Create a file using a text editor, and name it as follows:
/usr/local/nac/scripts/BaseClasses/CustomStrings.py
using the following format:
class CustomStrings:
Where:
The name value (name1) matches the name of the test (see Table 9 on page 179
of the Users Guide)
The message value (message1)is the text you want to appear in the reports
and on the end-user access windows.
For example:
class CustomStrings:
anti-virus software was not found.
from this location <a href='http://myserver.someplace.com/
5-52

Customizing Error Messages

stringTable = {
"name1" : "message1",
"name2" : "message2",
}
stringTable = {
"checkAntiVirusUpdates.String.1" : "The required
Install the software

Advertisement

Table of Contents
loading

Table of Contents