Novell ZENWORKS NETWORK ACCESS CONTROL 5.0 - 09-22-2008 User Manual page 195

Table of Contents

Advertisement

To customize the error messages:
1 Create a file using a text editor, and name it as follows:
/usr/local/nac/scripts/Custom/BaseClasses/CustomStrings.py
using the following format:
class CustomStrings:
stringTable = {
"name1" : "message1",
"name2" : "message2",
}
Where:
The name value (name1) matches the name of the test (see
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.
myserver.someplace.com/dir/application.exe'>Location Name</a>",
"name2" : "message2",
}
NOTE: A "%s" in the description text is a special variable that is interpolated into extra
information (passed from Novell ZENworks Network Access Control) such as lists of missing
patches, or missing software.
IMPORTANT: Normally Novell ZENworks Network Access Control uses Strings.py. If you
create a CustomStrings.py file, make sure that the number of placeholders (%s) for a given
entry is equal to the placeholders for that entry in Strings.py. If CustomStrings.py has a
different (smaller) number of placeholders than the entry in Strings.py had, tests will result in
an "unknown error," which can result in endpoints getting quarantined when they should not
be.
NOTE: While editing the description avoid the use of double quotes "". Use single quotes
instead. Double quotes will get interpreted by the software and can cut the string short or cause
the replacement to fail.
2 Once your custom strings script is complete, and you are ready to push it out to all of the ESs:
2a Verify that the scripts and base classes are under the Custom directory tree as specified
above.
2b Enter the following on the command line of the Novell ZENworks Network Access
Control MS:
installCustomTests
This command compiles the Python source files, builds an RPM, updates the policy groups, and
sends these changes to all ESs.
Install the software from this location <a href='http://
Table 5-1 on page
196).
End-user Access 195

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks network access control 5.0

Table of Contents