Customizing Error Messages - HP 800 User Manual

Network access controller
Hide thumbs Also See for 800:
Table of Contents

Advertisement

End-user Access

Customizing Error Messages

5-40

Customizing Error Messages

The default error message strings (remediation messages) are defined in the
following 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:
stringTable = {
}
Where:
The name value (name1) matches the name of the test (see table 5-1 on
page 541).
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:
stringTable = {
"checkAntiVirusUpdates.String.1" : "The
required anti-virus software was not found.
"name1" : "message1",
"name2" : "message2",
Install

Advertisement

Table of Contents
loading

This manual is also suitable for:

Procurve nac 800

Table of Contents