ESA want to retreive logs via cli

hi,
i want to retrieve  message tracking logs via cli
Can some body let me know the procedure

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).
From the User Guide, 34-36:
Tracking logs record information about the email operations of AsyncOS. The log messages are a subset of the messages recorded in the mail logs.  The tracking logs are used by the message tracking component to build the message tracking database.
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.
$ ftp myesa
Connected to myesa.
220 myesa.local Cisco IronPort FTP server (V8.0.1) ready
Name (myesa:robsherw): admin
331 Password required.
Password: 
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (XXX,16,6,165,16,243)
150 Opening ASCII mode data connection for file list
drwxrwx---   4 root     config       1024 Apr 25 10:02 configuration
drwxrwx---   2 root     config        512 Jun  2  2013 captures
drwxrwx---   2 root     config        512 Jun  2  2013 diagnostic
drwxrwx---   2 root     log           512 Apr 25 09:58 upgrade_logs
drwxrwx---   2 root     log          1024 Apr 25 09:58 authentication
drwxrwx---   2 root     log           512 Apr 25 09:58 system_logs
drwxrwx---   2 root     log           512 Apr 25 09:58 cli_logs
drwxrwx---   2 root     log           512 Apr 25 09:58 trackerd_logs
drwxrwx---   2 root     log           512 Apr 25 09:58 reportd_logs
drwxrwx---   2 root     log           512 May  2 15:35 slbl_db
drwxrwx---   2 root     log           512 Apr 25 09:58 ftpd_logs
drwxrwx---   2 root     log           512 Apr 25 09:58 euq_logs
drwxrwx---   2 root     log           512 Apr 25 09:59 updater_logs
drwxrwx---   2 root     log           512 Apr 25 09:59 euqgui_logs
drwxrwx---   2 root     log           512 Apr 25 10:01 reportqueryd_logs
drwxrwx---   2 root     log           512 Apr 25 10:02 mail_logs
drwxrwx---   2 root     log           512 Apr 25 10:02 status
drwxrwx---   2 root     log          1024 Apr 25 10:02 asarchive
drwxrwx---   2 root     log           512 Apr 25 10:02 bounces
drwxrwx---   2 root     log           512 Apr 25 10:02 error_logs
drwxrwx---   2 root     log          1024 Apr 25 10:02 avarchive
drwxrwx---   2 root     log           512 Apr 25 10:02 crash_archive
drwxrwx---   2 root     log           512 Apr 25 10:03 sntpd_logs
drwxrwx---   2 root     log           512 Apr 25 09:59 gui_logs
drwxrwx---   2 root     log          1024 Apr 25 10:04 scanning
drwxrwx---   2 root     log           512 Apr 25 10:04 antispam
drwxrwx---   2 root     log           512 Apr 25 10:04 repeng
drwxrwx---   2 root     log           512 Apr 25 10:04 antivirus
drwxrwx---   2 root     log           512 Apr 25 10:04 encryption
drwxrwx---   2 root     log           512 Jan 23 10:55 domain
drwxrwx---   2 root     log          1024 Feb 27 21:21 domain_3
drwxrwx---   2 root     log           512 Jan 23 10:55 domain_2
drwxrwx---   2 root     log           512 Apr 25 09:58 slbld_logs
drwxrwx---   2 root     log           512 May  2 15:35 slbl_isq_db
drwxr-xr-x   3 root     log           512 Feb  6 00:00 periodic_reports
drwxrwx---   2 root     log           512 Apr 25 09:58 snmp_logs
You can then use standard FTP/UNIX commands to navigate through the directory structure, cd mail_logs, for example and mget the files.
Ex.
ftp> cd mail_logs
250 CWD command successful.
ftp> ls
227 Entering Passive Mode (XXX,16,6,165,13,125)
150 Opening ASCII mode data connection for file list
-rw-rw----   2 root     log       1399268 May  6 15:33 mail.current
-rw-rw----   2 root     log       1399268 May  6 15:33 [email protected]
-rw-rw----   1 root     log        145117 Feb 10 11:58 [email protected]
-rw-rw----   1 root     log        167043 Feb 11 12:03 [email protected]
-rw-rw----   1 root     log       1943018 Mar  4 14:14 [email protected]
-rw-rw----   1 root     log       2404319 Feb 27 09:40 [email protected]
-rw-rw----   1 root     log       1822273 Mar 20 11:58 [email protected]
-rw-rw----   1 root     log          1267 Mar  4 14:40 [email protected]
-rw-rw----   1 root     log       3415936 Apr 24 12:55 [email protected]
-rw-rw----   1 root     log         67740 Mar 24 16:48 [email protected]
-rw-rw----   1 root     log         70220 Feb  7 15:29 [email protected]
226 Transfer Complete
ftp> mget mail.@*
mget [email protected] [anpqy?]? a
Prompting off for duration of mget.
227 Entering Passive Mode (XXX,16,6,165,180,210)
150 Opening Binary mode data connection for file '[email protected]'
  2% |*** 
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!)

