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
295
Copyright © 2010, Juniper Networks, Inc.
Chapter 7: Managing Devices
Содержание NETWORK AND SECURITY MANAGER 2010.3
Страница 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...
Страница 144: ...Copyright 2010 Juniper Networks Inc 94 Network and Security Manager Administration Guide...
Страница 146: ...Copyright 2010 Juniper Networks Inc 96 Network and Security Manager Administration Guide...
Страница 234: ...Copyright 2010 Juniper Networks Inc 184 Network and Security Manager Administration Guide...
Страница 310: ...Copyright 2010 Juniper Networks Inc 260 Network and Security Manager Administration Guide...
Страница 364: ...Copyright 2010 Juniper Networks Inc 314 Network and Security Manager Administration Guide...
Страница 366: ...Copyright 2010 Juniper Networks Inc 316 Network and Security Manager Administration Guide...
Страница 478: ...Copyright 2010 Juniper Networks Inc 428 Network and Security Manager Administration Guide...
Страница 576: ...Copyright 2010 Juniper Networks Inc 526 Network and Security Manager Administration Guide...
Страница 580: ...Copyright 2010 Juniper Networks Inc 530 Network and Security Manager Administration Guide...
Страница 592: ...Copyright 2010 Juniper Networks Inc 542 Network and Security Manager Administration Guide...
Страница 684: ...Copyright 2010 Juniper Networks Inc 634 Network and Security Manager Administration Guide...
Страница 690: ...Copyright 2010 Juniper Networks Inc 640 Network and Security Manager Administration Guide...
Страница 696: ...Copyright 2010 Juniper Networks Inc 646 Network and Security Manager Administration Guide...
Страница 698: ...Copyright 2010 Juniper Networks Inc 648 Network and Security Manager Administration Guide...
Страница 748: ...Copyright 2010 Juniper Networks Inc 698 Network and Security Manager Administration Guide...
Страница 778: ...Copyright 2010 Juniper Networks Inc 728 Network and Security Manager Administration Guide...
Страница 870: ...Copyright 2010 Juniper Networks Inc 820 Network and Security Manager Administration Guide...
Страница 872: ...Copyright 2010 Juniper Networks Inc 822 Network and Security Manager Administration Guide...
Страница 898: ...Copyright 2010 Juniper Networks Inc 848 Network and Security Manager Administration Guide...
Страница 908: ...Copyright 2010 Juniper Networks Inc 858 Network and Security Manager Administration Guide...
Страница 910: ...Copyright 2010 Juniper Networks Inc 860 Network and Security Manager Administration Guide...
Страница 995: ...PART 6 Index Index on page 947 945 Copyright 2010 Juniper Networks Inc...
Страница 996: ...Copyright 2010 Juniper Networks Inc 946 Network and Security Manager Administration Guide...