10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Guys, How all are doing?
I have an issue in Unix and want help from all of you
I have a file in UNIX which it read by line by line , If at the end of line '0' is written the it should fetch that line into another file and change '0' to '1'
and If at the end of line '1' is written then it... (10 Replies)
Discussion started by: adisky123
10 Replies
2. Shell Programming and Scripting
Hi Unix Gurus,
I need to grep for a block that is between a start and end keyword and then in between I need to find and replace a keyword.
for eg: I need to search between Test = 000; and Test = 000; and find K9 and replace with M9
INPUT FILE
Define {
Replace = K9;
Test =... (6 Replies)
Discussion started by: naveen@
6 Replies
3. Shell Programming and Scripting
I have a process running on two hosts in Active/Standby mode. Process running on active machine is handling the traffic while process running on Standby machine is sitting idle.
We have a debugging mechanism in which logs are generated on local machine. When logging is enabled then process running... (1 Reply)
Discussion started by: akhilonnet
1 Replies
4. AIX
I can get my AIX servers to show up in SCOM but I'm struggling with running personal scripts and have the result of these scripts show up in SCOM.
I'm currently using BigBrother and I've written some scripts for BB. I would like to convert these scripts to something that can be used in SCOM.
... (0 Replies)
Discussion started by: petervg
0 Replies
5. Shell Programming and Scripting
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
Discussion started by: shashi792
4 Replies
6. Linux
Hi,
I am creating a progress bar for file upload for which I have CGI script which copies the data and depending on certain bytes it increments the progress bar. Here, I am writing the incremented value to a file which is read by Ajax at server end. However, here I want to ask that, is it... (18 Replies)
Discussion started by: xs2punit
18 Replies
7. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
8. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I need information on file handling in UNIX enviornment.
If in UNIX enviornment I have two process..
P1
P2
Both accessing the same file simultaneosuly(read operation)..
Suppose P1 opened the file in read mode first and started reading the file..
Then P2 opens the same file in... (5 Replies)
Discussion started by: chibob
5 Replies
10. IP Networking
how do you get to know if the write operation for writing to a socket was succesful was succesful. (3 Replies)
Discussion started by: arjunjag
3 Replies
MULTIPATHD(8) System Manager's Manual MULTIPATHD(8)
NAME
multipathd - multipath daemon
SYNOPSIS
multipathd [options]
DESCRIPTION
The multipathd daemon is in charge of checking for failed paths. When this happens, it will reconfigure the multipath map the path belongs
to, so that this map regains its maximum performance and redundancy.
This daemon executes the external multipath config tool when events occur. In turn, the multipath tool signals the multipathd daemon when
it is done with devmap reconfiguration, so that it can refresh its failed path list.
OPTIONS
-d Forground Mode. Don't daemonize, and print all messages to stdout and stderr.
-v level
Verbosity level. Print additional information while running multipathd. A level of 0 means only print errors. A level of 3 or
greater prints debugging information as well.
-k multipathd will enter interactive mode. From this mode, the available commands can be viewed by entering "help". When you are fin-
ished entering commands, press CTRL-D to quit.
COMMANDS
The following commands can be used in interactive mode:
list|show paths
Show the paths that multipathd is monitoring, and their state.
list|show paths format $format
Show the paths that multipathd is monitoring, using a format string with path format wildcards.
list|show maps|multipaths
Show the multipath devices that the multipathd is monitoring.
list|show maps|multipaths format $format
Show the status of all multipath devices that the multipathd is monitoring, using a format string with multipath format wildcards.
list|show maps|multipaths status
Show the status of all multipath devices that the multipathd is monitoring.
list|show maps|multipaths stats
Show some statistics of all multipath devices that the multipathd is monitoring.
list|show maps|multipaths topology
Show the current multipath topology. Same as "multipath -ll".
list|show topology
Show the current multipath topology. Same as "multipath -ll".
list|show map|multipath $map topology
Show topology of a single multipath device specified by $map, e.g. 36005076303ffc56200000000000010aa. This map could be obtained
from "list maps".
list|show wildcards
Show the format wildcards used in interactive commands taking $format
list|show config
Show the currently used configuration, derived from default values and values specified within the configuration file /etc/multi-
path.conf.
list|show blacklist
Show the currently used blacklist rules, derived from default values and values specified within the configuration file /etc/multi-
path.conf.
list|show devices
Show all available block devices by name including the information if they are blacklisted or not.
list|show status
Show the number of path checkers in each possible state, the number of monitored paths, and whether multipathd is currently handling
a uevent.
add path $path
Add a path to the list of monitored paths. $path is as listed in /sys/block (e.g. sda).
remove|del path $path
Stop monitoring a path. $path is as listed in /sys/block (e.g. sda).
add map $map
Add a multipath device to the list of monitored devices. $map can either be a device-mapper device as listed in /sys/block (e.g.
dm-0) or it can be the alias for the multipath device (e.g. mpath1) or the uid of the multipath device (e.g.
36005076303ffc56200000000000010aa).
remove|del map $map
Stop monitoring a multipath device.
resize map|multipath $map
Resizes map $map to the given size
switch|switchgroup map $map group $group
Force a multipath device to switch to a specific path group. $group is the path group index, starting with 1.
reconfigure
Reconfigures the multipaths. This should be triggered automatically after any hotplug event.
suspend map|multipath $map
Sets map $map into suspend state.
resume map|multipath $map
Resumes map $map from suspend state.
fail path $path
Sets path $path into failed state.
reinstate path $path
Resumes path $path from failed state.
disablequeueing maps|multipaths
Disable queueing on all multipath devices.
restorequeueing maps|multipaths
Restore queueing on all multipath devices.
disablequeueing map|multipath $map
Disable queuing on multipathed map $map
restorequeueing map|multipath $map
Restore queuing on multipahted map $map
quit|exit
End interactive session.
SEE ALSO
multipath(8) kpartx(8) hotplug(8)
AUTHORS
multipathd was developed by Christophe Varoqui, <christophe.varoqui@opensvc.com> and others.
Linux Administrator's Manual November 2009 MULTIPATHD(8)