export NSMUSER=global/<user name>; export NSMPASSWD=<password>;
/usr/netscreen/GuiSvr/utils/guiSvrCli.sh --generate-reports --report global:<Report
Folder>:"\” report name\” " --script ftp.sh
The export NSMUSER and NSMPASSWORD statements set the username and password
used to generate the report. This user must have appropriate rights on the NSM
management system. You need to create a specific account for this purpose.
You can generate any of the predefined reports by specifying "system" in the <Report
Folder> field, or any user-created report other than those defined in "My Reports" by
specifying "shared" in the <Report Folder> field. You must reference the report with the
full domain path, using a colon to separate domain elements and the report folder.
The script parameter refers to the script, located in the /usr/netscreen/GuiSvr/var/scripts
directory, that is run on completion of the report generation.
Creating and Editing Action Scripts
NOTE:
Sample scripts enabling you to e-mail and FTP the report results are available
in
/usr/netscreen/GuiSvr/lib/scripts
for your convenience. To use these scripts, we
recommend that you first copy them to
/usr/netscreen/GuiSvr/var/scripts
, and then
change the permissions on the scripts so that they are both writable and executable.
You can then customize the scripts to your needs.
Transferring Reports to an FTP Server
The
ftp.sh
script is used to transfer the report to an FTP server. The following portion of
the script needs to be edited:
########################################################################
# CONFIGURABLE PARAMETERS
########################################################################
# Remote hostname or IP address
remote_host="localhost"
# login for ftp account
userid="ftp"
# password for ftp account
passwd="ftp"
# pick reports from this directory prefix
local_dir_prefix="/usr/netscreen/GuiSvr/var"
E-mailing Reports
To e-mail reports, you must configure two scripts:
•
email.sh
—This script is called in the
guiSvrCli.sh
utility and defines how the reports are
to be included in the e-mail message
•
Email.pl
—This script is called by
email.sh
and configures the actual SMTP parameters.
You can attach or embed the report in the e-mail by uncommenting a specific line in
email.sh
. You can also deliver multiple reports in separate mail messages or in a single
collated one.
#########################################################################
# CODE
#########################################################################
dir=`dirname $0`
809
Copyright © 2010, Juniper Networks, Inc.
Chapter 20: Reporting
Содержание 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...