298
Novell eDirectory 8.8 Administration Guide
n
ov
do
cx (e
n)
22
Ju
n
e 20
09
or
Click
View NCP Server
, then click an NCP Server object.
4
Click
Add Policy
.
5
Select 1-3am.wmg from the list of predefined policies, then click
OK
twice.
The policy is displayed in the
Policy
text box, which lets you make changes. For example, if
you want to limit traffic to 2:00 a.m. to 5:00 p.m. rather than from 1:00 a.m. to 3:00 a.m., make
the following changes:
/* This policy limits all traffic to between 2 and 5 pm */
LOCAL BOOLEAN Selected;
SELECTOR
Selected := Now.hour >= 2 AND Now.hour < 17;
IF Selected THEN
RETURN 50; /* between 2am and 5pm this policy has a
high priority */
ELSE
RETURN 1; /* return 1 instead of 0 in case there are
no other policies */
/* if no policies return > 0, WanMan assumes
SEND */
END
END
PROVIDER
IF Selected THEN
RETURN SEND; /* between 2am and 5pm, SEND */
ELSE
RETURN DONT_SEND; /* other times, don’t */
END
END
In the comment lines (set off with /* and */), the hour can be designated using a.m. and p.m. In
the active code, however, it must be designated using 24-hour format. In that case, 5:00 p.m.
becomes 17.
To better understand the structure of a WAN policy, see
Section 13.3, “WAN Policy Structure,”
on page 314
.
To better understand the syntax of a WAN policy, see
“Construction Used within Policy
Sections” on page 317
.
6
After modifying the syntax of the policy, click
Check Policy
to identify errors in syntax or
structure.
The results of the policy check are displayed.
WAN Traffic Manager will not run policies with errors.
7
If you want to keep the original 1-3 am policy, add the new policy under a different name.
7a
Click
Rename Policy
.
7b
Enter a name for the edited policy, then click
OK
.
8
Click
Apply
, then click
OK
.
Summary of Contents for EDIRECTORY 8.8 SP5
Page 4: ...4 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 72: ...72 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 118: ...118 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 130: ...130 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 188: ...188 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 222: ...222 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 240: ...240 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 264: ...264 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 290: ...290 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 322: ...322 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 540: ...540 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 548: ...548 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...
Page 616: ...616 Novell eDirectory 8 8 Administration Guide novdocx en 22 June 2009...