Scripts for data cleansing Perf

Hello

We currently use BB 4.4 with the new features enabled PERF. Someone at - it scripts for cleaning or truncate the Perf Data collected? 4.5 is supposed to have the function programmed in. We run the BB server on unix.

Perf Data under the $BBHOME / bbvar / perf

The files are in plain text with lines like this:

Here is a not so elegant way to truncate your files in perl. You will need to set the time as a unix timestamp.

#Purge $BBPERF
@files = "grep - Rl. $BBPERF / *';"

$file (@files) {} foreach
chomp ($file);
Print "$file\n";
@data ='cat $file | AWK ' {if (\$4 > = $startTime) {print \$0}} ";
If (!) () open (FILE, "> $file"))) {print "cannot open $file: $!"} \n » ; print LOGFILE "cannot open $file: $! \n » ; next ;}
foreach $line (@data) {print FILE $line ;}
Close the FILE;
}

Tags: Dell Tech

Similar Questions

  • How to write a script for date get to the Clipboard

    Hi experts,

    How to write a script for date get to the Clipboard.

    the date format will be like this:

    05 - may

    respect of

    John

    Thanks guys, thanks Sanon

    I finally use the .bat doc

    like this:

    @@echo off
    for /f "delims =" % in (' wmic OS Get localdatetime ^ | find ".") "") Set "dt = %% a"
    the value "YYYY = % dt: ~ 0, 4%.
    the value "MM = % dt: ~ 4, 2%.

    If MM % is 01 set MM = January
    If % MM == 02 set MM = February
    If MM % is MM value = March 03
    If MM % is 04 MM value = April
    If MM % is 05 MM value = may
    If MM % is 06 MM value = June
    If MM % == 07 set MM = July
    If MM % is MM value = August 08
    If MM % is MM value = September 09
    If MM % is 10 MM value = October
    If MM % is 11A set MM = November
    If MM % is game MM 12 = December

    the value "DD = % dt: ~ 6, 2%.
    the value "HH = % dt: ~ 8, 2%.
    the value "Min = % dt: ~ 10, 2%.
    Set "s = % dt: ~ 12, 2%.

    Echo DD - MM HH % %% % Min | Clip

    It works

    respect of

    John

  • PL/SQL Script for dates

    Hello
    I am new to Oracle and PL/SQL Script. I would like to ask - is it possible to write a PL/SQL Script to compare two dates in Oracle.
    It is a very basic example of the structure of the table.

    table_1)
    client_name varchar2 (30);
    client_expire_date DATE;
    status varchar2 (30);
    );

    settings)
    time_to_run varchar2 (30);
    );

    I want to write a script that runs each for example 5 minutes (I want the script to take time to time_to_run rank, each time when it starts) and compare the client_expire_date with the sysdate. If the client_expire_date < sysdate scripts updates the State of the locked client.
    Is it possible to do?

    concerning
    CREATE TABLE clients
    ( client_serial       INTEGER CONSTRAINT clients_pk PRIMARY KEY
    , client_expire_date  DATE
    , client_name         VARCHAR2(30) NOT NULL
    , status              VARCHAR2(20) DEFAULT 'active' NOT NULL );
    
    INSERT INTO clients VALUES (1, TO_DATE('2010-08-21 15','YYYY-MM-DD HH24'), 'Largo', 'active');
    INSERT INTO clients VALUES (2, TO_DATE('2010-08-21 16','YYYY-MM-DD HH24'), 'Blofeld', 'active');
    INSERT INTO clients VALUES (3, TO_DATE('2010-08-21 17','YYYY-MM-DD HH24'), 'Scaramanga', 'active');
    INSERT INTO clients VALUES (4, TO_DATE('2010-08-21 18','YYYY-MM-DD HH24'), 'Drax', 'active');
    INSERT INTO clients VALUES (5, TO_DATE('2010-08-21 19','YYYY-MM-DD HH24'), 'Goldfinger', 'active');
    
    COMMIT;
    
    BEGIN
        DBMS_SCHEDULER.CREATE_JOB
        ( job_name        => 'SET_STATUS'
        , job_type        => 'PLSQL_BLOCK'
        , job_action      => 'BEGIN ' ||
                                   'UPDATE clients SET status = ''locked'' ' ||
                                   'WHERE client_expire_date < SYSDATE AND status != ''locked''; ' ||
                             'END;'
        , repeat_interval => 'FREQ=MINUTELY;INTERVAL=5'
        , enabled         => TRUE
        , auto_drop       => FALSE
        , comments        => 'Demo job to update CLIENTS table every 5 minutes');
    END;
    /
    
    SELECT log_date, status, run_duration
    FROM   user_scheduler_job_run_details
    WHERE  job_name = 'SET_STATUS';
    
    LOG_DATE                                          STATUS                         RUN_DURATION
    ------------------------------------------------- ------------------------------ -------------------
    21-AUG-10 16.53.35.671000 +01:00                  SUCCEEDED                      +000 00:00:00
    21-AUG-10 16.58.35.609000 +01:00                  SUCCEEDED                      +000 00:00:00
    
    SELECT * FROM clients;
    
    CLIENT_SERIAL CLIENT_EXPIRE_DATE CLIENT_NAME      STATUS
    ------------- ------------------ ---------------- --------------------
                1 2010-08-21 15:00:0 Largo            locked
                2 2010-08-21 16:00:0 Blofeld          locked
                3 2010-08-21 17:00:0 Scaramanga       active
                4 2010-08-21 18:00:0 Drax             active
                5 2010-08-21 19:00:0 Goldfinger       active
    
    select to_char(sysdate,'YYYY-MM-DD HH24:MI:SS') as time_now from dual;
    
    TIME_NOW
    -------------------
    2010-08-21 17:02:17
    

    (Scaramanga account has been locked by the next run at 17:03)

    You can call a procedure under the action of work rather than including the command line.

    To abandon the work,

    CALL DBMS_SCHEDULER.DROP_JOB('SET_STATUS');
    
  • How to get data from perf of ESX servers when VC is unreachable?

    Hello

    I want to get the data of the perf of ESX servers when VC is unreachable. When I try to connect to VC, although the name of username/password is correct, but due to some or the other reason, VC is coming as inaccessible, now in this scenario is it possible for me to get the data from the servers ESX and their virtual machines Perf? How to on this subject, if possible?

    Kind regards

    Deepak

    I'm confused by your reference to "profiles"? What do you mean by profile? If you're referring to something called host profiles this function treats remaining with configurations between hosts in a cluster that is compatible with the addition of new hosts in a given cluster. This feature won't be available before vSphere 4.0 and has Nothing to do with performance information.

    Please re-read my last comment, if you are looking to retrieve performance data, you must either connect to vCenter or connect to each of the individual hosts to collect this information. I hope it's clear.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Publish with the help of af: Message for date validations ADF

    Hi Experts,

    I get the following error message when you use adf date using af: message instead of a Note window. As you can see int right below the screenshot, what happens is invalid when date is entered once, while a single error message appears below the component, but when the user clicks on the date picker icon after that every time a message is added under each time as shown below.

    date validation using af_message.png

    I use Jdev 11.1.1.5. Please let me know if there is a solution for this using java script or a property in jsf.

    < af:inputDate label = 'test' id = 'dat' >

    < / af:inputDate >

    "< af:message id ="m1"for =": dat ">"

    The solution to the above problem is,

    function errorMessClear (evt) {}

    source var = evt.getSource ();

    AdfPage.PAGE.clearMessages (source.getClientId ());

    }

  • Scripts for indesign

    Hi all.  I wonder if there is a script for indesign that allow me to put the file name / and identifiers of color at the bottom of the Document.  Also, who will all place me information where I want.  For ex...   I want to send a task to plates and rather than manually enter the name of the file - Date and time - and colors on the bottom of the plate/file.  I know that when I go to export a file or print a file it is check box to put the information on the file page and it does what I want however he put the information too low on the plate.  He added the information down into the corner of the plate area and receiving not Burnt or processed in this area.  I need a script to back up the information, if we read.

    Hi cbishop01,

    First of all, I would not recommend research by sending your files to Indesign as postscript, if your normal process is a PDF workflow. PostScript does not support some features on various output devices. When the postscript from Indesign, you can run into CMYK printing issues when dealing with PDF files and other works of art that contain some transparency effects and mixing modes that cannot be interpreted by the postscript or cannot flatten properly.

    My employer uses a script Indesign, we have developed which can be something similar to what you are looking to accomplish. If your plate is always the same size, you can create a model of tax file in Indesign with job info, color chart, date and time, and you want to integrate the model tax. You can use a script Indesign to automatically update the model every time that you print in PDF format (which can be done by adding a custom ease menu item).

    Plate files vary from a file in a file, you can convert the file name, time, blocks of color name text in an Indesign library item and drop it right in the position desired on each individual plate installation. You will not have to change these items, you will only place a group element where you want to go.

    Is this something that will work for you?

    (example of a model of plate file)

    (example of slug color library item)

  • advice of script for a beginner please

    I am a beginner, trying to enter VMware (winding maze lost in corridors...)

    With vSphere Client I can manually create virtual machines on our 5 ESXi host, producing an OVA of our product for distribution file.
    I am obliged to describe the process.

    Can I set up and configure virtual machines using only the ESXi console?

    VCLI (free download) allows Windows to create virtual machines on an ESXi host?

    Outline of what needs of script:

    • create a VM (this is the only bit that I was able to do it, using the console for ESXi)
    • install CentOS Linux using anaconda with kickstart script
    • Configure the virtual machine and the export

    Advice, tips or pointers to get this done will be very appreciated!

    Thank you very much

    Alan

    A few answers to your questions

    1. you will need to get an ISO of the CD of CentOS and store it somewhere on a data store.

    Once this is done, you can use the cmdlet Set-CDDrive with the IsoPath parameter.

    2. use the cmdlet New-VM , something like that.

    You get the default value of the bu NIC, just specify what portgroup to connect to

    $vm = New - VM - name MyVM - ID centosGuest - NumCpu 1 - MemoryMB (1 GB / 1 MB)-DiskMb (60 GB / 1 MB)-NetworkName MyPG

    3 see forces a VM to access BIOS screen on the next reboot

    4. use the Start-VM cmdlet

    Start-VM - $vm VM - confirm: $false

    5 once again with the cmdlet Set-CDDrive , but the use of the HostDevice parameter

    6 see specify bootable for a virtual machine devices

    7. do not apply. You change the boot order before starting the virtual machine

    8. who could perhaps be done with the Invoke-VMScript cmdlet and the bash ScriptType parameter. But I have not tested with CentOS.

    9. it's a little tricky. The external vSphere unclear when a program inside a guest what OS is finished. There are ways to send some kind of semaphores, see, for example, waiting for the customization of the OS to complete

    10. There are a lot of the cmdlet Set-availabe, i.e. Whole-VM, Set-NetworkAdapter...

    As a guideine, you should always try to translate your literally to scripts for automation of manual procedures. Sometimes, you should first rethink your account automation procedure.

  • How should be written the script for the use of the maximum memory of the guest operating system ever?

    How should be written the script for the use of the maximum memory of the guest operating system ever?

    Please teach the name of the object and the type and order, etc.

    You should be able to do it with the cmdlet Get-Stat .

    Something like that

    Get-Stat -Entity (Get-VM $vmName) -Stat mem.usage.maximum -Start (Get-Date).AddDays(-7) | Measure-Object -Property value -Maximum | Select Maximum
    

    This will return the maximum percentage in the last 7 days for the guests, whose name is stored in the variable $vmName.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Where can I download the scripts for sample IX, SH patterns for 11g

    Hello

    I installed the server Oracle 11 g without sampling schemes. In the standard schema of the sample set, we had an example of information Exachange schema (queue) and a Historyschema of sale. However I don't get the sample scripts for these two schemas in my repertoire of the demo.

    Can you please let me know where I can get access to the scripts?

    I have a requirement for an OLTP data store that can receive a high volume of data from an external system (Expecting max of 6 GB of data). I decided to create a separate schema, with dedicated storage spaces, it's a good idea to have a data file with a maxsize put 6 GB or to have a set of 3 from 1000 m managed locally and a maximum size of 2 GB each. There is not many necessary index, but I need to set up a queue and on the queue as well. If I create this schema that make them I need to revisit my groups redolog or temp table size as well to keep my performance of existing database intact?

    Are there guidelines to follow for a scheme where you expect a large amount of standard data, multiple queues?


    Thank you very much
    Chauvin

    user13057029 wrote:
    Hello

    I installed the server Oracle 11 g without sampling schemes. In the standard schema of the sample set, we had an example of information Exachange schema (queue) and a Historyschema of sale. However I don't get the sample scripts for these two schemas in my repertoire of the demo.

    Can you please let me know where I can get access to the scripts?

    http://docs.Oracle.com/CD/E11882_01/server.112/e10831/installation.htm#COMSC00002

    >

    I have a requirement for an OLTP data store that can receive a high volume of data from an external system (Expecting max of 6 GB of data). I decided to create a separate schema, with dedicated storage spaces, it's a good idea to have a data file with a maxsize put 6 GB or to have a set of 3 from 1000 m managed locally and a maximum size of 2 GB each. There is not many necessary index, but I need to set up a queue and on the queue as well. If I create this schema that make them I need to revisit my groups redolog or temp table size as well to keep my performance of existing database intact?

    Are there guidelines to follow for a scheme where you expect a large amount of standard data, multiple queues?

    Ask this question in a separate thread.

    Aman...

  • Script for VMDK by Datastore list

    Hello

    Anyone know where I can find a script for VMDK how I store data in the list?

    Thank you to

    Eric

    Get-Datastore. Select Name, @{N = "NumVMDK"; E={@($_ | Get - HardDisk). County}} | Name sort

    could take a long time to run

  • Script for the conversion of the hyperlinks to the buttons?

    Hello!

    Does anyone know if West a script for the conversion of the hyperlinks to buttons with the action of going to the URL with the same URL, which has been used with hyperlink?

    Here it is:

    /* Copyright 2012, Kasyan Servetsky
    November 29, 2012
    Written by Kasyan Servetsky
    http://www.kasyan.ho.com.ua
    e-mail: [email protected] */
    //======================================================================================
    var scriptName = "Convert hyperlinks to buttons - 1.0";
    
    Main();
    
    //===================================== FUNCTIONS  ======================================
    function Main() {
        var hyperlink, source, sourceText, destination, page, arr, outlinedText, gb, button, behavior,
        barodeCount = 0,
        hypCount = 0;
        if (app.documents.length == 0) ErrorExit("Please open a document and try again.", true);
        var startTime = new Date();
    
        var doc = app.activeDocument;
        var layer = doc.layers.item("Buttons");
        var swatch = doc.swatches.item("RGB Yellow");
        var hyperlinks = doc.hyperlinks;
    
        var progressWin = new Window ("window", scriptName);
        progressBar = progressWin.add ("progressbar", undefined, 0, undefined);
        progressBar.preferredSize.width = 450;
        progressTxt = progressWin.add("statictext", undefined,  "Starting processing hyperlinks");
        progressTxt.preferredSize.width = 400;
        progressTxt.preferredSize.height = 30;
        progressTxt.alignment = "left";
        progressBar.maxvalue = hyperlinks.length;
        progressWin.show();
    
        for (var i = hyperlinks.length-1; i >= 0; i--) {
            hyperlink = hyperlinks[i];
            source = hyperlink.source;
            sourceText = source.sourceText;
            destination = hyperlink.destination;
            page = sourceText.parentTextFrames[0].parentPage;
    
            barodeCount++;
            progressBar.value = barodeCount;
            progressTxt.text = "Processing hyperlink " + hyperlink.name + " (Page - " + page.name + ")";
    
            arr = sourceText.createOutlines(false);
            outlinedText = arr[0];
            gb = outlinedText.geometricBounds;
            outlinedText.remove();
    
            button = page.buttons.add(layer, {geometricBounds: gb, name: hyperlink.name});
            button.fillColor = swatch;
            button.fillTint = 50;
            button.groups[0].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;
            behavior = button.gotoURLBehaviors.add();
            behavior.url = destination.destinationURL;
    
            hyperlink.remove();
            source.remove();
    
            hypCount++;
        }
    
        var endTime = new Date();
        var duration = GetDuration(startTime, endTime);
        progressWin.close();
    
        alert("Finished. " + hypCount + " hyperlinks were convertted to buttons.\n(time elapsed: " + duration + ")", scriptName);
    
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function GetDuration(startTime, endTime) {
        var str;
        var duration = (endTime - startTime)/1000;
        duration = Math.round(duration);
        if (duration >= 60) {
            var minutes = Math.floor(duration/60);
            var seconds = duration - (minutes * 60);
            str = minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second");
            if (minutes >= 60) {
                var hours = Math.floor(minutes/60);
                minutes = minutes - (hours * 60);
                str = hours + ((hours != 1) ? " hours, " : " hour, ") + minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second");
            }
        }
        else {
            str = duration + ((duration != 1) ? " seconds" : " second");
        }
    
        return str;
    }
    //--------------------------------------------------------------------------------------------------------------------------------------------------------
    function ErrorExit(error, icon) {
        alert(error, scriptName, icon);
        exit();
    }
    
  • Can not find the plugin for data recovery?

    Hi guys,.

    I don't have the time to investigate this, but I was wondering if you can get started me.

    I installed vCenter4 and have only 1 host ESX 4 up to now (ESX4i).

    I attributed an enterprise of this machine license.

    I can't see the plugin for recovering data anywhere in my vCenter.

    What Miss me?

    I'm going through the documentation as we speak. Thank you



    Please consider my response as 'useful' or 'proper' marking

    Have you downloaded vDR from the download page where you went to get vCenter/ESX 4.0? Once installed, you will need to go to the Plug-ins and download/activate the plugin. This is at least the case for VCB, VUM, etc..

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Can someone help me to write a script for Soundbooth

    If I have 50 files in C:\MyMusic and you want to

    Game Volume in Soundbooth CS5 how can I write a script for this?

    The only other way that I saw him do this with a library of that size is by Steve DeKorte SoundConverter. It would be tedious to do, but there is a feature to "normalize volume" on all files being converted. E than another inconvenience is that as long as you "convert" MP3 to MP3, you must save the files "converted" to a different directory. It won't crush during the standardization process.

    I had a library of more than 92 000 songs in 14 000 folders and subfolders 46 000 until last October. I had been there twice to "clean up and mormalize ' it more than six years." The transport entered on the drive that I was preparing to back up everything on DVD, and I have been unable to recover the data on the disks when it happened. I was duly upset when I lost all this music, but as I look back over the last eight months, I had a lot less worries ' tinkering ' with all these files all the time.

  • Cost for Data Guard

    Hello, we are running Oracle on a license of the company, running on Linux and Windows hosts. Can someone tell me if there is an extra charge for Data Guard? Thank you. P.S. I am a newbie.

    If you are using DataGuard, data pending is active and running and archived application papers (at least this is the case for 99% of the installation of the system). Under the terms of the current default value to the license agreement basis, I believe that this requires that sleep is allowed. If you copied everything simply newspapers archived on a standby server where Oracle has been installed, but never really ran, I think you can get away with not license that as soon as the day before was active within 10 days a year. Of course, when you do not want to activate it, you must wait for it to apply a bunch of do it again until he could be open to users. If you copied a new backup on the machine to sleep periodically, you can probably keep the number of archived logs that are to be applied to a reasonable level, but you pay of course with the inconvenience and additional scripts work rather than simply backup server licenses.

    Of course, it's one of those terms that are more likely to be the subject of negotiations. Especially if you have a credible alternative architecture that avoids the eve (a cluster, HACMP or Oracle FailSafe), you might well be able to get a break on licenses pending license.

    Justin

  • Mode script for ANY c ++ function

    Hi all

    My goal was to use the pxi 5406 to implement features of frequency sweep. Right now, we use only the functions on the list of the frequencies of creation. There are four modes of release for the frequency list, signle, continuous, step by step and burst. We use the bleachers through fashion. It is painful to use this mode, since for each frequency, you need to send a rising edge, so if I have several hundred, it means I have to produce this amount of rising edges. This will generate a lot of buffer in another analog card.

    My question is, could I use script for the frequency list view? Or is there a smart way to achieve this? From the file of signal aid, he said that there are some c programe on script mode. But I can't find any examples in my computer. If you have any other, could you send me?

    Thank you very much.
    .

    Yami.

    Yami,

    The 5406 has the ability to run script mode. Only for her output modes are Standard function and frequency list. However, I believe that you can do what you want to do with the list mode frequencies. Assuming that you do not want to trigger you can put the camera in single or continuous Mode. Single will play your select frequency scan and then once completed, build:

    Continuous is similar, but you continue to repeat the signals to stop:

    All the above details are in aid of signal generators of NOR. I looked under the heading devices > 5406 > trigger > triggering Modes.

    With simple or continuous, you can specify the length of the waveform step, which could be a good starting point. With regard to the examples for c ++, I do not have, but if you look in the Start Menu, NOR-FGEN, National Instruments, examples, OR-FGEN C examples you can find a folder for "Sweep generator", there is a model and an example C you can look over your program after. I hope this helps!

Maybe you are looking for