I just had a filesystem / file corruption issue on my HSP's server due to disk capacity limits and fileswapping. I discovered that certain files got corrupted when fileswapping was not successful and they ended up with a string of control characters, or what I believe to be nulls, in them.
Does... (4 Replies)
One of my outout is like this as shown below. How can I grep only the lines after the line "Affected files ...". No of lines after the line "Affected files ..." may vary.
$ cat file_A
Change 149133 by csaha@test_depo_csaha on 2006/02/08 01:40:57 *pending*
This is to test change #... (5 Replies)
i am calling a pl/sql procedure through a shell script, there is one IN and 2 OUT parameter required to pass to the procedure to execute..
My procedure is XX_CITIDIRECT_EXP_PKG.main_proc and In parameter is p_period which I wanto to pass 'MAY-06'.
Can anyone figure out, whats is wrong here
... (4 Replies)
Say I write something like the following:
var1=1
var2=2
for int in 1 2
do
echo "\$var$int"
done
I want the output to be:
1
2
Instead I get something like:
$var1
$var2 (2 Replies)
i have a ksh script :
#!/bin/ksh
TZ=`date +%Z`+24 ;a=`date +%Y-%m-%d`
b=`date +"%H:%M:%S"`
cd /ednadtu3/u01/pipe/logs
for i in Archiver1.log
do
cat $i | grep $a | grep $b >> /ednadtu3/u01/pipe/naveed/Insert_Date.txt
done... (4 Replies)
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Hi,
i have to find a string in a file and positin of the string in the file would come in some particular interval.
let's say file is 1-1000 lines and string is in from 200-300line.
could any one suggest me how to get make the grep search for the string in that particular portion of the... (4 Replies)
Hi
I am looking for a unix command or a small shell script which can takes one parameter and then searches for the passed in the parameter in any or all files under say /home/dev/
Can anyone please help me on this? (3 Replies)
i am passing input parameter 'one_two' to the script , the script output should display the result as below
one_1two
one_2two
one_3two
if
then
echo " Usage : <$0> <DATABASE> "
exit 0
else
for DB in 1 2 3
do
DBname=`$DATABASE | awk -F "_" '{print $1_${DB}_$2}`
done
fi (5 Replies)
Any good way to check if code has the required output
# /sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts
net.ipv4.icmp_echo_ignore_broadcasts = 1
/sbin/sysctl net.ipv4.icmp_echo_ignore_broadcasts | grep "= 1"
net.ipv4.icmp_echo_ignore_broadcasts = 1
What I can think of is above, and it... (16 Replies)
Discussion started by: alvinoo
16 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_squid
OCF_HEARTBEAT_SQUID(7) OCF resource agents OCF_HEARTBEAT_SQUID(7)NAME
ocf_heartbeat_Squid - Manages a Squid proxy server instance
SYNOPSIS
Squid [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
The resource agent of Squid. This manages a Squid instance as an HA resource.
SUPPORTED PARAMETERS
squid_exe
This is a required parameter. This parameter specifies squid's executable file.
(required, string, no default)
squid_conf
This is a required parameter. This parameter specifies a configuration file for a squid instance managed by this RA.
(unique, required, string, no default)
squid_pidfile
This is a required parameter. This parameter specifies a process id file for a squid instance managed by this RA.
(unique, required, string, no default)
squid_port
This is a required parameter. This parameter specifies a port number for a squid instance managed by this RA. If plural ports are used,
you must specifiy the only one of them.
(unique, required, integer, no default)
squid_stop_timeout
On stop, a squid shutdown is invoked first. If the resource doesn't stop within this timeout, we resort to stopping processes by
sending signals and finally KILLing them.
(optional, integer, default 10)
debug_mode
This is an optional parameter. This RA runs in debug mode when this parameter includes 'x' or 'v'. If 'x' is included, both of STDOUT
and STDERR redirect to the logfile specified by "debug_log", and then the builtin shell option 'x' is turned on. It is similar about
'v'.
(optional, string, no default)
debug_log
This is an optional and omittable parameter. This parameter specifies a destination file for debug logs and works only if this RA run
in debug mode. Refer to "debug_mode" about debug mode. If no value is given but it's requied, it's made by the following rules:
"/var/log/" as a directory part, the basename of the configuration file given by "syslog_ng_conf" as a basename part, ".log" as a
suffix.
(optional, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 60s.
stop
Stops the resource. Suggested minimum timeout: 120s.
status
Performs a status check. Suggested minimum timeout: 60.
monitor
Performs a detailed status check. Suggested minimum timeout: 30s. Suggested interval: 10s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a Squid resource using the crm(8) shell:
primitive p_Squid ocf:heartbeat:Squid
params
squid_exe=string
squid_conf=string
squid_pidfile=string
squid_port=integer
op monitor depth="0" timeout="30s" interval="10s"
SEE ALSO
http://www.linux-ha.org/wiki/Squid_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_SQUID(7)