Sponsored Content
Top Forums Shell Programming and Scripting Help with awk to extract additional info Post 303015371 by prvnrk on Tuesday 3rd of April 2018 04:01:52 PM
Old 04-03-2018
Thank you RavinderSingh13 & RudiC

Both solutions worked! Smilie

Best regards,
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using cut to extract info

a simple question, how can i use cut (after using grep) to extract the last four digits on a line. so say i had a string http://blabla:9020, how would I extract the port?? -Fez (4 Replies)
Discussion started by: hafhaq
4 Replies

2. AIX

Extract info

Anyone have a better idea to automate extraction of info like ... "uname" "ifconfig" "ps efl" "netstat -ao" etc. from several hundred aix, solaris, red hat boxes? without logging into each box and manually performing these tasks and dumping them to individual files? thanks for any input (1 Reply)
Discussion started by: chm0dvii
1 Replies

3. Shell Programming and Scripting

how to extract info from a file using awk

Dear all I have a file call interfaces.txt Filename: interfaces.txt How can I extract the information at below? ABC_DB_001 hostname1 20901 ABC_DB_002 hostname2 20903 ABC_DB_003 hostname3 20905 Currently I am using a very stupid method grep ^ABC interfaces.txt > name.txt grep... (3 Replies)
Discussion started by: on9west
3 Replies

4. Shell Programming and Scripting

Using AWK BEGIN to extract file header info into variables

Hi Folks, I've searched for this for quite a while, but can't find any solution - hope someone can help. I have various files with standard headers. eg. <HEADER> IP: 1.2.3.4 Username: Joe Time: 12:00:00 Date: 23/05/2010 </HEADER> This is a test and this part can be any size... (6 Replies)
Discussion started by: damoske
6 Replies

5. Programming

Insert value from field1 to field2 with additional info

Need help - hopefully I explain it correctly I have a table in mysql database with multiple fields. 2 of the fields are called id and id_link id id_link 93 http://test_server/testpage.cgi?93 95 96 97 98 I need to find the correct sql to update all of the id_link... (2 Replies)
Discussion started by: frustrated1
2 Replies

6. Shell Programming and Scripting

Create a file from ls -l command and append additional info to results

I need to be able to take the results from ls -l command and modify the output as follows: I will run ls -l *.mak My results will be aa.mak bb.mak cc.mak I then need to take those results and create a file that has the following info: dsjj/ubin/aa dsjj/ubin/bb dsjj/ubin/cc ... (3 Replies)
Discussion started by: jclanc8
3 Replies

7. Forum Support Area for Unregistered Users & Account Problems

Sign in issues -- additional info as requested

User name: Michael Mullig <removed email addresses> (1 Reply)
Discussion started by: Mike Mullig
1 Replies

8. Shell Programming and Scripting

Extract info and do algebra on it by sed or awk

Hello everyone, I need to extract some information from a csv file and further need to do some algebraic calculations on those information and then to throw the result in a new file. Here is a sample from my data.csv file; Col1,Col2,Col3,Col4,Col5,Col6,Col7... (19 Replies)
Discussion started by: hayreter
19 Replies

9. Shell Programming and Scripting

How to extract info from pings.?

Hi guys, new to this forum. I am currently trying to extract the times from pinging a domain and list the top 3 and then also do the opposite i.e. list the bottom 3. so if I had this as a ping result (the bold part is what I want): 64 bytes from 193.120.166.90: icmp_seq=10 ttl=128 time=34.8... (5 Replies)
Discussion started by: acoding
5 Replies

10. Shell Programming and Scripting

awk to extract multiple values from file and add two additional fields

In the attached file I am trying to use awk to extract multiple values and create the tab-delimited desired output. In the output R_Index is a the sequential # and Pre_Enrichment is defaulted to .. I can extract from the values to the side of the keywords, but most are above and I can not... (2 Replies)
Discussion started by: cmccabe
2 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)
All times are GMT -4. The time now is 04:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy