•
Skip. Directs the system to skip any log for which the script had an error.
•
Retry. Directs the system to try the action again for the same log. When using
this filter, you must also specify:
•
Retry Count. Specifies the maximum number of retries to attempt before moving
on to the next log record.
•
Retry Interval (in seconds). Specifies the number of seconds until the action is
tried again.
Using the log2action Utility to Export Logs
You can also use a command line utility on the Device Server to export logs. To export
to XML, CSV, SNMP, Syslog, e-mail, or script format using the
log2action
utility:
1.
Log in to the NSM Device Server as root.
2.
Change to the utility directory by typing:
cd /usr/netscreen/DevSvr/utils
.
3.
Specify the common filters, format, and format-specific filters for the format you
want to export to:
sh devSvrCli.sh --log2action<
common_filters
>--action
<format><format_options>
The
log2action
utility exports all log records to the specified format. After executing the
action, the system generates an exit status code of 0 (no errors) or 1 (errors).
The following sections detail common filters, actions, and required and optional
format-specific filters.
Using Filters
The
log2action
utility generates data for a maximum of 100,000 logs.
NOTE:
If you want to generate more than 100,000 logs, use the
matches-to-return option to specify the number of logs that you want.
Because of the large volume of logs potentially generated, it is highly recommended that
you specify filtering criteria when using the
log2action
utility. Without filtering, the action
report generates data from the earliest date in the log database and stops providing
output after 100,000 logs. In this case, it is possible that you may not get the action
output of your most recent data. Specifying a time filter is recommended in this situation.
Using Time Filters
For example, if you wanted to view data in the logs of 20060317, run the following
command:
./devSvrCli.sh --log2action --filter --log-id 20060317:0-20060317:4294967294 --action --xml
--file-path /tmp/newtest.xml
If you wanted to view data for all logs from 2006/03/15 to 2006/03/17, run the following
command:
Copyright © 2010, Juniper Networks, Inc.
800
Network and Security Manager Administration Guide
Содержание 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...