Similar Messages

  • Is there a way to add, delete or change a FAC code via CLI in CUCM?

    Hi everyone,
    I was wondering if it is possible to add, delete or change a fac code(or client matter) via CLI?
    I know how to do it via BAT tool, but I want to do it via CLI(if it's possible).
    I´m using CUCM 6.
    I'll really appreciate your comments.
    Thanks..
    Dave.

    There are no instructions n how to do this and we do not support doing any kind of changes to the DB via CLI unless instructed by TAC.
    If you still want to do so, read the data dictionary for your CUCM version and work your CLI queries, again, if anything happens and the DB becomes corrupted or you have undesired results, we won't provide any level of support.
    Previously I mentioned which are the supported methods for adding elements to the DB, I encourage you to use any of them.
    Sent from Cisco Technical Support iPad App

  • Sort order from NAT rules via CLI

    Hi all,
    im a newbie here and i have my first question. Hope you can help me to find a solution.
    Is there a way to change the order of NAT statements via CLI in Cisco ASA IOS 9.1 ?
    By ASDM i can change the order and bring them up and down to the place where i must have them, but i found no way to do this via CLI.
    Any Ideas?
    Greetings from germany
    Marco

    You would need to remove the NAT statements and then re-add them in the order you want them to appear.  The ASDM does it the same way but makes it easier by you just having to move the NAT rule to where you want it and apply...the ASDM does the rest.  If you set your ASDM to show the commands before they are applied you will see how the ASDM does this.  The setting is under Tool > Preferences and select Preview commands before sending them to the device
    Please remember to select a correct answer and rate helpful posts

  • Device reboot via CLI template in PI1.3

    Hi together,
    Is there any possibility to force a device (e.g. a switch/router) reload via Prime Infrastructure 1.3?
    I tried using a simple reload command via cli template, but it doesn't work for me.
    Thanks for your answers.
    Regards
    Sebastian

    Did you get anywhere with this?  I want to do something similar, configure just some port, not all ports.  Prime seems to work by deploying templates to device groups, but I want it to deploy by device and port groups.  Sadly it seems port groups are just monitoring filters only.
    There only appears to be 17 DB variables in Prime at the moment and none of them are interface description.
    I don't know if you can edit the CLITemplateDbVariablesQuery.properties file to add some more.
    I don't understand why the port of port groups isn't available to configuration deployment.

  • How to deactivate logging via brtools

    Hello
    I wander how to deactivate logging via brtools(640)
    regards

    hello,
    Can u pl specify by logging what do u exactly mean?
    I want to know if u meant to prevent users from logging to the database
    or u want to deactivate the archivelog mode.
    In the first if u want no user interaction on the database then take the database to mount mode instead of open mode by executing the following SQL
    ALTERDATABASE MOUNT;
    In the second case, if u want to turn the archivelog mode then do what VAle has suggested. But taking the database to nolog mode has a lot of serious demerits in the context to recovery and restoration of database in case of a crash. U wont be able to get the archive logfiles as the redo logfiles are over written in case of the database is in nolog mode.
    So think twice before u take the database into nologmode.
    Regards

  • What is wrong with my shipping address? I want to order pictures via apple store with iPhoto. Apple Id and payment seem ok. My current and correct shipping address appears with red letters. Why and what to do?

    What is wrong with my shipping address? I want to order pictures via apple store with iPhoto. Apple Id and payment seem ok. My current and correct shipping address appears with red letters. Why and what to do?
    Maybe this is relevant: I bought iphoto from the German apple store but I now live in Italy. I have tried German credit card with German invoicing address and Italian shipping address. And I have tried Italian credit card with Italian invoicing address and Italian shipping address. The phenomenon is the same: shipping address appears in red and I am asked to fill in the mandatory fields (which turn red whatever I enter).

    KarinavD,
    what is the setting for the Print Products Store in the Advanced Tab of the iPhoto Preferences?
    The country you select there has to match the billing address. And your billing address should match the country of your AppleID and credit card used with the AppleID.
    Regards
    Léonie

  • Ps cs6 on mac. since installing yosemite, when working on an image if i want to change tool, via shortcut of wacom pen click, i now have to click on the image title bar, how can i fix this please?

    ps cs6 on mac. since installing yosemite, when working on an image if i want to change tool, via shortcut or wacom pen click, i now have to click on the image title bar, how can i fix this ?

    @Naiks, having suffered through unsuccessful synching attempts for Calendar and Contacts myself, l would suggest you try the following:
    UNINSTALL iCloud control panel from your PC. Seems silly, but do it.
    Go into Outlook, and look at the very top menu. Click FILE, then ACCOUNT SETTINGS, then click the popup box.
    You will see a list of all your email accounts. Make sure that ONE of them has a checkmark against it. If not, select the account your want as your default, and click "set as default.
    Exit out of Outlook and reboot your machine.
    Now reinstall iCloud, check CALENDAR and CONTACTS, and do as instructed when prompted.
    Reboot for good luck and now launch OUTLOOK. All that remains is to locate your iCloud Contacts and Calendar files, and make them your default.
    IMPORTANT: Don't panic if you can't find your contacts -- they're there. Click CONTACTS and you'll see you have several available contact files. Locate the one label "iCloud" in grey type. Right-click on it, select PROPERTIES, then click the Outlook Address Book tab. Check the box that says something like "Make this my default Outlook Address Book." Keep clicking "apply" and "okay" until you've exited out of the dialog box maze.
    You may have to do something similar with your Calendar files. I dd not, but if you need to, do it.
    Everything should now sync pretty seamlessly.
    I didn't have the exact same problem as you, but my dilemma was close enough. Good luck!
    Arthur P. Johnson

  • Email logs me out when even thouh I want to stay logged in

    When i log in to email after I'm done it reverts to another user and i have to log in again although I want to stay logged in at all times

    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]

  • I forgot Asked Questions safety and I want to be retrieved via e-mail

    I forgot Asked Questions safety and I want to be retrieved via e-mail account

    Hello there, resoooon.
    The following Knowledge Base article goes over what to do if you don't remember your security questions:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I am a sole proprietor business owner (work from home graphic designer) and I have a customer who wants to pay me via Apple pay. Can I accept her transaction? How do I get that rolling?

    I am a sole proprietor business owner (work from home graphic designer) and I have a customer who wants to pay me via Apple pay. Can I accept her transaction? How do I get that rolling?

    Apple Pay: Merchants FAQ - Apple Support

  • Unable to login to ISE 1.2 via Cli

    Hi,
    I have a weird problem; after changing the default admin password on cli and rebooting the unit; i am no longer able to login via cli. Instead I get the following message:
    % Error: Unable to launch ADE-OS shell. Disk full.
    The ISE is running 1.2 with patch 3 installed.
    If I try to access via web, it is running normally. I was wondering if anyone encounter such issue and any suggestions on how to fix it?
    Any suggestion is appreciated.
    Thanks.

    Hi ,
    you may be probably hitting one of these two defects.
    CSCuj52520 or
    CSCuj97832.
    There are workarounds for these two defects and initially we need to know if it is the problem due to Admin user previleges corruption or issue with MNT DB growing in size and occupying the entire tablespace.
    I suspect this could be a Admin privilege corruption and can be fixed with Rescue ISO image.
    Can you please raise SR with TAC who can provide you with Rescue ISO image and help you in implementing the workaround.

  • Cannot view workflow log via Services for Object Workflow Overview

    We recently had an upgrade of R3/ECC and discovered a new issue.  For some reason we can no longer view workflow log via Services for Object > Workflow Overview for Material Master (transaction MM03).  We get the message "There are no workflows that have already worked with this object".  However, we have confirmed via SWEL and other t-codes that the workflow and log do exist.  This seems to be the only object we have this issue for after the upgrade.
    Anyone know what issue is and how to fix?   Or at least path to config in SPRO for "generic object services" where we can see if anything changed via upgrade for this object?
    Thanks,
    Matt
    Edited by: Matthew Huth on Apr 22, 2008 9:23 PM

    Found the solution.  See OSS note 553246.  This has been tested and works for us.   -Matt
    Note 553246
    Summary
    Symptom
    In the material master, the system no longer displays the attachments for the material or workflow items in the Generic Object Services.
    Other terms
    MM01, MM02, MM03
    Reason and Prerequisites
    As of Release 4.6B, business object BUS1001006 is valid for the material master. Until you have implemented Note 452424, the Generic Object Services is still published for the old BUS1001 business object. After implementing the note, all attachments, relationships, notes and workflow items that are assigned to business object BUS1001 are no longer displayed.
    Instead, all new attachments are assigned to business object BUS1001006. As a result, attachments cannot exist for both systems.
    For workflow items, the assignment to the business object occurs in the respective tasks. It may be very time consuming to convert the business object, depending on whether an individual subtype (assigned to BUS1001) is created.
    In other words, after you implement the note, the workflow items for business object BUS1001 can no longer be displayed in the material master.
    Solution
    With the following correction you can call the Generic Object Services for both business objects. When it is called, the system displays a dialog box in which you can choose the required business object, that is, BUS1001 ('Material') or BUS1001006 ('Standard material').
    This correction is delivered as a modification supported by SAP only. This is because the additional option means that attachments can be maintained as required in either of the business objects and users may therefore require extra training.
    However, the corrections enable you to display attachments and workflow items for both business objects without the need for a major conversion; this means that you do not get the impression that these have been lost.
    Alternatively, as of Release 4.70 (or Basis 6.20) you can, without making a modification, implement method ADD_OBJECTS of BAdI GOS_MULT_PUBLISH for filter attribute WF_OVERVIEW ('Workflow overview'), SRELATIONS ('Relationships') and VIEW_ATTA ('Attachment list'). The implementation should be similar to the following:
    METHOD if_ex_gos_mult_publish~add_objects .
      DATA:
        ls_lporb TYPE sibflporb.
      READ TABLE ct_lporb INTO ls_lporb INDEX 1.
      if ls_lporb-typeid = 'BUS1001006'.
        ls_lporb-typeid = 'BUS1001'.
        append ls_lporb to ct_lporb.
      endif.
    endmethod.

  • How to view the Syslog Application logs in CLI

    On CallManager 6.1.x, how do we view the Application Logs in the Syslog Viewer using the CLI?  I know how to view the traces but not the Application or System logs in CLI.  My RTMT to a customer is being blocked so I need to use the CLI.  Thanks.

    Event Viewer-Application Log = /var/log/active/syslog/CiscoSyslog.*
    Event Viewer-System Log = /var/log/active/syslog/messages.*
    From CLI:
    To list application logs:
    file list activelog syslog/CiscoSyslog.* date detail
    To list system logs:
    file list activelog syslog/messages.* date detail
    To view a specific application log:
    file view activelog syslog/CiscoSyslog.1
    To view a specific system log:
    file view activelog syslog/messages.1
    http://htluo.blogspot.com
    Michael

  • I hit the purchase button in error and it started to download a book I did not want, I was logged into my account, I paused the download. How do I stop it and not get charged?

    I hit the purchase button in error on a book I did not want, I was logged onto my account so the book started to download, I paused the download. How do I stop it altogether and not get charged?

    It says   at the top      under Redeem after I touched that:
              $14.73
    Account: [email protected]   (my account name)
    Enter your Gift Card or Download Coad

  • When i log out from my apple id on iphone 5 he wants me to log out from other older apple id, but i dont know password, what should i do?

    when i log out from my apple id on iphone 5 he wants me to log out from other older apple id, but i dont know password, what should i do?

    Hi Tanya Zaytseva,
    Welcome to the Apple Support Communities!
    If you would like to reset the password for your Apple ID, please follow the steps located in the attached article. 
    If you forgot your Apple ID password - Apple Support
    Cheers,
    Joe

Maybe you are looking for