1.
Log into the GUI server.
2.
Change to the utility directory by typing:
cd /usr/netscreen/GuiSvr/utils.
3.
Create a shell script with the following elements:
•
Set the NSMUSER environment variable with an NSM domain/user pair. The
command for setting environment variables depends on your OS.
Example: export NSMUSER=domain/user
•
Set the NSMPASSWD environment variable with an NSM password. The command
for setting environment variables depends on your OS and shell.
Example: export NSMPASSWD=password
•
Specify a
guiSvrCli
command string.
Example: /usr/netscreen/GuiSvr/utils/guiSvrCli.sh --update-attacks --post-action
post_action_options
4.
Make the script executable. Make sure the person who will create the cron job has
permission to run the script.
5.
Run the crontab editor.
crontab -e
6.
Add an entry for the shell script
<minutes after hour> <hour> * * *
path/attack_update_shell_script
During the update, the
guiSvrCli
utility updates its the attack object database, then
performs the post actions. After updating and executing actions, the system generates
an exit status code of 0 (no errors) or 1 (errors).
Example: Using Crontab to Schedule Attack Updates
In this example, you use crontab to update attack objects for online managed security
devices every day at 5:00 am. This example assumes you are running Linux, that you
have a domain called
idp
, and that there is an NSM user called
idpadmin
.
1.
Log into the GUI server.
2.
Change to the utility directory by typing:
cd /usr/netscreen/GuiSvr/utils.
3.
Create a shell script called
attackupdates.sh
with the following contents.
export NSMUSER=idp/idpadminexport
NSMPASSWD=
idpadminpassword
/usr/netscreen/GuiSvr/utils/guiSvrCli.sh
--update-attacks --post-action --update-devices --skip
4.
Make the script executable.
chmod 700 attackupdates.sh
5.
Run the crontab editor.
crontab -e
6.
Add the script to the crontab.
0 5 * * * /usr/netscreen/GuiSvr/utils/attackupdates.sh
299
Copyright © 2010, Juniper Networks, Inc.
Chapter 7: Managing Devices
Содержание NETWORK AND SECURITY MANAGER 2010.4 - ADMININISTRATION GUIDE REV1
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 36: ...Copyright 2010 Juniper Networks Inc xxxvi Network and Security Manager Administration Guide...
Страница 52: ...Copyright 2010 Juniper Networks Inc 2 Network and Security Manager Administration Guide...
Страница 90: ...Copyright 2010 Juniper Networks Inc 40 Network and Security Manager Administration Guide...
Страница 146: ...Copyright 2010 Juniper Networks Inc 96 Network and Security Manager Administration Guide...
Страница 236: ...Copyright 2010 Juniper Networks Inc 186 Network and Security Manager Administration Guide...
Страница 292: ...Copyright 2010 Juniper Networks Inc 242 Network and Security Manager Administration Guide...
Страница 314: ...Copyright 2010 Juniper Networks Inc 264 Network and Security Manager Administration Guide...
Страница 368: ...Copyright 2010 Juniper Networks Inc 318 Network and Security Manager Administration Guide...
Страница 370: ...Copyright 2010 Juniper Networks Inc 320 Network and Security Manager Administration Guide...
Страница 484: ...Copyright 2010 Juniper Networks Inc 434 Network and Security Manager Administration Guide...
Страница 584: ...Copyright 2010 Juniper Networks Inc 534 Network and Security Manager Administration Guide...
Страница 588: ...Copyright 2010 Juniper Networks Inc 538 Network and Security Manager Administration Guide...
Страница 600: ...Copyright 2010 Juniper Networks Inc 550 Network and Security Manager Administration Guide...
Страница 678: ...Copyright 2010 Juniper Networks Inc 628 Network and Security Manager Administration Guide...
Страница 694: ...Copyright 2010 Juniper Networks Inc 644 Network and Security Manager Administration Guide...
Страница 700: ...Copyright 2010 Juniper Networks Inc 650 Network and Security Manager Administration Guide...
Страница 706: ...Copyright 2010 Juniper Networks Inc 656 Network and Security Manager Administration Guide...
Страница 708: ...Copyright 2010 Juniper Networks Inc 658 Network and Security Manager Administration Guide...
Страница 758: ...Copyright 2010 Juniper Networks Inc 708 Network and Security Manager Administration Guide...
Страница 788: ...Copyright 2010 Juniper Networks Inc 738 Network and Security Manager Administration Guide...
Страница 882: ...Copyright 2010 Juniper Networks Inc 832 Network and Security Manager Administration Guide...
Страница 908: ...Copyright 2010 Juniper Networks Inc 858 Network and Security Manager Administration Guide...
Страница 918: ...Copyright 2010 Juniper Networks Inc 868 Network and Security Manager Administration Guide...
Страница 920: ...Copyright 2010 Juniper Networks Inc 870 Network and Security Manager Administration Guide...
Страница 1005: ...PART 6 Index Index on page 957 955 Copyright 2010 Juniper Networks Inc...
Страница 1006: ...Copyright 2010 Juniper Networks Inc 956 Network and Security Manager Administration Guide...