09-22-2010
Hi.
Yep, the "status" line finishes at the dot...
Ok, if i issue your command...I get all processes runnning including the "Waiting" ones...
q proc | grep -e "Process Number" -e Waiting
Process Number: 25,823
Process Number: 32,660
Process Number: 32,706
Process Number: 32,901
Status: Volume 701827 (storage pool TAPEUNIX_DB), Moved Files: 0, Moved Bytes: 0, Unreadable Files: 0, Unreadable Bytes: 0. Current Physical File (bytes): 282,139,213 Waiting for mount of input volume 701827 (456 seconds). Current output volume: 210214L4.
Process Number: 32,902
Status: Volume 700740 (storage pool TAPEUNIX_DB), Moved Files: 0, Moved Bytes: 0, Unreadable Files: 0, Unreadable Bytes: 0. Current Physical File (bytes): 62,175,904,037 Waiting for mount of input volume 700740 (456 seconds). Current output volume: 210318L4.
What if i only wanted the processes that contain the "status" waiting?
Thanks again.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a .txt file
Sample:
=====================
NEXT HOST
=====================
AEADBAS001
ip access-list extended BLA_Incoming_Filter
ip access-list extended BLA_Outgoing_Filter
access-list 1 permit xxxxxxxxxxxxxx
access-list 2 permit xxxxxxxxxxxxxx
=====================... (4 Replies)
Discussion started by: I-1
4 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
3. Shell Programming and Scripting
Hi All
Can u help me..
My problem is delete word per line
sample:
cat /tmp/file.txt
monitor 192.168.1.11 Copying files in current directory 1
monitor 192.168.1.1 Copying files in current directory 2
monitor 192.168.1.12 Copying files in current directory 3
monitor 192.168.1.14... (1 Reply)
Discussion started by: carnegiex
1 Replies
4. UNIX for Dummies Questions & Answers
how do i use this in a grep pattern, the output is inventory (3 Replies)
Discussion started by: 3dd1e
3 Replies
5. Shell Programming and Scripting
Hi all,
can any one suggest me the script to grep multiple strings from ps -ef
pls correct the below script . its not working/
i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK.
bash-3.00$ ps -ef | grep blu
lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies
6. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
7. Shell Programming and Scripting
Hi all.
I have a .txt file that I need to sort it
My file is like:
1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO)
2- ... (10 Replies)
Discussion started by: Behrouzx77
10 Replies
8. Shell Programming and Scripting
Hi everybody,
I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o
My code:
#!/bin/sh
set -e
set -u
export IFS=
optl="Optl"
LOCSTORCLI="/opt/lsi/storcli/storcli"
($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies
9. Shell Programming and Scripting
SUSE linux
bash shell
this works
test -d /tmpp && echo "directory exists" || echo "directory doesn't exists" |sed -e "s/^/prefix /"
prefix directory doesn't exists
but why doesn't this work?
test -d /tmp && echo "directory exists" || echo "directory doesn't exists" |sed -e... (3 Replies)
Discussion started by: snoman1
3 Replies
10. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT XFREE86
fs_examine
FS_EXAMINE(1) AFS Command Reference FS_EXAMINE(1)
NAME
fs_examine - Shows data about the volume containing a directory or file
SYNOPSIS
fs examine [-path <dir/file path>+] [-help]
fs exa [-p <dir/file path>+] [-h]
fs listvol [-p <dir/file path>+] [-h]
fs listv [-p <dir/file path>+] [-h]
fs lv [-p <dir/file path>+] [-h]
DESCRIPTION
The fs examine command displays information about the volume containing each specified directory or file, including its volume ID number,
quota and the percentage of its quota that is used.
This command provides the most information about a volume, but the fs listquota command displays similar information in tabular format, and
the fs quota command reports only the percentage of quota used.
To set volume quota, use the fs setquota or fs setvol command.
CAUTIONS
The partition-related statistics in this command's output do not always agree with the corresponding values in the output of the standard
UNIX df command. The statistics reported by this command can be up to five minutes old, because the Cache Manager polls the File Server for
partition information at that frequency. Also, on some operating systems, the df command's report of partition size includes reserved space
not included in this command's calculation, and so is likely to be about 10% larger.
OPTIONS
-path <dir/file path>+
Names a file or directory that resides in the volume about which to produce output. Partial pathnames are interpreted relative to the
current working directory, which is also the default value if this argument is omitted.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The output displays information about the volume that houses each specified directory or file, in the following format
Volume status for vid = I<volume ID> named I<volume name>
Current offline message is I<message>
Current disk quota is I<quota in kilobytes>
Current blocks used are I<volume size in kilobytes>
The partition has I<available partition> blocks available out of
I<partition size>
where the first line specifies the volume's ID number and name. The "Current offline message" line appears only if an administrator has
included the -offlinemsg argument to the fs setvol command. The remaining lines report, respectively,
o The volume's quota in kilobytes, or the string "unlimited" to indicate an unlimited quota.
o The volume's current size in kilobytes.
o The number of blocks available and total size of the host partition, both in kilobytes.
EXAMPLES
The following example shows the output for the volume "user.smith" and the partition housing it:
% fs examine -path /afs/abc.com/usr/smith
Volume status for vid = 50489902 named user.smith
Current maximum quota is 15000
Current blocks used are 5073
The partition has 336662 blocks available out of 4177920
PRIVILEGE REQUIRED
The issuer must have the "r" (read) permission on the ACL of the root directory of the volume that houses the file or directory named by
the -path argument, and "l" (list) permission on the ACL of each directory that precedes it in the pathname.
SEE ALSO
fs_listquota(1), fs_quota(1), fs_setquota(1), fs_setvol(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 FS_EXAMINE(1)