7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am looking for a help in designing a bash script on linux which can do below:-
1) Look in a specific directory for any new files
2) Mail the content of the new file
Appreciate any help
Regards
Neha (5 Replies)
Discussion started by: neha0785
5 Replies
2. Shell Programming and Scripting
Hi,
Have written a script to monitor linux non standard log file based on line numbers, so each check store $otalinenum ..
then in next check after 10 minutes it compre the current_total_line_num > last_total_line_num then it will parse the log file from last_total_line_num to... (0 Replies)
Discussion started by: Shirishlnx
0 Replies
3. Shell Programming and Scripting
Hi
I want to write a script, help me to monitor command output.
This script like Linux "watch" command.
Below is my script:
# cat watch.sh
#!/bin/bash
while true
do
clear
echo "command: $*"
( $* )
sleep 2
done
Then I run this script below (2 Replies)
Discussion started by: nnnnnnine
2 Replies
4. Shell Programming and Scripting
I'm new to Linux and have very limited experience with shell scripts in general. I am taking a class and I have to research online and come up with a shell script that monitors disk space. I also have to be able to explain it line by line. I've researched various sites and came across this shell... (3 Replies)
Discussion started by: wgreg23
3 Replies
5. Shell Programming and Scripting
Hi,
the following shell script is not working on linux box
sugeestions appreciated.
FILE1=/tmp/check1.txt
FILE2=/tmp/check2.txt
df -k | awk '{if (NR != 1)
print $5 $6}' > ${FILE1}
awk -F"%" '{if ($1 > 90) print "Warning: Filesystem " $2 " over 90% threshold (" $1 "%)"}' ${FILE1} >... (7 Replies)
Discussion started by: prakash.gr
7 Replies
6. Shell Programming and Scripting
We have a process that is running out of file handles. Is there some command line way to determine this that we can include into a cron script?
Please let me know
JAK (3 Replies)
Discussion started by: jakSun8
3 Replies
7. UNIX for Dummies Questions & Answers
Hi i am an fresh engineer working in a Embedding company and i am new to linux so any one help me to teach or tell how to open a WinZip file in linux as i use gunzip but hte file suffix is not gz so can any one healp me...
urs
... (2 Replies)
Discussion started by: wagmare
2 Replies
OCF_HEARTBEAT_NFSSER(7) OCF resource agents OCF_HEARTBEAT_NFSSER(7)
NAME
ocf_heartbeat_nfsserver - Manages an NFS server
SYNOPSIS
nfsserver [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Nfsserver helps one to manage the Linux nfs server as a failover-able resource in Linux-HA. It depends on Linux specific NFS implementation
details, so is considered not portable to other platforms yet.
SUPPORTED PARAMETERS
nfs_init_script
The default init script shipped with the Linux distro. The nfsserver resource agent offloads the start/stop/monitor work to the init
script because the procedure to start/stop/monitor nfsserver varies on different Linux distro. (optional, string, default
/etc/init.d/nfsserver)
nfs_notify_cmd
The tool to send out NSM reboot notification. Failover of nfsserver can be considered as rebooting to different machines. The nfsserver
resource agent use this command to notify all clients about the happening of failover. (optional, string, default /sbin/sm-notify)
nfs_shared_infodir
The nfsserver resource agent will save nfs related information in this specific directory. And this directory must be able to fail-over
before nfsserver itself. (required, string, no default)
nfs_ip
The floating IP address used to access the nfs service (required, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 40.
stop
Stops the resource. Suggested minimum timeout: 20s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 30.
EXAMPLE
The following is an example configuration for a nfsserver resource using the crm(8) shell:
primitive p_nfsserver ocf:heartbeat:nfsserver
params
nfs_shared_infodir=string
nfs_ip=string
op monitor depth="0" timeout="20s" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/nfsserver_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_NFSSER(7)