Here is my problem..
1. I want to search all those files with file name starting AJ128****
(in all the sub directories also)
2. I want to search for the follwoing type of string
line beging with string - 'AK*any_1_char*any_2_char*510'
3. I need to display list of file names... (2 Replies)
Hi,
I want to grep the line which has 'data11'.then from that line, i need to trace back and find out the immediate line which has the same timestamp of that grepped line.
for eg:
log file:
-----------
Process - data
Process - datavalue - 2345
Process - data
Process - data
Process... (9 Replies)
Hi all,
I'm new in UNIX , so how to check if stringA is present within stringB ?
Something similar to INSTR function in pl sql...
Thanks a lot. (12 Replies)
Hi ,
I have input file and i want to extract below strings
<msisdn xmlns="">0492001956</ msisdn> => numaber inside brackets
<resCode>3000</resCode> => 3000 needs to be extracted
<resMessage>Request time
getBalances_PSM.c(37): d out</resMessage></ns2:getBalancesResponse> => the word... (14 Replies)
Hi Experts,
Help needed on joining one line above & below to the pattern matched string line.
The input file, required output is mentioned below
Input file
ABCD DEFG5 42.0.1-63.38.31
KKKK iokl IP Connection Available
ABCD DEFG5 42.0.1-63.38.31
... (7 Replies)
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Hi,
I have two files file1.txt and file2.txt. Please see the attachments.
In file2.txt (which actually is a diff output between two versions of file1.txt.), I extract the pattern corresponding to 1172c1172. Now ,In file1.txt I have to search for this pattern 1172c1172 and if found, I have to... (9 Replies)
I have below file listing
] ls -1 *.txt
MISTradesReport_141105_d130240_VOLCKER_EMEA_LOANIQ_FEED_2013-12-24.txt
MISTradesReport_141106_d130240_VOLCKER_NA_LOANIQ_FEED_2013-12-24.txt
MISTradesReport_141107_d130240_VOLCKER_EMEA_CDS_CRDI_FEED_2013-12-24.txt... (4 Replies)
I need to search a string for some specific text which is no big deal using grep. My problem is when the search fails to find the text. I need to add text like "na" when my search does not match.
I have tried this command but it does not work when I put the command in a loop in a bash script:
... (12 Replies)
How to grep for searching a string within a begin and end pattern of a file.
Sent from my Redmi 3S using Tapatalk (8 Replies)
Discussion started by: Baishali
8 Replies
LEARN ABOUT HPUX
vxpfto
vxpfto(1M)vxpfto(1M)NAME
vxpfto - set Powerfail Timeout (pfto)
SYNOPSIS
vxpfto -g diskgroup -t timeout
vxpfto [-g diskgroup] -t timeout volume_list
vxpfto [-g diskgroup] -o pftostate={enabled|disabled}
vxpfto [-g diskgroup] -o pftostate={enabled|disabled} volume_list
DESCRIPTION
Powerfail Timeout is an attribute of a SCSI disk connected to an HP-UX host (see the pfto(7) man page). The vxpfto command sets the Power-
fail Timeout interval on a set of Volume Manager disks, either all disks in a disk group, or all disks underlying the volumes listed.
The first form of the command sets the same PFTO value for all the disks in the specified VxVM diskgroup.
In the second form, all disks underlying the given list of volumes are selected, optionally restricted by the disk group specified with the
-g option. If you specify a diskgroup, any volume in the list not belonging to the diskgroup is ignored.
Use the -o pftostate option to disable or enable PFTO. By default, PFTO is enabled. You can enable PFTO either on all disks in a disk
group, or on all disks underlying the volumes listed.
If you invoke vxpfto without arguments, it displays a usage message.
OPTIONS -g diskgroup
Specifies the disk group for the operation, either by disk group ID or by disk group name.
-o pftostate={enabled|disabled}
Enables or disables the use of PFTO for IO.
-t timeout
Specifies the PFTO value in seconds. The value must be zero or a positive integer. Zero represents the system default PFTO
value. The default value depends on the disk driver controlling the disk device.
volume_list
A list of VxVM volume names. List items must be separated by white-space.
EXIT CODES
vxpfto returns a zero if successful. If it encounters an error, vxpfto exits and displays a message on standard error. Defined exit codes
are:
0 Success.
1 No PFTO value specified.
2 No diskgroup or volume list specified.
3 Illegal PFTO value specified.
EXAMPLES
Set the PFTO value on all disks in disk group testdg to 100 seconds:
vxpfto -t 100 -g testdg
Set the PFTO value to 50 seconds on all disks underlying volume01 and volume02 in disk group testdg:
vxpfto -t 50 -g testdg volume01 volume02
Set the PFTO value to 300 seconds on all disks underlying volume01 and volume02, even though they are not in the same disk group:
vxpfto -t 300 volume01 volume02
Disable PFTO on all disks in disk group testdg:
vxpfto -g testdg -o pftostate=disabled
Enable PFTO on all disks underlying volume01 and volume02i in disk group testdg:
vxpfto -g testdg -o pftostate=enabled volume01 volume02
SEE ALSO vxdisk(1M), pfto(7)VxVM 5.0.31.1 24 Mar 2008 vxpfto(1M)