Has anyone seen this before?
if i ls a particular directory (an email Maildir) i get a long list of files, if i 'du -h' that same directory, i get messages like:
du: `./1053894791.17207_0.srweb,S=6199': No such file or directory
strange. so using tab will complete this filename too, giving... (3 Replies)
Hi,
Could some one help me to get rid of visually blank lines from a file using shell or awk or sed (on Solaris machine)?
When I use grep grep -v ^$ inputfile >outputfile it removes some blank lines.. but it seems some tab plus space balnk lines remains.
thaen I used "grep -v '^]*$' ... (1 Reply)
Dear users,
I googled for a while, but i have got a lot of different answers regarding a simple unix command.
lets say there are a lot of files in a directory.
How can i list the files in a directory whose file types is "text"?
Thank you in advance (4 Replies)
I have a setup where I have two drives.
TV
TVbackup
For what ever reason, I have a lot of content on my TVbackup drive which isn't on my TV drive.
I want to copy all the files across which are on TVbackup but are not currently on TV.
If there is a file with the same name but a... (2 Replies)
Dear all,
I am trying to sort a text file based on column 3, 10, 11 and 12. But certain column are blank for some lines. Column 3 has to be in ascending order after sorting.
Part of my input file is as follows:
CN727990 1 A01 4703 5083 73.28 - A_scaffold000011 4365605 4365985 73.28 +... (10 Replies)
Hi,
i have a csv file which have headers and values of it like below :
headers --> CI Ref SerialNumber LastScanDate
values --> VMware-42,VMware-42,Tue, 20 May 2014 11:03:44 +0000
i want to have a above csv in below format :
headers --> CI Name CI Description CI Ref... (6 Replies)
Hello,
I have some tab delimited files that may contain blank columns. I would like to delete the blank columns if they exist. There is no clear pattern for when a blank occurs.
I was thinking of using sed to replace instances of double tab with blank,
sed 's/\t\t//g'
All of the examples... (2 Replies)
I have a file with the following format:
X|High|2|GIC|DM||XHM|||6 Months
X|Moderate|2|GIC|DM||XHM|||6 Months
X|High|2|GCM|DM||XSF|||6 Months
X|Med|2|GCM|DM||XSF|||6
Here there are ten columns but I need to print rows having blank records in any of the rows (except for 6th,8th and 9th... (10 Replies)
Hi, I would like to seek your help for a script that will extract data from log file and put it in a file.
Sample log file
2018-10-23 12:33:21 AI ERROR -- tpid: SAMPLE_TH account: 123456789 aiSessionNumber: 660640464 mapName: xxx to yyy
errorDesc: Translation Error:ErrorNumber : 993 ... (2 Replies)
Discussion started by: neverwinter112
2 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_ethmonitor
OCF_HEARTBEAT_ETHMON(7) OCF resource agents OCF_HEARTBEAT_ETHMON(7)NAME
ocf_heartbeat_ethmonitor - Monitors network interfaces
SYNOPSIS
ethmonitor [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
Monitor the vitality of a local network interface.
You may set up this RA as a clone resource to monitor the network interfaces on different nodes, with the same interface name. This is not
related to the IP address or the network on which a interface is configured. You may use this RA to move resources away from a node, which
has a faulty interface or prevent moving resources to such a node. This gives you independend control of the resources, without involving
cluster intercommunication. But it requires your nodes to have more than one network interface.
The resource configuration requires a monitor operation, because the monitor does the main part of the work. In addition to the resource
configuration, you need to configure some location constraints, based on a CIB attribute value. The name of the attribute value is
configured in the 'name' option of this RA.
Example constraint configuration: location loc_connected_node my_resource_grp rule ="rule_loc_connected_node" -INF: ethmonitor eq 0
The ethmonitor works in 3 different modes to test the interface vitality. 1. call ip to see if the link status is up (if link is down ->
error) 2. call ip and watch the RX counter (if packages come around in a certain time -> success) 3. call arping to check whether any of
the IPs found in the local ARP cache answers an ARP REQUEST (one answer -> success) 4. return error
SUPPORTED PARAMETERS
interface
The name of the network interface which should be monitored (e.g. eth0).
(unique, required, string, no default)
name
The name of the CIB attribute to set. This is the name to be used in the constraints. Defaults to "ethmonitor-'interface_name'".
(unique, optional, string, no default)
multiplier
Multiplier for the value of the CIB attriobute specified in parameter name.
(optional, integer, default 1)
repeat_count
Specify how often the interface will be monitored, before the status is set to failed. You need to set the timeout of the monitoring
operation to at least repeat_count * repeat_interval
(optional, integer, default 5)
repeat_interval
Specify how long to wait in seconds between the repeat_counts.
(optional, integer, default 10)
pktcnt_timeout
Timeout for the RX packet counter. Stop listening for packet counter changes after the given number of seconds.
(optional, integer, default 5)
arping_count
Number of ARP REQUEST packets to send for every IP. Usually one ARP REQUEST (arping) is send
(optional, integer, default 1)
arping_timeout
Time in seconds to wait for ARP REQUESTs (all packets of arping_count). This is to limit the time for arp requests, to be able to send
requests to more than one node, without running in the monitor operation timeout.
(optional, integer, default 1)
arping_cache_entries
Maximum number of IPs from ARP cache list to check for ARP REQUEST (arping) answers. Newest entries are tried first.
(optional, integer, default 5)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 20s.
stop
Stops the resource. Suggested minimum timeout: 20s.
status
Performs a status check. Suggested minimum timeout: 20s. Suggested interval: 10s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. 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: 20s.
EXAMPLE
The following is an example configuration for a ethmonitor resource using the crm(8) shell:
primitive p_ethmonitor ocf:heartbeat:ethmonitor
params
interface=string
op monitor depth="0" timeout="20s" interval="10s"
SEE ALSO
http://www.linux-ha.org/wiki/ethmonitor_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_ETHMON(7)