End-user Access
195
no
vd
ocx
(e
n)
24
Ma
rch 20
09
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
Table 5-1 on page 196
).
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. Install the software from this location <a href='http://
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.
Содержание ZENworks Network Access Control 5.0
Страница 4: ...4 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 14: ...14 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 Glossary 525 ...
Страница 136: ...136 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 156: ...156 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 216: ...216 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 224: ...224 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 226: ...226 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 Figure 8 1 Inline Installations ...
Страница 227: ...High Availability and Load Balancing 227 novdocx en 24 March 2009 Figure 8 2 DHCP Installation ...
Страница 234: ...234 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 294: ...294 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 310: ...310 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 328: ...328 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 378: ...378 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 384: ...384 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 392: ...392 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 436: ...436 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 442: ...442 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 450: ...450 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 460: ...460 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 524: ...524 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...
Страница 534: ...534 Novell ZENworks Network Access Control Users Guide novdocx en 24 March 2009 ...