03-22-2011
Thanks you for your assistance, I really do appreciate it. Everything seems to be working flawlessly.
Thanks again.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
I have a 20 line file.
I need a command which will brinf back a specific line based upon the line number I enter.
e.g. the file looks like this and is called file1
jim is a man
john is a woman
james is a man
wendy is a woman
lesley is a woman
i want a command that will... (4 Replies)
Discussion started by: sureshy
4 Replies
2. Shell Programming and Scripting
I need to get a section of a file based on 2 params. I want the part of the file between param 1 & 2. I have tried a bunch of ways and just can't seem to get it right. Can someone please help me out.....its much appreciated. Here is what I have found that looks like what I want....but doesn't... (12 Replies)
Discussion started by: Andy Cook
12 Replies
3. Shell Programming and Scripting
Aloha! I have just over 1k of users that have permissions that they shouldn't under our system. I need to parse a provided list of usernames, check their permissions file, and strip the permissions that they are not allowed to have. If upon the permissions strip they are left with no permissions,... (6 Replies)
Discussion started by: Malumake
6 Replies
4. Shell Programming and Scripting
Hi,
I understand either AWK or SED can do this, but I not sure how to extract the following configuration in section. Meaning when I need to find code with " ip helper-address 192.168.11.2" , it would start from "interface Serial0/0" and "interface FastEthernet0/1". Only displaying both section... (2 Replies)
Discussion started by: haphazard
2 Replies
5. Shell Programming and Scripting
Hello all,
Sample configuration file:
username = root
password = admin
IpAddress = 192.168.2.90
HttpCommand = /getfile?hello.jpg
Username = root2
Password = admin2
Passive = no
Host = 192.168.1.100
Path = /uploads
Username = root3
Password = adming
Passive = no
Host =... (10 Replies)
Discussion started by: LAVco
10 Replies
6. UNIX for Dummies Questions & Answers
Is there an awk, sed, vi or any line command that adds Field Separators (default spaces) to each line in a file?
$cat RegionalData
12FC2525MZLP8266900216
12FC2525MZLP8266900216
12FC2525NBLP8276900216
12FC2525NBLP8276900216
Desired results:
1 2 F C 2525 MZ LP 826 690 02 16
1 2 F C... (2 Replies)
Discussion started by: MS75001
2 Replies
7. Shell Programming and Scripting
I have searched in a variety of ways in a variety of places but have come up empty.
I would like to prepend a portion of a section header to each following line until the next section header. I have been using sed for most things up until now but I'd go for a solution in just about anything--... (7 Replies)
Discussion started by: pagrus
7 Replies
8. Shell Programming and Scripting
I can obtain information from itdt inventory command however it display as below, I'd like to print each entity on one line but seperated by :
the file is something like and each section ends with Volume Tag
Drive Address 256
Drive State ................... Normal
ASC/ASCQ... (3 Replies)
Discussion started by: gefa
3 Replies
9. Shell Programming and Scripting
In the awk below I am trying to parse the Sample Name below the section. The values that are extracted are read into array s(each value in a row seperated by a space) which will be used later in a bash script. The awk does execute but no values are printed. I am also not sure how to print in a row... (1 Reply)
Discussion started by: cmccabe
1 Replies
10. Shell Programming and Scripting
Hi Gurus,
I have below file which has different sections, need to move the sections to beginning of the each record.
original file
aaa
bbb
ccc
ddd
eee
fff
output file.
aaa
bbb
ccc
ddd
eee
fff (6 Replies)
Discussion started by: green_k
6 Replies
LEARN ABOUT DEBIAN
drbdlinks
DRBDLINKS(8) System Manager's Manual DRBDLINKS(8)
NAME
drbdlinks - manages links into a shared DRBD partition
SYNOPSIS
drbdlinks [OPTION]... [start|stop|auto|status|monitor]
DESCRIPTION
drbdlinks is a program which manages links into a DRBD partition which is shared among several machines. It is meant to be used in con-
junction with the heartbeat system for simplifying management of high availability clusters. A simple configuration file, "/etc/drb-
dlinks.conf", specifies the links. This can be used to manage links for "/etc/apache", "/var/lib/pgsql", and other system files and direc-
tories that need to appear as if they are local to the system when running applications after a DRBD shared partition has been mounted.
A sample configuration file with annotations is included in the drbdlinks distribution.
When run with "start" as the mode, drbdlinks will rename the existing files/directories, and then make symbolic links into the DRBD parti-
tion. "stop" does the reverse.
The "monitor" and "status" modes will check the file-system against the configuration file and will report "running" (monitor mode) or "OK"
(status mode) if all links appear to be up. Otherwise they report "down" or "stopped" (respectively).
By default, the rename appends .drbdlinks to the name, but this can be overridden in the configuration file.
The "list" mode just show the list of links, with each line showing the link, destination, and a 0/1 flag for bindMount status. This may
be useful for user scripts without having to parse the configuration.
An init script is included which runs "stop" before heartbeat starts, and after heartbeat stops. This is done to try to ensure that when
the shared partition isn't mounted, the links are in their normal state.
OPTIONS
drbdlinks has several options, using either short or long variants.
-h, --help
Print a short help message describing the available options and exit.
-c, --config-file=CONFIGFILE
Specify an alternate config file. The default config file is /etc/drbdlinks.conf. Alternate config files should have a "drb-
dlinks-" prefix, e.g. "drbdlinks-httpd.conf".
-s, --suffix=SUFFIX
Name to append to the local file-system name when the link is in place. The default is "drbdlinks", which would result in a renamed
file like "/etc/httpd.drbdlinks".
-v, --verbose
Increase verbosity level by 1 for every occurrence of this option.
EXAMPLES
Here are a few examples of how drbdlinks can be used.
The most straight-forward, and default, method for starting drbdlinks:
drbdlinks start
To use a suffix different from the default when linking to a file or directory, the -s option can be used, specifying the desired string:
drbdlinks -s orig start
would rename the file-system name to "name.orig".
Increase the verbosity to assist in debugging:
drbdlinks -v -v start
Use an alternate configuration file, possibly from with a DRBD mounted file-system:
drbdlinks -c /shared1/drbdlinks-httpd.conf start
This would use the specified configuration file, found on our DRBD device mounted on /shared1. This would allow us to easily keep drb-
dlinks configurations tied to a specific set of data on a DRBD disk in an active/active sort of HA configuration.
SEE ALSO
DRBD(8), drbdadm(8), drbdsetup(8), heartbeat(8).
AUTHOR
drbdlinks was written by Sean Reifschneider <jafo@tummy.com>.
This manual page was written by Cyril Bouthors <cyril@bouthors.org>, for the Debian project (but may be used by others). Sean Reifschnei-
der modified it for status and monitor arguments, and included it in the base drbdlinks release. Mike Loseke <mike@tummy.com> added the
sections on options and examples.
September 3, 2008 DRBDLINKS(8)