Grep command - binary file

Unanswered Question
Aug 12th, 2009

When using the grep command for the mail_logs file I sometimes receive the message "Binary file (standard input) matches."

This does not always happen. Sometimes I'm able to use grep and receive the expected results. The problem seems to come and go.

Doing it via the command line or stepping through the setup (i.e. grep > 14 (mail_logs) > expression > ...) will show the same "Binary file (standard input) matches" message.

Thank you for any help ahead of time.

(btw - this is for a C350)

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Andrew Wurster Wed, 08/12/2009 - 18:02

that sounds weird.

can you include a 'version' output?
can you post the full CLI output of what your doing?
could you also try a one-liner like "grep 'regexp' mail_logs" instead?

thanks!

andrew

MPotter_ironport Wed, 08/12/2009 - 18:08

Current Version
===============
Model: C350
Version: 6.5.2-101
Build Date: 2009-05-28
Install Date: 2009-06-09 17:46:52
Serial #: xxxxxxxxxxxxxx
BIOS: 1.2.1I
RAID: 1.00.01-0088, MT23, 1.02-007
RAID Status: Optimal
RAID Type: 1
BMC: 1.27


************

> grep

Currently configured logs:
1. "QMaticLog" Type: "Domain Debug Logs" Retrieval: FTP Poll
2. "antispam" Type: "Anti-Spam Logs" Retrieval: FTP Poll
3. "antivirus" Type: "Anti-Virus Logs" Retrieval: FTP Poll
4. "asarchive" Type: "Anti-Spam Archive" Retrieval: FTP Poll
5. "authentication" Type: "Authentication Logs" Retrieval: FTP Poll
6. "avarchive" Type: "Anti-Virus Archive" Retrieval: FTP Poll
7. "bounces" Type: "Bounce Logs" Retrieval: FTP Poll
8. "cli_logs" Type: "CLI Audit Logs" Retrieval: FTP Poll
9. "error_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll
10. "euq_logs" Type: "IronPort Spam Quarantine Logs" Retrieval: FTP Poll
11. "euqgui_logs" Type: "IronPort Spam Quarantine GUI Logs" Retrieval: FTP Poll
12. "ftpd_logs" Type: "FTP Server Logs" Retrieval: FTP Poll
13. "gui_logs" Type: "HTTP Logs" Retrieval: FTP Poll
14. "mail_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll
15. "reportd_logs" Type: "Reporting Logs" Retrieval: FTP Poll
16. "reportqueryd_logs" Type: "Reporting Query Logs" Retrieval: FTP Poll
17. "scanning" Type: "Scanning Logs" Retrieval: FTP Poll
18. "slbld_logs" Type: "Safe/Block Lists Logs" Retrieval: FTP Poll
19. "sntpd_logs" Type: "NTP logs" Retrieval: FTP Poll
20. "status" Type: "Status Logs" Retrieval: FTP Poll
21. "system_logs" Type: "System Logs" Retrieval: FTP Poll
22. "trackerd_logs" Type: "Tracking Logs" Retrieval: FTP Poll
23. "updater_logs" Type: "Updater Logs" Retrieval: FTP Poll
Enter the number of the log you wish to grep.
[]> 14

Enter the regular expression to grep.
[]> 23083882

Do you want this search to be case insensitive? [Y]>

Do you want to tail the logs? [N]>

Do you want to paginate the output? [N]>

Binary file (standard input) matches

************


> grep 23083882 mail_logs

Binary file (standard input) matches


************

Hopefully this is everything you were looking for. If not, let me know.

Andrew Wurster Wed, 08/12/2009 - 18:16

this is defect ID 38759 which is still open it seems. for now, can you please use 'findevent' and/or message tracking as a workaround?

i'd strongly encourage a support case and remote access tunnel though so we can add a bug sighting to your company and try to fix/remove any corrupt log files.

cheers!

andrew

Actions

This Discussion