Running Reports Using the guiSvrCLI.sh Utility
The
guiSvrCli.sh
utility is located in the /usr/netscreen/GuiSvr/utils directory on the GUI
Server. Use the following syntax to generate reports:
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.
819
Copyright © 2010, Juniper Networks, Inc.
Chapter 20: Reporting
Summary of Contents for NETWORK AND SECURITY MANAGER 2010.4 - ADMININISTRATION GUIDE REV1
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 36: ...Copyright 2010 Juniper Networks Inc xxxvi Network and Security Manager Administration Guide...
Page 52: ...Copyright 2010 Juniper Networks Inc 2 Network and Security Manager Administration Guide...
Page 90: ...Copyright 2010 Juniper Networks Inc 40 Network and Security Manager Administration Guide...
Page 146: ...Copyright 2010 Juniper Networks Inc 96 Network and Security Manager Administration Guide...
Page 236: ...Copyright 2010 Juniper Networks Inc 186 Network and Security Manager Administration Guide...
Page 292: ...Copyright 2010 Juniper Networks Inc 242 Network and Security Manager Administration Guide...
Page 314: ...Copyright 2010 Juniper Networks Inc 264 Network and Security Manager Administration Guide...
Page 368: ...Copyright 2010 Juniper Networks Inc 318 Network and Security Manager Administration Guide...
Page 370: ...Copyright 2010 Juniper Networks Inc 320 Network and Security Manager Administration Guide...
Page 484: ...Copyright 2010 Juniper Networks Inc 434 Network and Security Manager Administration Guide...
Page 584: ...Copyright 2010 Juniper Networks Inc 534 Network and Security Manager Administration Guide...
Page 588: ...Copyright 2010 Juniper Networks Inc 538 Network and Security Manager Administration Guide...
Page 600: ...Copyright 2010 Juniper Networks Inc 550 Network and Security Manager Administration Guide...
Page 678: ...Copyright 2010 Juniper Networks Inc 628 Network and Security Manager Administration Guide...
Page 694: ...Copyright 2010 Juniper Networks Inc 644 Network and Security Manager Administration Guide...
Page 700: ...Copyright 2010 Juniper Networks Inc 650 Network and Security Manager Administration Guide...
Page 706: ...Copyright 2010 Juniper Networks Inc 656 Network and Security Manager Administration Guide...
Page 708: ...Copyright 2010 Juniper Networks Inc 658 Network and Security Manager Administration Guide...
Page 758: ...Copyright 2010 Juniper Networks Inc 708 Network and Security Manager Administration Guide...
Page 788: ...Copyright 2010 Juniper Networks Inc 738 Network and Security Manager Administration Guide...
Page 882: ...Copyright 2010 Juniper Networks Inc 832 Network and Security Manager Administration Guide...
Page 908: ...Copyright 2010 Juniper Networks Inc 858 Network and Security Manager Administration Guide...
Page 918: ...Copyright 2010 Juniper Networks Inc 868 Network and Security Manager Administration Guide...
Page 920: ...Copyright 2010 Juniper Networks Inc 870 Network and Security Manager Administration Guide...
Page 1005: ...PART 6 Index Index on page 957 955 Copyright 2010 Juniper Networks Inc...
Page 1006: ...Copyright 2010 Juniper Networks Inc 956 Network and Security Manager Administration Guide...