Search Results

Search: Posts Made By: mglenney
4,832
Posted By mglenney
I think I did answer the first but in a...
I think I did answer the first but in a round-about way. It's not that leaving it down performs some function. It's that leaving it down keeps it out of the pool. So if the app is bad I don't...
4,832
Posted By mglenney
Well, like I said, everything is in a pool,...
Well, like I said, everything is in a pool, behind a load balancer. An app that fails is a broken app. Maybe it was just a glitch and a restart would remedy it, but "maybe" it's not. Maybe the app...
4,832
Posted By mglenney
Opinion on auto-restart of failed apps/services
I'm becoming a dying breed where I work. More and more sys admins are advocating automatically restarting failed services such as tomcat, jboss, etc. I've always been against doing this except with...
10,765
Posted By mglenney
And thanks to everyone who replied. I learned...
And thanks to everyone who replied. I learned something new from each post which only makes me better. Thanks for that!
10,765
Posted By mglenney
Ok. Now that's awesome. Multi-line record...
Ok. Now that's awesome. Multi-line record handling. Very smart. I also had no idea that setting RS to null would separate records at blank lines. Very cool. I put those blank lines in so it...
10,765
Posted By mglenney
Ok, thanks. That was making me nuts. Cool. ...
Ok, thanks. That was making me nuts.

Cool. I knew there was a way to do this without 2 awk statements. What you wrote here is almost what I need. It was removing the "host_name" record from...
10,765
Posted By mglenney
awk - remove block of text, multiple actions for 'if', inline edit
I'm having a couple of issues. I'm trying to edit a nagios config and remove a host definition if a certain "host_name" is found. My thought is I would find host definition block containing the...
14,274
Posted By mglenney
awk find a string, print the line 2 lines below it
I am parsing a nagios config, searching for a string, and then printing the line 2 lines later (the "members" string). Here's the data:

define hostgroup{
hostgroup_name chat-dev
...
12,336
Posted By mglenney
Generally you can telnet to the port to see if...
Generally you can telnet to the port to see if it's open. If you get "Connection refused" that means 1) you can't get to that port/ip or 2) there's nothing listening on that port. If you are able...
2,262
Posted By mglenney
Ok. That did it. Working perfectly. Thank you.
Ok. That did it. Working perfectly. Thank you.
2,262
Posted By mglenney
That's what I had before when I was just looking...
That's what I had before when I was just looking for 1 line. Now I'm looking for a block of text.
2,262
Posted By mglenney
Thanks for the nudge in the right direction. ...
Thanks for the nudge in the right direction. First off, I didn't know I could perform the calculation without removing the "K" from each number. That certainly saved some steps. Besides that, your...
8,286
Posted By mglenney
Your question is too open. You don't look like...
Your question is too open. You don't look like you've done your homework which is the quickest way to not get a response on this forum. Figure some stuff out first:



What type of DNS server...
2,240
Posted By mglenney
The script lines you posted will set the variable...
The script lines you posted will set the variable SAVEMEDIUM to the value of ArchiveSave. So to have it set to DVD add the following line to Install.Para:

% ArchiveSave % DVD %
2,240
Posted By mglenney
The first line assigns the path and name of a...
The first line assigns the path and name of a file to the variable INST_PARA. On the next line, awk is being used to look through each line of that file. If the 2nd ($2) item on the line is...
2,262
Posted By mglenney
Awk help needed
I have a log file monitor script that checks through a log file for a string. I use awk to search the log file, starting at the last checked line, for the specified string and then output the count...
3,290
Posted By mglenney
There are no stupid questions. But there are...
There are no stupid questions. But there are questions you should google first :)

That being said, in Excel, make sure you save your workbook first, and the click File | Save As... (if 2007 click...
10,053
Posted By mglenney
You have to pass variables into awk with -v ...
You have to pass variables into awk with -v

awk -v fdelim=$file_delimeter 'BEGIN{ FS=fdelim; } {
if ( NF != field_count ) {
< snip >You can probably do it with -F as well and just get...
1,866
Posted By mglenney
$ echo QQ3_1899_CD4 | awk -F _ '{print $2}' 1899
$ echo QQ3_1899_CD4 | awk -F _ '{print $2}'
1899
6,461
Posted By mglenney
I see a few things going on. Perhaps one of them...
I see a few things going on. Perhaps one of them is causing your problem. I mostly suspect your top command:

command="top -b"This command will run until killed or until it reaches the number of...
1,793
Posted By mglenney
I would guess, about 500 different ways. Would...
I would guess, about 500 different ways. Would be useful if you provided:


Platform
Shell
What's in the file
What do you want to extract
19,290
Posted By mglenney
A couple of things would have to be in place for...
A couple of things would have to be in place for this to happen. First, your network would have to have a DNS server in place that has a reverse lookup zone configured and that address would have to...
19,290
Posted By mglenney
Looks like your DNS server doesn't have a reverse...
Looks like your DNS server doesn't have a reverse lookup zone setup. You might try the command

host 192.168.8.101

but that will probably have the same result.

It also looks like you are...
Forum: Red Hat 08-18-2009
11,633
Posted By mglenney
Generally you can configure default gateway via...
Generally you can configure default gateway via the /etc/sysconfig/network file but I've never tried to specify a bond instead of an eth. If it works for you let me know.

In...
Forum: Red Hat 08-18-2009
30,981
Posted By mglenney
If you're running iptables and assuming you're...
If you're running iptables and assuming you're talking about tcp traffic:

iptables -t filter -I INPUT 1 -p tcp -m tcp -s <ipaddress> -j REJECT

Should work. Probably don't need "-m tcp" but...
Showing results 1 to 25 of 85

 
All times are GMT -4. The time now is 08:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy