Sponsored Content
Top Forums Shell Programming and Scripting Need help with writing a perl script Post 302260344 by eliraza6 on Thursday 20th of November 2008 09:13:48 AM
Old 11-20-2008
Hi... sorry for being so enoing... but now i'm getting only listeners messages...

Code:
[root@leaiprod1 scripts]# ./temp3.pl

application.log ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      50

eai.log.process.activity ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      50

eai.log.process.data ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      50

pl-it_prod.AD.LDAP.V.CD.LDAPUserAuthGroups ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      100

pl-it_prod.AD.LDAP.V.CD.LDAP_ADInetOrgPerson ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      100

pl-it_prod.AD.LDAP.V.CD.LDAP_Bind ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      100

pl-it_prod.AD.LDAP.V.CD.LDAP_Groups ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      100

pl-it_prod.AD.LDAP.V.CD.LDAP_InetOrgPerson ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      100

pl-it_prod.AD.LDAP.V.CD.LDAP_Workstation ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      100

pl-it_prod.Gateways-B2B.GW.Async.Reply.JMS ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      10

pl-it_prod.Gateways-NPG.GW.Async.Reply.JMS ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      10

pl-it_prod.Gateways-Pele.GW.Async.Reply.JMS ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      10

pl-it_prod.Gateways.GW.Async.Reply.JMS ...

        --> listeners threshold exceeded:

        current status: 0
        threshold:      10

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Writing perl module

Hi, I'd like to create perl functions in separate file from my scripts. Does somebody know if it's possible to create and use a perl module without compiling it ? Thanks. (4 Replies)
Discussion started by: jo_aze
4 Replies

2. UNIX for Dummies Questions & Answers

Perl Unix Script Writing

Hi Folks, I posted a few days ago, thanks for the responses. My original question was for renaming files of sort 3p2325294.dgn in a directory containing multiple files. I need to drop the first 2 characters and the last in a unix script using Perl. How does it differ from using the Unix... (1 Reply)
Discussion started by: Dinkster
1 Replies

3. Shell Programming and Scripting

help for a perl script - writing to a data file

Hi, Here is my problem.. i have 2 files (file1, file2).. i have wrote the last two lines and first 4 lines of "file2" into two different variables .. say.. my $firstrec = `head -4 $file2`; my $lastrec = `tail -2 $file2`; and i write the rest of the file2 to a tmpfile and cat it with head... (2 Replies)
Discussion started by: meghana
2 Replies

4. UNIX for Dummies Questions & Answers

help in writing perl module

Hi i have written a perl script which was then converted to perl module by me. it works as expected. but i have to put it on many servers so i want to build a package for it. i dont know how to do that. just to check i copied perl module in "lib" directory which is working. ( directly copied... (1 Reply)
Discussion started by: zedex
1 Replies

5. Shell Programming and Scripting

Writing a Perl Script that processes multiple files

I want to write a Perl script that manipulates multiple files. In the directory, I have files 250.*chr$.ped where * is from 1 to 1000 and $ is from 1-22 for a total of 22 x 10,000 = 22,000 files. I want to write a script that only manipulates files 250.1chr*.ped where * is from 1 to 22.... (10 Replies)
Discussion started by: evelibertine
10 Replies

6. Programming

REQUIRE HELP IN WRITING A PERL SCRIPT

Hi everyone I am a beginner in perl and I am trying to write a perl script. Basically I want to separate gene entries from phenotype entries in a text file which contains huge number of records and copy them in a separate file. The gene entries will have * symbol after the line FIELD TI. A... (7 Replies)
Discussion started by: kaav06
7 Replies

7. Shell Programming and Scripting

Perl script for Calling a function and writing all its contents to a file

I have a function which does awk proceessing sub mergeDescription { system (q@awk -F'~' ' NR == FNR { A = $1 B = $2 C = $0 next } { n = split ( C, V, "~" ) if... (3 Replies)
Discussion started by: crypto87
3 Replies

8. UNIX for Dummies Questions & Answers

Writing an HTML file in perl

I'm writing a perl script that writes an html file. use Tie::File; my ($dir) = @ARGV; open (HTML,">","$dir/file.html") || die $!; #-----Building HTML file--------------------------- print HTML "<!DOCTYPE html> <html> <head> <title>Output</title> <link... (3 Replies)
Discussion started by: jrymer
3 Replies

9. Shell Programming and Scripting

Need help in writing perl script

Hi, I am new to perl. I am trying to write a small perl script for search and replace in a file : ======================================================== #!/usr/bin/perl my $searchStr = "register_inst\.write_t\("; my $replaceStr = "model\.fc_block\."; open(FILE,"temp.sv") ||... (2 Replies)
Discussion started by: chettyravi
2 Replies

10. Shell Programming and Scripting

Writing xml from excel sheet .xls using perl script

Hi all. I am working on the below requirement of generating .xml file from .xls file which i have , can someone please help me or in writing the perl script for the same: The xls file format is as below which has two columns and number of rows are not fixed: Fixlet Name ... (12 Replies)
Discussion started by: omkar.jadhav
12 Replies
LATENCY(1)						    BSD General Commands Manual 						LATENCY(1)

NAME
latency -- monitors scheduling and interrupt latency SYNOPSIS
latency [-p priority] [-h] [-m] [-st threshold] [-it threshold] [-c code_file] [-l log_file] [-R raw_file] [-n kernel] DESCRIPTION
The latency utility provides scheduling and interrupt-latency statistics. Due to the kernel tracing facility it uses to operate, the command requires root privileges. The arguments are as follows: -c code_file When the -c option is specified, it takes a path to a code file that contains the mappings for the system calls. This option over- rides the default location of the system call code file, which is found in /usr/share/misc/trace.codes. -h Display high resolution interrupt latencies and write them to latencies.csv (truncate existing file) upon exit. -m Display per-CPU interrupt latency statistics. -it threshold Set the interrupt latency threshold, expressed in microseconds. If the latency exceeds this value, and a log file has been speci- fied, a record of what occurred during this time is recorded. -l log_file Specifies a log file that is written to when either the interrupt or scheduling latency is exceeded. -n kernel By default, latency acts on the default /System/Library/Kernels/kernel.development. This option allows you to specify an alternate booted kernel. -p priority Specifies the priority level to observe scheduler latencies for. The default is realtime ( 97 ). A range of priorities to monitor can also be provided, for example 31-47 or 0-127 -st threshold Set the scheduler latency threshold in microseconds. If latency exceeds this, and a log file has been specified, a record of what occurred during this time is recorded. -R raw_file Specifies a raw trace file to use as input. The data columns displayed are as follows: SCHEDULER The number of context switches that fall within the described delay. INTERRUPTS The number of interrupts that fall within the described delay. The latency utility is also SIGWINCH savvy, so adjusting your window geometry will change the list of delay values displayed. SAMPLE USAGE
latency -p 97 -st 20000 -it 1000 -l /var/tmp/latency.log The latency utility will watch threads with priority 97 for scheduling latencies. The threshold for the scheduler is set to 20000 microsec- onds. The threshold for interrupts is set to 1000 microseconds. Latencies that exceed these thresholds will be logged in /var/tmp/latency.log. SEE ALSO
fs_usage(1), sc_usage(1), top(1) Mac OS X March 28, 2000 Mac OS X
All times are GMT -4. The time now is 05:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy