•
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:
./devSvrCli.sh --log2action --filter --log-id 20060315:0-20060317:4294967294
--action --xml --file-path /tmp/newtest.xml
Copyright © 2010, Juniper Networks, Inc.
790
Network and Security Manager Administration Guide
Содержание 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...