0 Replies Latest reply on Sep 12, 2013 4:07 AM by Siva Ora

    Using of universallogcollector.pl with -afterdate throws error

    Siva Ora

      Reference:  11gR2 GI/ASM/RAC Universal Collection Guide (Doc ID 1485042.1)

        

      11gR2 Universal Collection is expanded diagcollection.pl to collect GI, ASM and database (RAC) diagnostics (logfile, trace file etc), the goal is to reduce back and forth information request
      between Oracle Support and customers.

       

      Once finishes, it will generate files in current directory. Only one file needs to be uploaded per node, the name of the file is highlighted on screen and
      default to allData_<nodename>_<timestamp>.tar.gz

       

      When I tried with below command I am getting the error as;

       

        /exports/universallogcollector/universallogcollector.pl  --orahome --afterdate '09/07/2013'


      root@dbsrvr1/exports/universallogcollector/test_run/run2>/exports/universallogcollector/universallogcollector.pl --collect --orahome --afterdate '09/07/2013'
      Production Copyright 2004, 2010, Oracle. All rights reserved.
      Universal Log Collector tool Version 1.4

      #########
      The following diagnostic archives will be created in the local directory if it's not excluded.

      etcData_dbsrvr1_20130911_0035.tar.gz -> oraInst.loc, oratab and /etc/oracle or /var/opt/oracle(platform dependent).
      crshomeData_dbsrvr1_20130911_0035.tar.gz -> logs, traces and cores from CRS Home.
                                                   Note: core files will be packaged only with the --core option.
      ocrData_dbsrvr1_20130911_0035.tar.gz -> ocrdump, ocrcheck etc.
      chmosData_dbsrvr1_20130911_0035.tar.gz -> Cluster Health Monitor (OS) data.
      coreData_dbsrvr1_20130911_0035.tar.gz -> contents of CRS core files in text format.
      osData_dbsrvr1_20130911_0035.tar.gz -> logs from Operating System.
      baseData_dbsrvr1_20130911_0035.tar.gz -> logs from CRS Base & Oracle Base(s).
      invtData_dbsrvr1_20130911_0035.tar.gz -> logs from Oracle installation log.
      orahomeData_dbsrvr1_20130911_0035.tar.gz -> logs from Oracle Home(s) log.
      sysconfig_dbsrvr1_20130911_0035.txt -> system config info for cpu, memory, swap, network and disks.
      crsresStatus_dbsrvr1_20130911_0035.txt -> outputs from "crsctl stat res -t -f [-init]"
      vendorData_dbsrvr1_20130911_0035.tar.gz -> vendor clusterware logs if present.
      acfsData_dbsrvr1_20130911_0035.tar.gz -> logs from acfs log.
      rdbmsData_dbsrvr1_20130911_0035.tar.gz -> RDBMS traces and alert logs.
      allData_dbsrvr1_20130911_0035.tar.gz -> a summary tarball for all above logs.
      #########

      Collecting CRS home data
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      .....
      .....
      .....
      tar: a: unknown option
      Collecting information from core dump files
      No corefiles found
      Collecting OCR data
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      gzip: ocrData_dbsrvr1_20130911_0035.tar: No such file or directory
      Collecting Etc Oralce data
      cp: /var/opt/oracle/oprocd/check/port: Operation not supported on socket
      cp: /var/opt/oracle/oprocd/stop/port: Operation not supported on socket
      cp: /var/opt/oracle/oprocd/fatal/port: Operation not supported on socket
      Collecting CRS base & Oracle base(s) data
      CRS base not specified or invalid, will try to get correct CRS base
      Get valid CRS base "/app/oracle" and will collect it.
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting Oracle home data from "/app/crs/product/11g"
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting Oracle home data from "/app/oracle/product/11g/asm_1"
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting Oracle home data from "/app/oracle/product/11g/db_1"
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting Oracle home data from "/app/oracle/product/em/agent11g"
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting Oracle home data from "/app/oracle/product/11.2.0.3/db"
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting OS logs
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting Oracle installation logs
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting vendor cluster logs
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Collecting sysconfig data
      Collecting CRS resource status
      Collecting RDBMS traces and alert logs
      tar: a: unknown option
      tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
      Done
      #########Universal Log Collection Finished.#######

          Please upload ONLY allData_dbsrvr1_20130911_0035.tar.gz to Oracle Support!

      root@dbsrvr1/exports/universallogcollector/test_run/run2>