01-22-2012
Hi Frnd
Thanks for your help ..I am trying to do the same but it is not working
Would you please write the exact command
For example: I want to set both interval and count to "2"
Your response will be really helpful
10 More Discussions You Might Find Interesting
1. AIX
Guys,
I am beginer in unix. There is a cobol file with fixed-width. I want to read the total Line, Word and character count. I have tried with wc-l unix command, but it returns '0'.
Please advice me the correct command/steps to get the record count.
Thanks in advance. (4 Replies)
Discussion started by: vibhar
4 Replies
2. Shell Programming and Scripting
Dear All,
I have a script as follows:
1 #! /bin/ksh
2 #
28 varDate=`date +%d%h%y`
29 export spool_file=/app/my_user/work/TH_Status_${varDate}_Check.txt
30
31 #########################
32 # Unix Code Starts here #
33 #########################
... (3 Replies)
Discussion started by: saps19
3 Replies
3. UNIX for Dummies Questions & Answers
Hi
I want to make a script . In this script i want to use input file and this input file consist of three numbers in a line
for example input file is as below:
919876543210 09876543234567876 98764534245678 aircelmms","aircelweb","aircelwap"
096574235625... (2 Replies)
Discussion started by: esumiba
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
i am using expect module and trying to login using following code.
ssh 127.0.0.1
expect "word:"
send "$password \n"
kindly let me know the login script using expect module (1 Reply)
Discussion started by: esumiba
1 Replies
5. UNIX for Dummies Questions & Answers
Hi
i have a file in which there are three fields
code:
919804199233 404911130003916 357266044991350F
and now i want to add two more fields i.e.
code:
919804199233 404911130003916 357266044991350F ms 123
how can i do it using command line
and if have a file of 100... (8 Replies)
Discussion started by: esumiba
8 Replies
6. UNIX for Dummies Questions & Answers
HI
I am trying to check the status of port using command
/code:
netstat -an | grep port
/Output:
*.2009 *.* 0 0 65535 0 LISTEN
what i am trying to do is
i want to grep only status Wether the port is established/listen if so show ok else... (1 Reply)
Discussion started by: esumiba
1 Replies
7. Shell Programming and Scripting
hi all,
when i tried executing the script by giving following command
$ sh test.sh <parameter>
it shows the following output:
<none>
status code=0
Previously it was working fine.But now its showing this output. (1 Reply)
Discussion started by: sanjay mn
1 Replies
8. Shell Programming and Scripting
Hi,
I have been trying to run a simple script
CONFIG_FILE="/jay/check"
.
.
.
for i in `cat $CONFIG_FILE`
do
loc=`echo $i | cut -d "|" -f2`
var=$(find $loc -mtime -1|wc -l)
if then
echo $loc has files older than 1 day
fi
done
.
.
. (2 Replies)
Discussion started by: jayii
2 Replies
9. UNIX for Dummies Questions & Answers
How to search a pattern from multiple files...
i used the command suppose the pattern name is xxx
grep xxx (file1-o- file2-o- file3)
Thanks in advance (4 Replies)
Discussion started by: ksakil
4 Replies
10. Shell Programming and Scripting
I am trying to explore HERE Document in UNIX.
Here is the sample script that i am trying to execute:
#!/bin/sh
filename=sample.txt
vi $filename <<EOF
i
This file was created automatically from
a shell script.
^
Here is the error i received when i execute above script:
Vim: Warning: Input... (3 Replies)
Discussion started by: satty007
3 Replies
LEARN ABOUT CENTOS
cifsiostat
CIFSIOSTAT(1) Linux User's Manual CIFSIOSTAT(1)
NAME
cifsiostat - Report CIFS statistics.
SYNOPSIS
cifsiostat [ -h ] [ -k | -m ] [ -t ] [ -V ] [ interval [ count ] ]
DESCRIPTION
The cifsiostat command displays statistics about read and write operations on CIFS filesystems.
The interval parameter specifies the amount of time in seconds between each report. The first report contains statistics for the time since
system startup (boot). Each subsequent report contains statistics collected during the interval since the previous report. A report con-
sists of a CIFS header row followed by a line of statistics for each CIFS filesystem that is mounted. The count parameter can be specified
in conjunction with the interval parameter. If the count parameter is specified, the value of count determines the number of reports gener-
ated at interval seconds apart. If the interval parameter is specified without the count parameter, the cifsiostat command generates
reports continuously.
REPORT
The CIFS report provides statistics for each mounted CIFS filesystem. The report shows the following fields:
Filesystem:
This columns shows the mount point of the CIFS filesystem.
rB/s (rkB/s, rMB/s)
Indicate the average number of bytes (kilobytes, megabytes) read per second.
wB/s (wkB/s, wMB/s)
Indicate the average number of bytes (kilobytes, megabytes) written per second.
rop/s
Indicate the number of 'read' operations that were issued to the filesystem per second.
wop/s
Indicate the number of 'write' operations that were issued to the filesystem per second.
fo/s
Indicate the number of open files per second.
fc/s
Indicate the number of closed files per second.
fd/s
Indicate the number of deleted files per second.
OPTIONS
-h Make the CIFS report easier to read by a human.
-k Display statistics in kilobytes per second.
-m Display statistics in megabytes per second.
-t Print the time for each report displayed. The timestamp format may depend on the value of the S_TIME_FORMAT environment variable
(see below).
-V Print version number then exit.
ENVIRONMENT
The cifsiostat command takes into account the following environment variables:
S_TIME_FORMAT
If this variable exists and its value is ISO then the current locale will be ignored when printing the date in the report header.
The nfsiostat command will use the ISO 8601 format (YYYY-MM-DD) instead. The timestamp displayed with option -t will also be com-
pliant with ISO 8601 format.
BUG
/proc filesystem must be mounted for cifsiostat to work.
FILE
/proc/fs/cifs/Stats contains CIFS statistics.
AUTHORS
Written by Ivana Varekova (varekova <at> redhat.com)
Maintained by Sebastien Godard (sysstat <at> orange.fr)
SEE ALSO
sar(1), pidstat(1), mpstat(1), vmstat(8), iostat(1), nfsiostat(1)
http://pagesperso-orange.fr/sebastien.godard/
Linux JULY 2012 CIFSIOSTAT(1)