05-08-2014 03:24 AM
hi,
i want to retrieve message tracking logs via cli
Can some body let me know the procedure
05-08-2014 05:27 AM
Retrieve as in FTP copy them? Or retrieve as in setup syslog to push the logs off to a local syslog server?
Message tracking cannot be retrieved from CLI. Only the mail_logs --- which are used to compile the message tracking DB on the appliance(s).
If you are trying to get the mail_logs...
You'll need to configure your logs via CLI: 'logconfig' or GUI: System Administration -> Log Subscriptions. Edit, or suggested to create a new/copy of the log you are needing off-appliance, and set the push as needed per your environment ---
From the User Guide, 34-6:
Log Retrieval Methods
Log files can be retrieved based upon one of the following file transfer protocols. You set the protocol while creating or editing the log subscription in the GUI or via the logconfig command during the log subscription process.
Log Transfer Protocols
Manually Download
This method lets you access log files at any time by clicking a link to the log directory on the Log Subscriptions page, then clicking the log file to access. Depending on your browser, you can view the file in a browser window, or open or save it as a text file. This method uses the HTTP(S) protocol and is the default retrieval method.
NoteUsing this method, you cannot retrieve logs for any computer in a cluster, regardless of level (machine, group, or cluster), even if you specify this method in the CLI.
FTP Push
This method periodically pushes log files to an FTP server on a remote computer. The subscription requires a username, password, and destination directory on the remote computer. Log files are transferred based on a rollover schedule set by you.
SCP Push
This method periodically pushes log files to an SCP server on a remote computer. This method requires an SSH SCP server on a remote computer using the SSH1 or SSH2 protocol. The subscription requires a username, SSH key, and destination directory on the remote computer. Log files are transferred based on a rollover schedule set by you.
Syslog Push
This method sends log messages to a remote syslog server. This method conforms to RFC 3164. You must submit a hostname for the syslog server and choose to use either UDP or TCP for log transmission. The port used is 514. A facility can be selected for the log; however, a default for the log type is pre-selected in the dropdown menu. Only text-based logs can be transferred using syslog push.
If you are wanting to just copy over a specific set of logs for a one-time review or to provide... then, assure that FTP is enabled on the interface. Then, using standard CLI from your desktop - ftp <IP/hostname>. You'll be in the /configuration directory when you finish authenticating onto your appliance. After - just simply use standard FTP commands to retrieve the log files you are after.
Ex.
And so it will copy those off...
Once complete - the files will now be in the directory on your local desktop.
I hope this helps!
-Robert
(*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide