Useful grep commands

Hello.
I am compiling a list of the grep commands I use in everyday EBS support related tasks. I have posted them below. Would anyone like to add any others??
process check
check of all Midle Tier services:
ps –fu appltest | grep –i TEST | wc -l
forms:
$ps -ef | grep f60webmx | grep VIS
Concurrent Mangers:
ps -fu appldev | grep FNDLIBR
Apache
$ps -ef | grep httpd| grep vis
For more information about a process 2342:
$ps -ef | grep 2342
workers process ID:
ps -a | grep adworker
Listing processes owned by ias
ps -ef|grep ias
review patch log:
egrep -i 'error|warn|fail' <log_file>
DA

Dan,
Why you need to list those commands?
With the help of "ps -ef" command you can filter any process you need to check (just get the process name).
Thanks,
Hussein

Similar Messages

  • Is there a way to give two different regular expressions in a Grep command?

    I am trying to search message logs from CLI. My search query which involves a regular expression is giving thousands of results. We need to further filter the results using another regular expression. Please let me know if we can put two regular expressions in the search query.
    Below is how I use grep command: Can I use multiple regular expression separated by a "|" (pipe) symbol
    Enter the regular expression to grep.
    []> MID 123456

    No - unfortunately - from the CLI on the ESA/SMA - the 'grep' command is not as intuitive as the unix/linux 'grep'.  You would need to push logs off appliance, and then take advantage of an external OS in order to parse through the logs as definitively needed.
    -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!)

  • Grep command in Solaris 10

    Hi all,
    I linux i can use this command
    grep -C 3 err /u01/oracle/admin/ORCL/bdump/alert_ORCL.log
    How can i do this in Solaris 10?
    Thanks in advance!
    Dan.

    This work perfectly!
    -bash-3.00$ /usr/sfw/bin/ggrep -C 3 err /u01/oracle/admin/ORCL/bdump/alert_ORCL.log
    Thank you all!
    Dân
    Edited by: Dan on Jan 9, 2012 10:36 PM

  • A Unix question: grep command

    Hi all,
    I have a directory which contains more directories, and each directory has more directories inside, which in turn may or may not contain Java files. I need to use the grep command in the way that from the first directory goes into the directories recursively, finds the Java files and tell me what files have the PATTERN= "Basic Import Validation".
    I used the grep like this, but guess its wrong since haven't received any response so far. Can sb. please tell me if I've used the command correctly or how should I change it? Any help is greatly appreciated.
    dir> grep -r --include="Basic Import Validation" *.java                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I gues the reason this isn't working for you isthat
    -r means "process all subdirectories of any
    directories listed in the command line args."
    grep never sees the *.java that you supply. Theshell
    grabs that and expands it to list all the .javafiles
    in the pwd.If you can, would you please explain a little more,
    what you meant by above?
    grep whatever *.java When you type that command, your shell (bash, zsh, ksh, tcsh, etc.) is the program that receives that string on its standard input--like Java's System.in. The shell sees *.java and expands it into a list of all the .java files in the current directory. Then the shell invokes grep, and passes on the list of those java files.
    But the list of .java files in the pwd has nothing to do with any java files that might be in subdirs.
    If you use the -r arg, it seems that, in the list of "files" (where you put *.java), if any of those "files" are in fact directories, then -r means to look in files in that dir and its subdirs, rather than treating that arg as a file to examine.
    So you'd put . (dot) as your current dir, and then use the --include to tell grep which files to process and which to ignore.
    I'm sure about the shell expanding *.java. I'm not completely sure about my interpretation of -r and --include, but I'm pretty confident that's right.
    As you said, the way I used grep, didn't return any
    result. Your solution however, gave me results and
    found the Java files containing the PATTERN. Thanks a
    lot.You're welcome.
    If you're still interested, it's probably worth trying out my slight modification to your original solution. If it works, it's a bit cleaner and simpler.

  • Grep Command in Linux

    Hi all,
    I having problem getting the output of grep command in Linux (Red Hat 9.0).
    At the same time, I am able to get the output of cat command.
    Using the output of cat command, I am writing it to a text file and then in another process using grep I am extracting particular line from the text file.
    To get the Process Output I am using a code from http://hacks.oreilly.com/pub/h/1092#thread.
    Below is my code.
    public void getUSBInfo() {     
           try{
                  String catCommand =  "cat /proc/bus/usb/devices";
                  System.out.println("catCommand is : "+catCommand);
                  Process p = Runtime.getRuntime().exec(catCommand);
                  usbInfoBuffer = new StringBuffer("");
                  InputStream inStream = p.getInputStream();
                  new InputStreamHandler( usbInfoBuffer, inStream ); 
                                  // InputStreamHandler is the class used to read the console output.
                  StringBuffer errBuffer = new StringBuffer();
                  InputStream errStream = p.getErrorStream();
                  new InputStreamHandler( errBuffer , errStream );
                  p.waitFor();
                  catCommandOutput = usbInfoBuffer.toString();
                  System.out.println("USB Info : " +catCommandOutput);
                  String fileCat ="/EthicsPoint/usbInfo.txt";
                  File catCommandOutputFile =  new File(fileCat);
                  boolean filesuccess = catCommandOutputFile.createNewFile();
                  setContents(catCommandOutputFile,catCommandOutput);
                  extractUSBInfo();
                  }catch(Exception e) {
                 JOptionPane.showMessageDialog(null," Exception occured executing Native Method..catCommand.."                                         ,epname,JOptionPane.ERROR_MESSAGE);                                    System.out.println("File Exception No 6" +e);
    public void extractUSBInfo() {
         try {
              String filename = " /EthicsPoint/usbInfo.txt";
              String grepCommand = "grep \"P:\\|S:\""+filename ;
               //String[] grepCommand = new String[]{"grep", "\"P:\\|S:\"", "/EthicsPoint/usbInfo.txt"};
              Process p = Runtime.getRuntime().exec(grepCommand);
              usbExtractedInfoBuffer = new StringBuffer("");
              InputStream inStream = p.getInputStream();
              new InputStreamHandler( usbExtractedInfoBuffer, inStream );
              StringBuffer errBuffer = new StringBuffer();
              InputStream errStream = p.getErrorStream();
              new InputStreamHandler( errBuffer , errStream );
              p.waitFor();
              String Output = usbExtractedInfoBuffer.toString();
              System.out.println("grepCommand is    : " +grepCommand);
              System.out.println("Searched USB Info : " +Output);
          }catch(Exception e) {
         JOptionPane.showMessageDialog(null," Exception occured executing Native Method..grepCommand..."                               ,epname,JOptionPane.ERROR_MESSAGE);                                    System.out.println("File Exception No 7" +e);
          }I am not getting any IOException. The output of System.out.println("Searched USB Info : " +Output); is blank.
    If I try shell> grep "P:\|S:" /EthicsPoint/usbInfo.txt, I get the desired output.
    What could be the reason ? While using cat command I am getting the output , but grep command is
    returning blank. I even tried String array[] for exec() command, but still get blank.
    Where and what I am doing wrong ?
    Thanks in advance.
    Regards,
    Jay.

    Hi asjf,
    Thanks a lot... The problem is finally solved.
    String exeCommand = "grep P:\\|S: "+filename; I removed the quotes and it worked. But if I
    remove backslash for the pipe symbol nothing happens..as I get return value of 1.
    Output after removing quotes :
    exeCommand is : grep P:\|S:  /EthicsPoint/usbInfo.txt
    Exit Value is : 0
    USB Info : P:  Vendor=0000 ProdID=0000 Rev= 0.00
    S:  Product=USB OHCI Root Hub
    S:  SerialNumber=ce84b000
    P:  Vendor=0000 ProdID=0000 Rev= 0.00
    S:  Product=USB OHCI Root Hub
    S:  SerialNumber=ce849000But I have noticed another problem. If I execute the aplication number of times, eventhough
    the exit value is 0, USB Info : is blank. This happens sometimes. Sometimes I get the correct output.
    What could be the reason ?
    Thanks to you and all who have replied to my queries....Thanks a lot.....Really appreciate the time and effort.
    Regards,
    Jay.

  • How can I use this command?

    Why can't I use the command fdisk on Fedora8?
    [root@localhost SCOTT]# fdisk -l
    bash: fdisk: command not found

    [root@fedora ~]# ls /sbin/fdisk -l
    -rwxr-xr-x 1 root root 94924 2007-10-16 16:48 /sbin/fdisk
    [root@fedora ~]# /sbin/fdisk
    Usage: fdisk [-l] [-b SSZ] [-u] device
    E.g.: fdisk /dev/hda (for the first IDE disk)
    or: fdisk /dev/sdc (for the third SCSI disk)
    or: fdisk /dev/eda (for the first PS/2 ESDI drive)
    or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
    [root@fedora ~]# rpm -qa | grep util-linux
    util-linux-ng-2.13-3.fc8
    [root@fedora ~]#

  • Is there any command in windows batch file similar to the unix grep command

    Hi,
    I have a batch file which will return status of the Database to a file ex: "OPEN". Now I want to read this output file and check for the "OPEN" string from another batch file. any suggestions?. This is similar to "grep" command in unix. I want this to be done in windows batch file.
    This is my actual batch file
    rem -- Description: Check whether the Database is UP
    rem -- Usage:
    rem -- ORACLE_SID is input parameter for the file
    rem --
    rem --start of batch file
    @echo off
    set ORACLE_SID=%1
    echo connect plp/ltd1plp@%1
    echo set cmdsep on
    echo set cmdsep '"'; --"
    echo set term on
    echo spool c:/status_log.log
    echo select status from v$instance;
    echo spool off
    ) | sqlplus /nolog
    rem --end batch file
    Thanks.

    The same link from [google cache|http://209.85.229.132/search?q=cache:EJrm9tgj0a8J:www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/find.mspx+windows+find&cd=1&hl=en&ct=clnk&client=opera]. Also you can use help:
    find /?

  • How do I use the commands to start and restart the jmqbroker normally?

    How do I use the commands to start and restart the jmqbroker normally?
    Because I have tried to use "jmqcmd shutdown bkr" and then tried to type
    "jmqbroker" to start up. My screen hangs up and seems that the process
    hangs up. The message is
    [28/Jun/2002:18:29:07 GMT+08:00] [B1060]: Loading persistent data...
    [28/Jun/2002:18:29:08 GMT+08:00] [B1039]: Broker "jmqbroker" ready.
    The prompt is hanged until I press CTRL-C.
    Then I got the following message:
    [28/Jun/2002:18:32:07 GMT+08:00] [B1047]: Shutting down broker...
    [28/Jun/2002:18:32:07 GMT+08:00] [B1077]: Broadcast good-bye to all
    connections ....
    [28/Jun/2002:18:32:07 GMT+08:00] [B1078] Flushing good-bye messages
    [28/Jun/2002:18:32:07 GMT+08:00] [B1056] Cleaning up persistent
    store...
    [28/Jun/2002:18:32:07 GMT+08:00] proceessing 0 messages and cleaning
    up 0 files...
    [28/Jun/2002:18:32:07 GMT+08:00] [B1063] Done
    [28/Jun/2002:18:32:07 GMT+08:00] [B1048]: Shutdown of broker complete.
    Then, I use jmqadmin to invoke the console, I can start the broker
    again, it gives me
    Error encountered while connecting to the broker: "MyBroker":
    Broker Host: 'localhost'
    Primary Port: '7676'
    [C4003]: Error occurred on connection creation, - caught
    javax.jms.JMSException
    Please verify that there is a broker running on the specified host and
    port.
    I used ps -def | grep jmq there is no process anymore.
    Is it a bug? Would somebody have any idea on what went wrong?

    'jmqbroker' is the command to start a broker.
    When you type 'jmqbroker' in a command window,
    unless you put it in the background, the shell
    prompt won't return until the broker is shutdown.
    So when you see 'Broker "jmqbroker" ready.', it tells
    you that the broker is running and is ready.
    When you CTRL-C the process, it has the same effect
    as using jmqcmd to shutdown the broker. And so after that,
    there's no jmq processes running since you have just
    shutdown the broker.
    Remember that the jmqcmd/jmqadmin 'restart' command is to
    restart an already running broker. jmcmd/jmqadmin does
    not support starting a new broker instance.
    If you are using csh, end the jmqcmd command with an ampersand ("&")
    to have the broker running in the background. An alternative is to
    stop the process with Ctrl-Z then input the command "bg" to have that
    process resumed in the background.
    The problem with not being able to start a broker using the
    administration console is a documented limitation of the product that
    Yvonne also mentioned. Check the Administrator's Guide for that.

  • Getting Asset Name and ID using postgreSQL command line

    Hi,
    I`m excited by the possibility of getting/putting Annotations from/to FCSvr from command:
    /Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "select * from pxtcmdvalue;"
    Using grep and awk (print) it`s possible to extract individual fields. But first I need to identify
    Assets Names with Assets ID`s.
    Anyone know how to get from command line an asset name from ID and vice versa?
    In other words: If I grep for the ID and awk for the 3, 4, and 5 column I can extract TCIN, TCOUT and the Annotations from that Asset ID. But I want to know what Asset is and write to a text file with the asset name and not the asset ID.
    The syntax would be more or less like this:
    For each ID on the pxtcmdvalue (first column is entityID) get from FCSvr (or from db) the AssetName the columns with TCIN, TCOUT and Value of Annotations. Put (append if more than one entries) this on a tabulated text file named after AssetName.
    I`m sorry for not being so "program write" like, but I try! ahaah
    Thanks!

    Hey guys,
    Thank you very much for all this help! Especially fbm! Thanks a lot!
    Regarding inserting into annotation I could manage to do that , as I`ve said, I`m stubborn! hehehehe
    with this command you can insert an annotation (ONE with each command) into a clip:
    /Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "INSERT INTO pxtcmdvalue VALUES (72, 1527, '00:35:41;09/(30000,1001)', '00:36:28;24/(30000,1001)', 'if works I`ll be very happy!', 1, '2009-03-15 19:31:15.839795-03');"
    Of course, remembering to change all things inside single quotes.
    The only catch is that you`ll have to know the entityid for the asset in question. Of course, looking into fbm post above it`s possible to "translate" the entityid into the ASSETID, but I don`t know how to parse this inside the parentheses. Maybe letting the "72" (in my case) entityid as "entityid" and outside the parentheses translating with INNER JOIN???
    We`re almost there!! I`m glad that this is here, opened to every one that wants to adventure into FCSRV "dark" side!
    Just remember, this is NOT supported by APPLE! I`m testing this on a test FCSRV installed on a mini (yes I could "hack" into the "detecting hardware" and disable to manage to install).
    Just one more thing: I`ve read somewhere that the pxatommap table has ALL that FCSRV could provide (and of course yours custom md). I`m trying to get ALL this fields to each asset. I`ve tried the command:
    /Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "SELECT * FROM pxatommap INNER JOIN pxmdvalue ON pxatommap.id = pxmdvalue.fieldid"
    But it`s very messy and it`s not for one asset.
    Thanks again you all that took the time to post to help others like me!
    Regards!

  • Search box text used by command-F search - can this be changed?

    I started using Safari much more in Leopard than I previously did before. One annoying thing I have discovered is that if I use the search box to search the Internet, whatever I entered now becomes the search text when I use command-g (Find again) or command-f (Find).
    This is not the behavior I am accustomed to with Firefox. In Firefox using the search box has no affect on the text used by command-f (Find) and command-g (Find again).
    I have looked through the preferences and options but haven't found anyway to change Safari's behavior. Do you have a solution?

    Hi Duane,
    I must admit you have me stumped as well. I noticed that command-f also picks up what I last entered in Spotlight and the search text is retained across Safari restarts.
    For the life of me I can't see where it's picking this information from. I even searched all my user files via find/grep to see where it was storing it between starts - nothing found...
    The only good thing about the 'weirdness' is that the search text is selected by default so you can immediately overwrite it.
    Very odd...

  • Ignore Line break in find text using grep

    Hi everyone!
    I need to find the text in document using grep.
    find text for :
    Xereptatiuria que alique volo eium qui dolupid ut
    voluptatiam earum saestorepel iuscit im quas et modisimodit.
    The above sentence cannot having line breaks. But document having multiple line breaks.
    so, please to give a tip to find the text using grep.
    I am not excepting this type of result by following.
    Xereptatiuriaque\n alique volo\neium qui dolupid ut\r voluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.  ------------this is not.
    Any another way to find (i.e)., ignore the line break
    simply like this, 
    (?s:Xereptatiuria que alique volo eium qui dolupid ut
    voluptatiam earum saestorepel iuscit im quas et modisimodit.)      --------- the line break wherever it is found,ignore line break in single command.
    Thanks by,
    John Peter.

    johnp45247251,
    what do you really want to do?
    Like pkahrel in your other thread Find Grep And Ignore the line break said:
    pkahrel schrieb:
    You're a moving target: you change your question in each post. Do yourself a favour and go and read up on GREP.
    johnp45247251, one question:
    Could it be possible, that you doesn't understand correctly, how Grep really works?
    <edit by pixxxel schubser>
    Furthermore your example text is different to your screenshot. Your text is:
    »Xereptatiuriaque\n alique volo\neium qui dolupid ut\r voluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.«
    And your screenshot shows:
    »Xereptatiuriaque\n alique volo\n eium qui dolupid ut \rvoluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.«
    Normally the text should look like this:
    »Xereptatiuriaque\nalique volo\neium qui dolupid ut\rvoluptatiam earum\nsaestorepel iuscit im quas et\nmodisimodit.«
    Please explain what do you really want to do and exactly if additional spaces are exists or not!
    Could it be:
    you have a text with paragraphs and with many line breaks in that paragraph and there are no spaces exists before or after your line breaks. And is your destination to remove all the line breaks from your text?
    </edit by pixxxel schubser>
    Then the way is not to find the text completly and to ignore the line breaks – the way is to find the line breaks and replace with a space, e.g. like that:
    find:
    \n
    replace with:
    \s
    (change all)
    Regards
    pixxxel schubser

  • Grep command - binary file

    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)

    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.

  • Grep command to achieve the following - Almost got it

    Hi
    I have been on here before and received great help with grep styles but have one that I can't find a solution for from online resources
    I am using the following grep command to add a descriptor to a event.
    My text looks like this
    9.00     Football
    Grep command is
    (\d+\.\d+\t)(Football)(.*\r.+\r)
    $1$2$3Play football.\r
    Which acheives...
    9.00     Football
                Play football
    Problem is
    Some of the titles are
    9.00   Sunday Football
    9.00   Junior Football
    9.00   Junior 5 a side Football
    I ideally need a grep command that will do exactly the same but ignore Sunday, Junior, Junior 5 a side (but leave it in) I can't add extra greps as there are too many
    Is there a command that will find the digits (ignore everthing until football) and add the descriptor
    Hopefuly it is just a little addition to the grep but I can't find a solution
    Any help much appreciated

    I'm a little unclear
    when starting with:
    9.00   Sunday Football
    9.00   Junior Football
    9.00   Junior 5 a side Football
    what do you want the result to be? This, or something else--
    9.00   Sunday Football
              Play Football
    9.00   Junior Football
              Play Football
    9.00   Junior 5 a side Football
              Play Football

  • CLI grep command in AsyncOS 4.5

    A late addition to AsyncOS 4.5 was the CLI "grep" command. Yes, it is a "hidden" command and we would like input from IronPort Nation on whether this is useful and what additions they would like to see to it. Here are a brief set of examples on its use:
    boxster.mfg> help grep
    grep -e regexp [-e regexp] [-i] [-p] [-t] log_name
    Run the Unix grep command over the named log file.
    Normally the grep will be run over all files in the
    named log subscription. Using the -t option will run
    the grep over a tail of the log file. Using the -i
    option will ignore case sensitivities. Using the -p
    option will paginate the output.
    regexp - an extended grep expression
    log_name - the name of the log file
    Manually using grep will look like this:
    boxster.mfg> grep
    Currently configured logs:
    1. "antivirus" Type: "Anti-Virus Logs" Retrieval: FTP Poll
    2. "asarchive" Type: "Anti-Spam Archive" Retrieval: FTP Poll
    3. "avarchive" Type: "Anti-Virus Archive" Retrieval: FTP Poll
    4. "bounces" Type: "Bounce Logs" Retrieval: FTP Poll
    5. "brightmail" Type: "Symantec Brightmail Anti-Spam Logs" Retrieval: FTP Poll
    6. "case" Type: "Context Adaptive Scanning Engine" Retrieval: FTP Poll
    7. "cli_logs" Type: "CLI Audit Logs" Retrieval: FTP Poll
    8. "error_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll
    9. "ftpd_logs" Type: "FTP Server Logs" Retrieval: FTP Poll
    10. "gui_logs" Type: "HTTP Logs" Retrieval: FTP Poll
    11. "mail_logs" Type: "IronPort Text Mail Logs" Retrieval: FTP Poll
    12. "scanning" Type: "Scanning Logs" Retrieval: FTP Poll
    13. "sntpd_logs" Type: "NTP logs" Retrieval: FTP Poll
    14. "status" Type: "Status Logs" Retrieval: FTP Poll
    15. "system_logs" Type: "System Logs" Retrieval: FTP Poll
    Enter the number of the log you wish to grep.
    []> 11
    Enter the regular expression to grep.
    []> MID
    Do you want this search to be case insensitive? [Y]> n
    Do you want to tail the logs? [N]>
    Do you want to paginate the output? [N]>
    For a single regular expression:
    boxster.mfg> grep -e MID mail_logs
    For multiple regular expressions:
    boxster.mfg> grep -e MID -e RID mail_logs
    For multiple regular expressions in the current log:
    boxster.mfg> grep -e MID -e RID mail_logs -t
    For multiple regular expressions in the current log with a case
    insensitive match and paginate:
    boxster.mfg> grep -i -e MID -e RID mail_logs -t -p
    Grab a specific ICID line:
    boxster.mfg> grep -e "ICID1238" mail_logs
    Tue Oct 18 07:58:19 2005 Info: New SMTP ICID 1238 interface main (172.18.0.40) address 172.18.0.40 reverse dns host porky3.mfg verified yes
    Tue Oct 18 07:58:19 2005 Info: ICID 1238 ACCEPT SG None match ALL SBRS rfc1918
    Tue Oct 18 07:58:19 2005 Info: Start MID 211476 ICID 1238
    Tue Oct 18 07:58:19 2005 Info: MID 211476 ICID 1238 From: <[email protected]>
    Tue Oct 18 07:58:19 2005 Info: MID 211476 ICID 1238 RID 0 To: <[email protected]>
    Tue Oct 18 07:58:19 2005 Info: ICID 1238 close
    Look for DHAP connections:
    boxster.mfg> grep -t -e "Dropping connection" mail_logs
    Press Ctrl-C to stop.
    Wed Oct 19 18:05:28 2005 Warning: LDAP: Dropping connection due to potential Directory Harvest Attack from host=('172.18.0.40', None), dhap_limit=5, sender_group=Default
    Wed Oct 19 18:05:30 2005 Warning: LDAP: Dropping connection due to potential Directory Harvest Attack from host=('172.18.0.40', None), dhap_limit=5, sender_group=Default
    Wed Oct 19 18:05:32 2005 Warning: LDAP: Dropping connection due to potential Directory Harvest Attack from host=('172.18.0.40', None), dhap_limit=5, sender_group=Default
    Wed Oct 19 18:06:15 2005 Warning: LDAP: Dropping connection due to potential Directory Harvest Attack from host=('172.18.0.40', None), dhap_limit=5, sender_group=Default
    Wed Oct 19 18:06:17 2005 Warning: LDAP: Dropping connection due to potential Directory Harvest Attack from host=('172.18.0.40', None), dhap_limit=5, sender_group=Default

    (Been away from IPN for a while, catching up).
    As a long time Unix sysadmin, I'm also a little frustrated by the locked down nature of AsyncOS, especially since I know that under the hood it's my particular Unix flavor of choice. For example, when I see the CPU stuck at or near 100%, I really want to fire up "top" and see what's soaking up the CPU. I had that problem recently and needed to make a tech support call for what turned out to be something I could have diagnosed myself had I just been able to use "top". I've also had times when direct access to "netstat" and "ifconfig -a" would have saved me a lot of trouble (like when someone changed the duplex setting on the switch port).
    That said, I know that IronPort has some valuable intellectual property to protect from prying eyes. But it seems to me that a compromise could be reached. We don't need to be able to peek under every rock in order to have much improved sysadmin abilities.
    Oh yeah, I like the "grep" command. :-) I've been wishing for that for quite a while.

  • Plz clarify with grep command

    Regarding grep command,i have given in linux
    grep -r "some name" & (& i have given instead of *).after enter some below mesg throws like
    [+1] + stopped [sigttin] .
    when i typed exit it shows YouHave stopped jobs.
    Is this any problem with this command for running background jobs?
    can anyone please suggest ASAP.Thanks in Advance.

    grep -r "some name"Are you searching for file content or filename? In the later case, you would use find, not grep.
    The grep command requires a file paramter. & as file parameter is not valid.
    You could possibly use "grep -r "something" ./* &. But what would be the purpose of running such a command in the background unless you pipe the output to a file, e.g.
    <pre>
    grep -r "something" * > output.lst &
    </pre>

Maybe you are looking for

  • Is there an upgrade option to Windows 7 for existing Vista notebooks?

    Toshiba are currently offering upqrades to Win 7 for purchaseers of *NEW* machines with Vista. What is Toshiba policy for users of *existing* machines with Vista? Will Toshiba provide an OEM upgrade/replacement route or will I have to buy Win 7 comme

  • 9.1 blank error prevents all net-PDF viewing

    Hey there! When I try to view PDFs over a web browser (IE 8.0.7000.0, Firefox 3.0.10) I get a blank error message (http://i11.photobucket.com/albums/a192/PropaneMilo/PDFblankerror.jpg) which seems to stop the PDF from loading.  More, when I save the

  • Discoverer upgrade to 10g

    Hi, Please assist me with some of the ff issues I experienced post my upgrade to discoverer 10g from discoverer vs 3.1. 1. The icons get greyed out after a while with working on discoverer plus. Any ideas why this happens and what is the fix? 2. Is t

  • Adobe prefilled form using standalone java appl

    Hi, I have designed adobe form. The requirement is : the end user will open this adobe form offline using Java mobile application, but needs to be prefilled with some field values. And there is no connectivity to SAP system/ server. My question : Is

  • How to recover airport settings from back-up HD

    Hi, recently I lost my airport settings. When I called my internet provider, they said they could not help me as I was on a MAC. Yes, they originally helped me set it up... I live in France so Tech support is hard. I do have a backup on a HD. Where d