Hello All,
I have a script that will email out if the email address is specified as parameter 1.
I am using ksh, and then tried the following :
email=$1
Following did not work, I am getting error
test -z $email
test ${email:=" ") -eq " "
test -n $email
test ${?email}
What... (4 Replies)
I am making a script to check the parameters, but it seems that I can't catch the parameters by loop.
$ cat sendmsg.sh
#!/bin/sh
## Parameter Check
i=0
max=$#
while
do
PARAM=$${i}
i=`expr ${i} + 1`
echo ${PARAM}
done
How can I get the $1, $2, $3 by loop and set their... (2 Replies)
Hi,
Can anyone help in the below problem.
file1 has the below contents
fileset 999 primary-ilist inode 37020 has invalid dotdot (426094) -> Not exist
fileset 999 primary-ilist inode 115016 dup block ->... (9 Replies)
Hi Guys,
I am writing a Unix script which accepts a directory path as parameter $1
so something like
/user5.data/WA/01
will be passed in.
I want to determine if the directory path passed in contains "WA" as above (because then I need to do something specific if it does)
What is the... (9 Replies)
Hi ,
I am facing a problem .. which looks simple... but took 2 days of mine.. even now it is not solved completely..
I have one variable..., want to know whether that variable contains number... canbe +ve or -ve ...
Values
+35 --- number
-43 --- number
45A -- non number... (12 Replies)
Hi,
Can anyone help me out to check whether the input argument is number?
Example:
REQUEST_ID="123456"
I need to check the REQUEST_ID value is number or string.
Thanks in Advance
Regards
BS (6 Replies)
Hi all
i need to check that if user has passed any input parameter while executing he shell script like
./test1.sh -a"-v"
then do smothing
if user execute the script without giving input paramater then
./test1.sh
then do something
how can we check this input parameter (6 Replies)
Hi there,
I am having a problem on an AIX server running a WebSphere MQ instance. The problem is that sometimes it seems to reach process limit, but I do not find the processes themselves.
What I see: succeed to log in (as root from console os as nonpriviliged user via ssh). Trying to run... (19 Replies)
Discussion started by: trifo75
19 Replies
LEARN ABOUT SUSE
ocf_heartbeat_ids
OCF_HEARTBEAT_IDS(7) OCF resource agents OCF_HEARTBEAT_IDS(7)NAME
ocf_heartbeat_ids - Manages an Informix Dynamic Server (IDS) instance
SYNOPSIS
ids [start | stop | status | monitor | validate-all | meta-data | methods | usage]
DESCRIPTION
OCF resource agent to manage an IBM Informix Dynamic Server (IDS) instance as an High-Availability resource.
SUPPORTED PARAMETERS
informixdir
The value the environment variable INFORMIXDIR has after a typical installation of IDS. Or in other words: the path (without trailing
'/') where IDS was installed to. If this parameter is unspecified the script will try to get the value from the shell environment.
(optional, string, no default)
informixserver
The value the environment variable INFORMIXSERVER has after a typical installation of IDS. Or in other words: the name of the IDS
server instance to manage. If this parameter is unspecified the script will try to get the value from the shell environment. (optional,
string, no default)
onconfig
The value the environment variable ONCONFIG has after a typical installation of IDS. Or in other words: the name of the configuration
file for the IDS instance specified in INFORMIXSERVER. The specified configuration file will be searched at '/etc/'. If this parameter
is unspecified the script will try to get the value from the shell environment. (optional, string, no default)
dbname
This parameter defines which database to use in order to monitor the IDS instance. If this parameter is unspecified the script will use
the 'sysmaster' database as a default. (optional, string, default sysmaster)
sqltestquery
SQL test query to run on the database specified by the parameter 'dbname' in order to monitor the IDS instance and determine if it's
functional or not. If this parameter is unspecified the script will use 'SELECT COUNT(*) FROM systables;' as a default. (optional,
string, default SELECT COUNT(*) FROM systables;)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 120.
stop
Stops the resource. Suggested minimum timeout: 120.
status
Performs a status check. Suggested minimum timeout: 60.
monitor
Performs a detailed status check. Suggested minimum timeout: 30. Suggested interval: 10.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
methods
Suggested minimum timeout: 5.
usage
Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a ids resource using the crm(8) shell:
primitive example_ids ocf:heartbeat:ids
op monitor depth="0" timeout="30" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/ids_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_IDS(7)