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)
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)
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)
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)
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)
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
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)
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)
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
LEARN ABOUT CENTOS
mpathconf
MPATHCONF(8) Linux Administrator's Manual MPATHCONF(8)NAME
mpathconf - A tool for configuring device-mapper-multipath
SYNOPSIS
mpathconf [commands] [options]
DESCRIPTION
mpathconf is a utility that creates or modifies /etc/multipath.conf. It can enable or disable multipathing and configure some common
options. mpathconf can also load the dm_multipath module, start and stop the multipathd daemon, and configure the multipathd service to
start automatically or not. If mpathconf is called with no commands, it will display the current configuration.
The default options for mpathconf are --with_module The --with_multipathd option is not set by default. Enabling multipathing will load
the dm_multipath module but it will not immediately start it. This is so that users can manually edit their config file if necessary,
before starting multipathd.
If /etc/multipath.conf already exists, mpathconf will edit it. If it does not exist, mpathconf will use /usr/share/doc/device-mapper-multi-
path-0.4.9/multipath.conf as the starting file. This file has user_friendly_names set. If this file does not exist, mpathconf will create
/etc/multipath.conf from scratch. For most users, this means that user_friendly_names will be set by default, unless they use the
--user_friendly_names n command.
COMMANDS --enable
Removes any line that blacklists all device nodes from the /etc/multipath.conf blacklist section.
--disable
Adds a line that blacklists all device nodes to the /etc/multipath.conf blacklist section. If no blacklist section exists, it will
create one.
--user_friendly_name { y | n }
If set to y, this adds the line user_friendly_names yes to the /etc/multipath.conf defaults section. If set to n, this removes the
line, if present. This command can be used along with any other command.
--find_multipaths { y | n }
If set to y, this adds the line find_multipaths yes to the /etc/multipath.conf defaults section. If set to n, this removes the line,
if present. This command can be used aldong with any other command.
OPTIONS --with_module { y | n }
If set to y, this runs modprobe dm_multipath to install the multipath modules. This option only works with the --enable command.
This option is set to y by default.
--with_multipathd { y | n }
If set to y, this runs service multipathd start to start the multipathd daemon on --enable, service multipathd stop to stop the mul-
tipathd daemon on --disable, and service multipathd reload to reconfigure multipathd on --user_frindly_names and --find_multipaths.
This option is set to n by default.
FILES
/etc/multipath.conf
SEE ALSO multipath.conf(5), modprobe(8), multipath(8), multipathd(8), service(8),
AUTHOR
Benjamin Marzinski <bmarzins@redhat.com>
June 2010 MPATHCONF(8)