Re: [CentOS] help regarding centOS 6.5- 32 bits

2014-06-03 Thread Digimer
On 03/06/14 06:35 PM, Uche Kingsley wrote:
> hello,
>
>
> I am using Centos 6.4 (64 bits) but I want to install CentOS 6.5 32 bits
> which is compatible with the project am working on. Please how can I
> successfully install the 6.5 32 bits. Help needed please. thanks

It should install the same as the 64-bit version (I assume, but have 
never tried). Did you try? If so, did you run into any specific problem?

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without 
access to education?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Odd kernel panic, repeatable

2014-06-03 Thread Les Mikesell
On Tue, Jun 3, 2014 at 7:09 AM, mark  wrote:
> I had an old server die; we had another, same model, sitting around lightly
> used, so I did what I've done before: swap the RAID card into that, swap the
> drives, even putting them in the same bays as the dead one, and boot.
>
> Nope. 100% of the time, when it hits switching roots, it kernel panics.
>
> Adding rdshell to the kernel line does nothing, I get no grub rdshell. Booting
> from a flash drive into rescue, it finds everything, *perfectly*, and mounts
> it all, including the RAID data drives.
>
> I've rebuilt the initrd, and no joy.
>
> Anyone have an idea?

Did you try running "grub-install" after your rescue-mode boot and
chroot into /mnt/sysimage?  If that doesn't fix it there is probably
something different about the device/naming of the root partition.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread John R Pierce
On 6/3/2014 2:58 PM, Lists wrote:
> This may be industry standard, and I understand that. I just think that
> it's a poor showing that this is what you have to do to take advantage
> of technology meant to be more reliable than "consumer grade" stuff,
> which somehow manages to be quite reliable even if you mix and match.
  consumer non-ECC memory will just pass occasional bad bits under those 
same circumstances of mismatched timing or voltages or whatver.

I do suppose noone remembers the SDRAM (pre-DDR) where AMD systems would 
support 256MB single rank DIMMs but Intel systems only supported 128MB 
single rank and the rather rare 256MB dual rank (oft called double sided 
because they usually were) but often had problems if you used 4 of these.

in fact, my previous Intel Core2Duo desktop was unreliable with 4 dimms, 
yet rock solid with 2, and this was regardless of the timing.4 dimms 
would boot, pass memtest, etc, but the system would randomly lockup with 
no clues.   ECC would have thrown a fault the instant there was a bad bit.

dynamic memory is much more complex than it superficially appears.



-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] help regarding centOS 6.5- 32 bits

2014-06-03 Thread Uche Kingsley
hello,


I am using Centos 6.4 (64 bits) but I want to install CentOS 6.5 32 bits
which is compatible with the project am working on. Please how can I
successfully install the 6.5 32 bits. Help needed please. thanks
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread Lists
On 06/03/2014 01:53 PM, Rainer Duffner wrote:
> That’s why you replace both.
> Or, if you build your own servers in significant quantities, you’ve got to do 
> you’re own stock-keeping.
> Need 24 hard drives? Buy 30!
> Need 12 PSUs for 6 servers? Buy 16.
This may be industry standard, and I understand that. I just think that 
it's a poor showing that this is what you have to do to take advantage 
of technology meant to be more reliable than "consumer grade" stuff, 
which somehow manages to be quite reliable even if you mix and match.

So, the "better" one is, in practice, less reliable unless you follow 
extremely narrow guidelines, and not only pay more per unit, but buy 
more units than needed! Usually, the cheap one is flaky and unreliable, 
and the expensive one "just works". See: shovels, auto parts, shoes, 
kitchen knives, mechanic tools, bread machines, and virtually every 
other product category on the market.

My complaining on an obscure list won't change anything, but this is 
still a sorry state for ECC.

Ben
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread Rainer Duffner

Am 03.06.2014 um 22:39 schrieb m.r...@5-cent.us:

> Warren Young wrote:
>> On 6/3/2014 12:26, Lists wrote:
>>> 
>>> Registered/Unregistered, CAS timing,
>>> single/double/quad ranked, never mind voltages, and making sure your CPU
>>> supports it!
>> 
>> All of those specs are listed in the motherboard manual.  If you're
>> buying your RAM from a reseller that doesn't give you the corresponding
>> specs to match up against the mobo specs, stop buying from that vendor.
>> 
>> There are vendors that will match up your specific motherboard with the
>> RAM that works in it, and will exchange the RAM for the right stuff if
>> by some tiny chance they specified the wrong stuff.  (e.g. Crucial)
> 
> Buried in some of them, and others, well, it tells you what it will
> take... and it *assumes* that you're just building the system, and buying
> all the DIMMs as one batch, *not* that you're replacing a failed DIMM. But
> you've got to match even things like cl2whatever. If it doesn't have
> *exactly* what's on the other DIMMs, it won't work.



That’s why you replace both.
Or, if you build your own servers in significant quantities, you’ve got to do 
you’re own stock-keeping.
Need 24 hard drives? Buy 30!
Need 12 PSUs for 6 servers? Buy 16.

That, or buy COTS-hardware from Dell, HP, IBM, Fujitsu with a support-contract….




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread m . roth
Warren Young wrote:
> On 6/3/2014 12:26, Lists wrote:
>>
>> Registered/Unregistered, CAS timing,
>> single/double/quad ranked, never mind voltages, and making sure your CPU
>> supports it!
>
> All of those specs are listed in the motherboard manual.  If you're
> buying your RAM from a reseller that doesn't give you the corresponding
> specs to match up against the mobo specs, stop buying from that vendor.
>
> There are vendors that will match up your specific motherboard with the
> RAM that works in it, and will exchange the RAM for the right stuff if
> by some tiny chance they specified the wrong stuff.  (e.g. Crucial)

Buried in some of them, and others, well, it tells you what it will
take... and it *assumes* that you're just building the system, and buying
all the DIMMs as one batch, *not* that you're replacing a failed DIMM. But
you've got to match even things like cl2whatever. If it doesn't have
*exactly* what's on the other DIMMs, it won't work.

  mark


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread Lists
On 06/03/2014 11:52 AM, Rainer Duffner wrote:
> It’s also a bit of a sorry showing for the admin putting together the system.
Perhaps, perhaps not. Remember the old saw about simplicity and 
reliability? ECC ignores that saw completely, resulting in a complex, 
error prone hardware landscape fraught with incompatibilities.

With desktop systems, it's pretty straight forward to get memory that 
"just works". Yes, with ECC, all the specs are in the Motherboard 
manual, but there are far more variables to consider. And, even when you 
buy exactly to spec, I've had issues with systems that worked fine for 
days at high loads and passed extensive Memtest, but locked up 
sporadically (every few weeks), at a tremendous cost to diagnose. The 
only way I've found to be confident that a purchase will work is to buy 
only hardware on a specific hardware compatibility list, and typically I 
buy the hardware together. Most of our hardware is in this category.

I'll consider my irreverent point of view, that this complexity is 
unnecessary and counter-productive, as somewhat unpopular and leave it 
at that.

-Ben

PS: As an aside, we've had extremely good results with SuperMicro - we 
shop for them almost exclusively. The only problems we've had was with 
onboard SAS controller on a specific model on EL6 - worked fine on EL5. 
We ended up disabling SAS and going with onboard SATA with no further 
issues.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos box and Cisco 3750 VLAN's

2014-06-03 Thread Boris Epstein
Les and everyone,

Thanks!

I have just redone the whole setup and discovered the following: the
problem appears to have been on the Cisco side all along. The default
(natiive) VLAN on the trunk port was set to VLAN 3. Apparently, it had to
be set to VLAN 1. Once I did it the port started to work exactly as
expected, whether a VLAN is named or not!

Problem solved!

Thank you all very much again. This was an obscure one for sure.

Cheers,

Boris.


On Mon, Jun 2, 2014 at 2:11 PM, Les Mikesell  wrote:

> On Mon, Jun 2, 2014 at 12:55 PM, Boris Epstein 
> wrote:
> > Hello everyone,
> >
> > Thanks for thoughtful and thorough advice. No luck so far, though.
> >
> > I have two VLAN's now - 0003 and 0004, named "vlan3" and "vlan4"
> > respectively - and still for some reason the CentOS fails to recognize
> them
> > as one would expect. So I am puzzled as to what is still missing from the
> > picture? Could the NIC itself (the hardware) introduce some undesired
> > weirdness into the picture?
>
> You haven't given enough info for anyone to help.  Can you post your
> ifcfg-eth0 and ifcfg-eth0.3 files along with the error messages you
> see if there are any?
>
> --
>Les Mikesell
> lesmikes...@gmail.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread Andrew Holway
On 16 May 2014 13:21, Joseph Hesse  wrote:

> Hello,
>
> I want to build a lightweight server and install centos.  Does anyone
> have a recommendation for a suitable motherboard?
>

At home I have two of these atom C2750 boards each with 32GB of ECC ram .
They are extremely good, powerful and very cheap boards. They use very
little power so you don't need fans which is nice. And they have ipmi
controllers.

The processors are 8 core and will easily outstrip a 5i or 7i.

http://www.asrockrack.com/general/productdetail.asp?Model=C2750D4I

Highly recommended!!

the supermicro one is quite good also. Comes with and extra pcie x4 slot.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread Warren Young
On 6/3/2014 12:26, Lists wrote:
>
> Registered/Unregistered, CAS timing,
> single/double/quad ranked, never mind voltages, and making sure your CPU
> supports it!

All of those specs are listed in the motherboard manual.  If you're 
buying your RAM from a reseller that doesn't give you the corresponding 
specs to match up against the mobo specs, stop buying from that vendor.

There are vendors that will match up your specific motherboard with the 
RAM that works in it, and will exchange the RAM for the right stuff if 
by some tiny chance they specified the wrong stuff.  (e.g. Crucial)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread Rainer Duffner

Am 03.06.2014 um 20:26 schrieb Lists :

> On 05/16/2014 11:23 AM, m.r...@5-cent.us wrote:
>> hardware doesn't support ECC.
>> 
>> Oh, right, *all* the servers here use ECC DIMMs. And you really, REALLY
>> don't want to go there: a) price, b) n/s is not buffered is not
>> registered, none of the above compatible in the same bank, and oh, yes,
>> dual rank is *not* compatible with single rank or quad rank... I kid you
>> not. I've had servers simply not boot by mixing two of those, and let's
>> not forget not fitting in the slot, and c) see a).
>> 
> 
> ECC is such a horrible pain in the rear. If you don't have things like 
> "SLA" in your casual vocabulary, pretty much any desktop board works 
> find for Centos6. For spare/personal/backups servers, I use whatever old 
> hardware sits in the junk room.
> 
> Anything using ECC is such a pain to match up correctly that I tend to 
> buy motherboard/RAM/CPU from a vendor as a package unit so it's 
> warranted to work together. Registered/Unregistered, CAS timing, 
> single/double/quad ranked, never mind voltages, and making sure your CPU 
> supports it!
> 
> For all the promises of better uptimes, I've had far more trouble with 
> mis-matched  ECC than I've ever experienced in bad non-ECC RAM. Truly, 
> this is a sorry showing for ECC.


It’s also a bit of a sorry showing for the admin putting together the system.

As for the original request:
Maybe take a look at a HP Microserver or one of the entry-level ML-servers?


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread John R Pierce
On 6/3/2014 11:26 AM, Lists wrote:
> ECC is such a horrible pain in the rear.

seriously? where did you EVER get this from?

any server thats storing data which is even remotely important, not 
having ECC means that soft bit errors go undetected, leading to VERY 
hard to detect data corruption.  and the more memory you have, the 
higher the frequency of soft bit errors.

sure, you need to get the correct spec memory, you can't mix and match 
random parts no different than anything else, from spark plugs 
or tires for your car to clothes . go ahead, try and put volvo 940 
spark plugs in your mercedes 300te, see how well /that/ works.   and I 
really can't get into my son's "M" t-shirts anymore, being that i'm 
kinda XL.


-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread Keith Keller
On 2014-05-16, m.r...@5-cent.us  wrote:
>>
> Not sure what you mean by lightweight, but I've been happy with Asus and
> Gigabyte motherboards. STAY AWAY from Supermicro: we have a bunch of
> servers with 64 cores - so we're talking high end - which we bought from
> Penguin, and we've had a *bunch* m/b problems, as in, we've sent back a
> number of them for repairs, where they replaced the m/b. So, if high-end
> servers are like that, I do *not* trust their quality control.

As one other data point, I've had a few Supermicro motherboards, and
have only had one bad one so far.  (I'm less enamored of their IPMI
implementation.)

--keith

-- 
kkel...@wombat.san-francisco.ca.us


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mother board recommendation

2014-06-03 Thread Lists
On 05/16/2014 11:23 AM, m.r...@5-cent.us wrote:
> hardware doesn't support ECC.
> 
> Oh, right, *all* the servers here use ECC DIMMs. And you really, REALLY
> don't want to go there: a) price, b) n/s is not buffered is not
> registered, none of the above compatible in the same bank, and oh, yes,
> dual rank is *not* compatible with single rank or quad rank... I kid you
> not. I've had servers simply not boot by mixing two of those, and let's
> not forget not fitting in the slot, and c) see a).
>

ECC is such a horrible pain in the rear. If you don't have things like 
"SLA" in your casual vocabulary, pretty much any desktop board works 
find for Centos6. For spare/personal/backups servers, I use whatever old 
hardware sits in the junk room.

Anything using ECC is such a pain to match up correctly that I tend to 
buy motherboard/RAM/CPU from a vendor as a package unit so it's 
warranted to work together. Registered/Unregistered, CAS timing, 
single/double/quad ranked, never mind voltages, and making sure your CPU 
supports it!

For all the promises of better uptimes, I've had far more trouble with 
mis-matched  ECC than I've ever experienced in bad non-ECC RAM. Truly, 
this is a sorry showing for ECC.

Ben
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Newer version of ffmpeg for EL6?

2014-06-03 Thread Lists
On 05/24/2014 05:13 AM, Nux! wrote:
> Otherwise, you can try some of the static builds people offer, e.g.:
> http://ffmpeg.gusari.org/static/  (download and run, handy in some
> scenarios)
It's late, I was having an issue getting email for a while. This is 
exactly the solution we've been moving forward with, thanks!

-Ben
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] external esata RAID box, how to spin down drives when idle?

2014-06-03 Thread Fred Smith
I've posted before about my Venus DS3R Pro2, specifically in relation to 
using USB3.

But this a different topic about the same device.

It doesn't seem to do any power-saving on its own, i.e, the drives stay
spinning continuosuly, 24X7. Setting the appropriate power-save options
in the screen saver or power manager screens doesn't seem to have any
effect on these drives.

Wondering if anyone can suggest other ways to approach this? 

Normally it is idle for about 23H, 57M per day, as it only runs a short
backup session at 00:30, using rsnapshot which doesn't take very long
at all.

cat /proc/scsi/scsi reports:
Host: scsi6 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA  Model: JMicron H/W RAID Rev: 0958
  Type:   Direct-AccessANSI  SCSI revision: 05

dmesg reports:
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support 
DPO or FUA
 sda: sdc1
sd 6:0:0:0: [sdc] Attached SCSI disk
...
EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: 
SELinux: initialized (dev sdc1, type ext4), uses xattr


-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
   I can do all things through Christ 
  who strengthens me.
-- Philippians 4:13 ---
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] OSX-10.9.3 cd ~'/ problem with spaces'

2014-06-03 Thread Paul Heinlein

On Tue, 3 Jun 2014, James B. Byrne wrote:


Apologies for this OT post.  I need some help debugging a bash script.  It
just happens to be provided by Apple Inc.

In a terminal session under OSX-10.9.3 I want do do this:

cd ~/'Library/Application Support'


Try

cd "${HOME}/Library/Application Support/"

--
Paul Heinlein
heinl...@madboa.com
45°38' N, 122°6' W___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] OSX-10.9.3 cd ~'/ problem with spaces'

2014-06-03 Thread Stephen Harris
On Tue, Jun 03, 2014 at 09:34:29AM -0700, Bill Campbell wrote:
> On Tue, Jun 03, 2014, James B. Byrne wrote:
> >Apologies for this OT post.  I need some help debugging a bash script.  It
> >just happens to be provided by Apple Inc.
> >
> >In a terminal session under OSX-10.9.3 I want do do this:
> >
> >cd ~/'Library/Application Support'
> 
> Works for me on my OS X 10.8.5 Macbook Pro, xterm under xQuartz
> and under the Terminal.app.

The OP likely has a function called "cd" which does other stuff (sets
the prompt?) and then calls the builtin cd, but its not quoting the
variables properly and so breaking.

-- 

rgds
Stephen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] OSX-10.9.3 cd ~'/ problem with spaces'

2014-06-03 Thread Bill Campbell
On Tue, Jun 03, 2014, James B. Byrne wrote:
>Apologies for this OT post.  I need some help debugging a bash script.  It
>just happens to be provided by Apple Inc.
>
>In a terminal session under OSX-10.9.3 I want do do this:
>
>cd ~/'Library/Application Support'

Works for me on my OS X 10.8.5 Macbook Pro, xterm under xQuartz
and under the Terminal.app.

>Which is a simple enough request.  However, OSX returns: cd
>/users/byrnejb/Library/Application: No such file or directory.  The space
>evidently acts as a delimiter to cd even though the path is quoted.
>
>However this:
>
>ls -l ~/'Library/Application Support'

Perhaps you have 'cd' as an alias or a function which loses the
quotes when passing to the real cd?

Bill
-- 
INTERNET:   b...@celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186  Skype: jwccsllc (206) 855-5792

For every subtle and complicated question, there is a perfectly
simple and straightforward answer, which is wrong.  -- H. L. Mencken
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] OSX-10.9.3 cd ~'/ problem with spaces'

2014-06-03 Thread SilverTip257
On Tue, Jun 3, 2014 at 10:53 AM, James B. Byrne 
wrote:

> Apologies for this OT post.  I need some help debugging a bash script.  It
> just happens to be provided by Apple Inc.
>
> In a terminal session under OSX-10.9.3 I want do do this:
>
> cd ~/'Library/Application Support'
>
> Which is a simple enough request.  However, OSX returns: cd
> /users/byrnejb/Library/Application: No such file or directory.  The space
> evidently acts as a delimiter to cd even though the path is quoted.
>

I don't use, nor do I have a copy of OSX to test against, but my suggestion
may still apply.

Escape the space with a backslash.
cd ~/Library/Application\ Support


-- 
---~~.~~---
Mike
//  SilverTip257  //
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Bowie Bailey
On 6/3/2014 11:55 AM, Tim Dunphy wrote:
> Ok this is what I came up with:
>
> #!/bin/bash
> # this script parses mod_status to see which hosts are getting the most
> requests
>
> while true
> do
> echo "Time and date: $(/bin/date +"%D %H:%M:%S")" >>
> /tmp/apache_request_log >> /tmp/apache_request_log
> echo “hostname: $(/bin/hostname -f)\n”   >> /tmp/apache_request_log
> echo “host ip: $(/bin/hostname -i)”   >> /tmp/apache_request_log
> echo "Server Stats: $(/usr/bin/GET `hostname -f`/server-status/?auto |
> /bin/egrep  -i 'kbytes')" >> /tmp/apache_request_log
> echo "Server Stats: $(/usr/bin/GET `hostname -f`/server-status/?auto |
> /bin/egrep  -i 'ReqPerSec')" >> /tmp/apache_request_log
> echo -e "\n"
> sleep 60
> done
>
> Still can't get the echo -e "\n" statement to print a new line for some
> reason. Other than that I'm good. And thanks for everyone's help!

'echo' on it's own should print a new line.  If you want two, why not 
just use two echo lines?

Also, you are piping everything else to the apache_request_log except 
for the last echo line.  Is the problem simply that you forgot to pipe 
that to the log file?

echo -e "\n" >> /tmp/apache_request_log

-- 
Bowie
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Stephen Harris
On Tue, Jun 03, 2014 at 11:55:55AM -0400, Tim Dunphy wrote:
> while true
> do
> echo "Time and date: $(/bin/date +"%D %H:%M:%S")" >>
> /tmp/apache_request_log >> /tmp/apache_request_log
> echo ???hostname: $(/bin/hostname -f)\n???   >> /tmp/apache_request_log
> echo ???host ip: $(/bin/hostname -i)???   >> /tmp/apache_request_log
> echo "Server Stats: $(/usr/bin/GET `hostname -f`/server-status/?auto |
> /bin/egrep  -i 'kbytes')" >> /tmp/apache_request_log
> echo "Server Stats: $(/usr/bin/GET `hostname -f`/server-status/?auto |
> /bin/egrep  -i 'ReqPerSec')" >> /tmp/apache_request_log
> echo -e "\n"
> sleep 60
> done

Look at this code structure:

  while true
  do
{
  echo Time and date: $(date +"%D %H:%M:%S")
  echo Hostname: $(hostname -f)
  echo Hostname IP: $(hostname -i)
  ...
  ...
  # Leave two blank lines
  echo
  echo
} >> /tmp/apache_request_log
sleep 60
  done

Note how we're only doing one redirect; this makes the code easier
to read and less likely to make a mistake (and more efficient).

> Still can't get the echo -e "\n" statement to print a new line for some
> reason. Other than that I'm good. And thanks for everyone's help!

That's one of the mistakes; you forgot the >> /tmp/apache_request_log
on the echo line.  But "echo" on its own without anything else leaves
a blank line.

The next clever bit is to not call "GET" twice; why make apache do
twice the work?  Call it once and store the results in a variable

  stat=$(GET $(hostname -f)/server-status/?auto)
  echo Server Stats: $(echo "$stat" | grep -i kbytes)
  echo Server Stats: $(echo "$stat" | grep -i ReqPerSec)

(You can get even more clever, but that's a little more involved; we'll
start with some basics :-))

So we end up with something like:

  #!/bin/bash

  # These never change...
  name=$(hostname -f)
  ip=$(hostname -i)

  # Once a minute, record some stats
  while true
  do
{
  echo Time and date: $(date +"%D %H:%M:%S")
  echo Hostname: $name
  echo Hostname IP: $ip
  stat=$(GET $name/server-status/?auto)
  echo Server Stats: $(echo "$stat" | grep -i kbytes)
  echo Server Stats: $(echo "$stat" | grep -i ReqPerSec)
  echo
  echo
} >> /tmp/apache_request_log
sleep 60
  done

-- 

rgds
Stephen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Tim Dunphy
Ok this is what I came up with:

#!/bin/bash
# this script parses mod_status to see which hosts are getting the most
requests

while true
do
echo "Time and date: $(/bin/date +"%D %H:%M:%S")" >>
/tmp/apache_request_log >> /tmp/apache_request_log
echo “hostname: $(/bin/hostname -f)\n”   >> /tmp/apache_request_log
echo “host ip: $(/bin/hostname -i)”   >> /tmp/apache_request_log
echo "Server Stats: $(/usr/bin/GET `hostname -f`/server-status/?auto |
/bin/egrep  -i 'kbytes')" >> /tmp/apache_request_log
echo "Server Stats: $(/usr/bin/GET `hostname -f`/server-status/?auto |
/bin/egrep  -i 'ReqPerSec')" >> /tmp/apache_request_log
echo -e "\n"
sleep 60
done

Still can't get the echo -e "\n" statement to print a new line for some
reason. Other than that I'm good. And thanks for everyone's help!

Tim


On Tue, Jun 3, 2014 at 10:43 AM, Patrick Bervoets <
patrick.bervo...@psc-elsene.be> wrote:

>
> op 03-06-14 16:32, schreef Tim Dunphy:
>
>  What I need to figure out at this point is how to get the time and date
>> info on the same line as it's category. ie get
>>
>> Time and date: 06/03/14 10:24:09
>>
>> instead of
>>
>> Time and date:
>> 06/03/14 10:24:09
>>
> printf "Time and date: $(/bin/date +"%D %H:%M:%S")\n" solves both problems
> here
>
>  As it is now.
>>
>> Also I'm trying to print out newlines with  echo -e "\n" but somehow that
>> isn't working. Tho I think I've gotten that to work in the past.
>>
>> If someone could please help me fix these minor formatting issues that
>> would be great and appreciated.
>>
>> Thanks
>> Tim
>>
>>
>>
>>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>


-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Realtek device 5249 kernel module for C6 - a request to epel

2014-06-03 Thread Ned Slider
On 03/06/14 08:35, Patrick Bervoets wrote:
> Hi,
>
> I try to make my SD-reader work on a HP ZBook.
>
> lspci
> 5d:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device
> 5249 (rev 01)
>
> uname -a
> Linux Antisana.psc-elsene.be 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7
> 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>
> Googling gave me
> http://linuxterminal.org/issue-with-rts5229-pci-express-card-reader/;
> last reply by François suggests to download the Realtek 5229 driver,
> edit the Makefile and rtsx.c and compile.
> And it works as stated.
>
> It would be handy if this module could be incorporated with epel. But I
> can't find the right way to make such a request. (shame on me)
>
> Thanks for any pointer
> Patrick
>

You probably want ELRepo, not EPEL.

You can file an RFE here against el6:

http://elrepo.org/bugs



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Custom respin ISO prompting for discs

2014-06-03 Thread Karl MacMillan
I'm creating a custom install / respin ISO with updated packages and a
kickstart - starting from CentOS 6.5 minimal install DVD. I'm generally
following the directions from
http://smorgasbork.com/component/content/article/35-linux/128-building-a-custom-centos-6-kickstart-disc-part-1
.

I can create the iso, boot, have it find the installation media (it prints
"Found local installation media"), partition the disks, resolve the
dependencies, and then when it gets to "Starting installation" it prompts
with "Please insert CentOS disc 1 to continue".

Debugging I've done so far (all but 4 result in the prompt for disc 1):

1. I've verified that the package set I have resolves all dependencies by
testing the installation into a new rpmdb.
2. I've copied over the minimal install DVD contents directly, placed
comps.xml in the Packages directory, and recreated repodata (using
'createrepo -g Packages/comps.xml -o . Packages/").
3. Built on both CentOS 6.5 (with all updates) and Fedora 20.
4. Also tried to minimal DVD _without_ running createrepo (just placed the
kickstart in the root of the image). This worked fine.

That 4 works suggest that createrepo is at fault, but I can't for the life
of me figure out what is going on. I've done this without a base url (-u)
and with (using 'head -1 .discinfo).

Can anyone offer some suggestions for how to debug further?

Thanks - Karl
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] [OT] OSX-10.9.3 cd ~'/ problem with spaces'

2014-06-03 Thread James B. Byrne
Apologies for this OT post.  I need some help debugging a bash script.  It
just happens to be provided by Apple Inc.

In a terminal session under OSX-10.9.3 I want do do this:

cd ~/'Library/Application Support'

Which is a simple enough request.  However, OSX returns: cd
/users/byrnejb/Library/Application: No such file or directory.  The space
evidently acts as a delimiter to cd even though the path is quoted.

However this:

ls -l ~/'Library/Application Support'

returns the directory contents without error.  Apparently ls is not affected.

I googled this off and on for the past two days and found nothing that works
for me.  All advice was to simply quote the path, which I was already doing
and which also did not work. I eventually fixed my problem by doing this:


builtin cd ~/'Library/Application Support'


It seems that OSX-10.9.3 implements 'cd' as an external script that contains
the following (Note the back-ticks surrounding the echo pipe tr commands):

#!/bin/sh
builtin `echo ${0##*/} | tr \[:upper:] \[:lower:]` ${1+"$@"}


My guess is that this is where the problem is but I cannot tell what it is. 
Can a bash virtuoso point out the syntax error that is causing this script to
mis-parse the path argument?  I just want to fix this so I do not need to
remember to use the builtin command when switching directories.  Sheer
laziness on my part.

Thanks

-- 
***  E-Mail is NOT a SECURE channel  ***
James B. Byrnemailto:byrn...@harte-lyne.ca
Harte & Lyne Limited  http://www.harte-lyne.ca
9 Brockley Drive  vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada  L8E 3C3






___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Patrick Bervoets


op 03-06-14 16:32, schreef Tim Dunphy:

What I need to figure out at this point is how to get the time and date
info on the same line as it's category. ie get

Time and date: 06/03/14 10:24:09

instead of

Time and date:
06/03/14 10:24:09

printf "Time and date: $(/bin/date +"%D %H:%M:%S")\n" solves both problems here

As it is now.

Also I'm trying to print out newlines with  echo -e "\n" but somehow that
isn't working. Tho I think I've gotten that to work in the past.

If someone could please help me fix these minor formatting issues that
would be great and appreciated.

Thanks
Tim






___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Keith Keller
On 2014-06-03, Tim Dunphy  wrote:
> Ok! So this is where my script is at this point:

I strongly suggest that if you are writing a program to use a better
language.  bash is really painful for this sort of task.  Here's a
Perl script that queries /server-status:

http://www.perlmonks.org/?node_id=465848

And modify to taste.

--keith

-- 
kkel...@wombat.san-francisco.ca.us


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Tim Dunphy
Ok! So this is where my script is at this point:

#!/bin/bash
# this script parses mod_status to see which hosts are getting the most
requests

while true
do
echo "Time and date:" >> /tmp/apache_request_log
/bin/date +"%D %H:%M:%S" >> /tmp/apache_request_log
echo -e "\n"
echo “hostname:”   >> /tmp/apache_request_log
/bin/hostname -f  >> /tmp/apache_request_log
echo -e “\n” >> /tmp/apache_request_log
echo “host ip”   >> /tmp/apache_request_log
/bin/hostname -i  >> /tmp/apache_request_log
echo -e “\n” >> /tmp/apache_request_log
echo "Server Stats:" >> /tmp/apache_request_log
GET $(hostname -f)/server-status/?auto | egrep -i "(accesses|kbytes)" >>
/tmp/apache_request_log
echo -e “\n”  >> /tmp/apache_request_log
/bin/sleep 60
done

Now the only problems I am having are some output issues. This is the
output I've gotten from this:

[root@webhost014lc ~]# tail -f /tmp/apache_request_log
Time and date:
06/03/14 10:24:09
“hostname:”
webhost014lc.west.dmz-nbcuni.com
“n”
“host ip”
10.10.1.98
“n”
Server Stats:
Total Accesses: 1383898
Total kBytes: 27198225
“n”
Time and date:
06/03/14 10:25:09
“hostname:”
webhost014lc.west.dmz-nbcuni.com
“n”
“host ip”
10.10.1.98
“n”
Server Stats:
Total Accesses: 1384666
Total kBytes: 27206570
“n”

What I need to figure out at this point is how to get the time and date
info on the same line as it's category. ie get

Time and date: 06/03/14 10:24:09

instead of

Time and date:
06/03/14 10:24:09

As it is now.

Also I'm trying to print out newlines with  echo -e "\n" but somehow that
isn't working. Tho I think I've gotten that to work in the past.

If someone could please help me fix these minor formatting issues that
would be great and appreciated.

Thanks
Tim


On Tue, Jun 3, 2014 at 10:09 AM, Tim Dunphy  wrote:

> Try accessing the stats with the additional "?auto" suffix, it is meant to
>> be machine-readable, and is much shorter, e.g:
>>
>> http://$(hostname -i)/server-status/?auto
>
>
>
> Awesome tip! This is some of the output I get when I run this command:
>
> [root@uszmpwslp014lc script]# GET $(hostname -f)/server-status/?auto
> Total Accesses: 1371927
> Total kBytes: 27060974
> CPULoad: 2.70778
> Uptime: 70
> ReqPerSec: 4.11533
> BytesPerSec: 83122.2
> BytesPerReq: 20198.2
> BusyWorkers: 7
> IdleWorkers: 44
>
> This will be way easier to parse!
>
>
>
>
> On Tue, Jun 3, 2014 at 10:02 AM, Marios Zindilis 
> wrote:
>
>> On Tue, Jun 3, 2014 at 4:56 PM, Tim Dunphy  wrote:
>>
>> > Guys,
>> >
>> >  Thank you all for your input. I can't believe how helpful this list is
>> and
>> > I'm very grateful. Ok so here is what I have so far of my script to get
>> the
>> > number of apache requests to a given host:
>> >
>> > #!/bin/bash
>> >
>> > # this script parses mod_status to see which hosts are getting the most
>> > requests
>> >
>> >
>> > echo “Time:”  >> /tmp/apache_request_log
>> >
>> > /usr/bin/ts >> /tmp/apache_request_log
>> >
>> > echo -e “\n” >> /tmp/apache_request_log
>> >
>> > echo “hostname”   >> /tmp/apache_request_log
>> >
>> > /bin/hostname -f  >> /tmp/apache_request_log
>> >
>> > echo -e “\n” >> /tmp/apache_request_log
>> >
>> > echo “hostname ip”   >> /tmp/apache_request_log
>> >
>> > /bin/hostname -i  >> /tmp/apache_request_log
>> >
>> > echo -e “\n” >> /tmp/apache_request_log
>> >
>> > echo “Requests per second:”  >> /tmp/apache_request_log
>> >
>> > /usr/bin/GET  http://$(/bin/hostname -i)/server-status  | /bin/grep
>>  -i -e
>> > request -e requests/sec | grep -i -v -e currently  -e code  -e ss | awk
>> > '{print $1}' | cut -d'>' -f2  >> /tmp/apache_request_log
>> >
>> > echo “Requests processed / Idle workers:”  >> /tmp/apache_request_log
>> >
>> > /usr/bin/GET http://$(hostname -i)/server-status | /bin/grep  -i -e
>> > requests -e currently | grep -v -e requests/sec | cut -d'>' -f2 | cut
>> -d'<'
>> > -f1  >> /tmp/apache_request_log
>> >
>> > echo -e “\n\n”  >> /tmp/apache_request_log
>> >
>> > /bin/sleep 60
>> >
>> >
>> >
>> > So now my question is, is there any way to limit the size of the output
>> log
>> > from within the script without having to use logrotate? I can use that,
>> but
>> > I would prefer to do that from within the script if that's possib.e
>> >
>> >
>> > Thanks
>> >
>> > Tim
>> >
>> >
>> > On Tue, Jun 3, 2014 at 9:29 AM, Patrick Bervoets <
>> > patrick.bervo...@psc-elsene.be> wrote:
>> >
>> > >
>> > > op 03-06-14 15:18, schreef Tim Dunphy:
>> > >
>> > >[root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status
>>  |
>> > >> grep
>> > >> -i  requests/sec
>> > >> 4.08 requests/sec - 80.9 kB/second - 19.8 kB/request
>> > >>
>> > >>
>> > >> That works ok. And next I'm grepping it back down and awking it to
>> just
>> > >> the
>> > >> part I'm interested in:
>> > >>
>> > >> [root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  |
>> > grep
>> > >> -i
>> > >> -e request -e requests/sec | grep -i -v -e currently  -e code  -e ss
>> |
>> > awk
>> > >> '{print $1}'
>> > >> 4.08
>> > >>
>> > >> But now I need to get rid of just the  i

Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Tim Dunphy
>
> Try accessing the stats with the additional "?auto" suffix, it is meant to
> be machine-readable, and is much shorter, e.g:
>
> http://$(hostname -i)/server-status/?auto



Awesome tip! This is some of the output I get when I run this command:

[root@uszmpwslp014lc script]# GET $(hostname -f)/server-status/?auto
Total Accesses: 1371927
Total kBytes: 27060974
CPULoad: 2.70778
Uptime: 70
ReqPerSec: 4.11533
BytesPerSec: 83122.2
BytesPerReq: 20198.2
BusyWorkers: 7
IdleWorkers: 44

This will be way easier to parse!




On Tue, Jun 3, 2014 at 10:02 AM, Marios Zindilis 
wrote:

> On Tue, Jun 3, 2014 at 4:56 PM, Tim Dunphy  wrote:
>
> > Guys,
> >
> >  Thank you all for your input. I can't believe how helpful this list is
> and
> > I'm very grateful. Ok so here is what I have so far of my script to get
> the
> > number of apache requests to a given host:
> >
> > #!/bin/bash
> >
> > # this script parses mod_status to see which hosts are getting the most
> > requests
> >
> >
> > echo “Time:”  >> /tmp/apache_request_log
> >
> > /usr/bin/ts >> /tmp/apache_request_log
> >
> > echo -e “\n” >> /tmp/apache_request_log
> >
> > echo “hostname”   >> /tmp/apache_request_log
> >
> > /bin/hostname -f  >> /tmp/apache_request_log
> >
> > echo -e “\n” >> /tmp/apache_request_log
> >
> > echo “hostname ip”   >> /tmp/apache_request_log
> >
> > /bin/hostname -i  >> /tmp/apache_request_log
> >
> > echo -e “\n” >> /tmp/apache_request_log
> >
> > echo “Requests per second:”  >> /tmp/apache_request_log
> >
> > /usr/bin/GET  http://$(/bin/hostname -i)/server-status  | /bin/grep  -i
> -e
> > request -e requests/sec | grep -i -v -e currently  -e code  -e ss | awk
> > '{print $1}' | cut -d'>' -f2  >> /tmp/apache_request_log
> >
> > echo “Requests processed / Idle workers:”  >> /tmp/apache_request_log
> >
> > /usr/bin/GET http://$(hostname -i)/server-status | /bin/grep  -i -e
> > requests -e currently | grep -v -e requests/sec | cut -d'>' -f2 | cut
> -d'<'
> > -f1  >> /tmp/apache_request_log
> >
> > echo -e “\n\n”  >> /tmp/apache_request_log
> >
> > /bin/sleep 60
> >
> >
> >
> > So now my question is, is there any way to limit the size of the output
> log
> > from within the script without having to use logrotate? I can use that,
> but
> > I would prefer to do that from within the script if that's possib.e
> >
> >
> > Thanks
> >
> > Tim
> >
> >
> > On Tue, Jun 3, 2014 at 9:29 AM, Patrick Bervoets <
> > patrick.bervo...@psc-elsene.be> wrote:
> >
> > >
> > > op 03-06-14 15:18, schreef Tim Dunphy:
> > >
> > >[root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  |
> > >> grep
> > >> -i  requests/sec
> > >> 4.08 requests/sec - 80.9 kB/second - 19.8 kB/request
> > >>
> > >>
> > >> That works ok. And next I'm grepping it back down and awking it to
> just
> > >> the
> > >> part I'm interested in:
> > >>
> > >> [root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  |
> > grep
> > >> -i
> > >> -e request -e requests/sec | grep -i -v -e currently  -e code  -e ss |
> > awk
> > >> '{print $1}'
> > >> 4.08
> > >>
> > >> But now I need to get rid of just the  in front of the 4.08?
> > >>
> > > cut --delimiter=">" --field=2
> > >
> > > you could even get rid of the awk and pipe your grep to cut
> > > --delimiter=">" --field=2 | cut --delimiter=" " --field=1
> > >
> > > But there are many different ways to solve this.
> > >
> > > greetings
> > > Patrick
> > >
> > >
> > > ___
> > > CentOS mailing list
> > > CentOS@centos.org
> > > http://lists.centos.org/mailman/listinfo/centos
> > >
> > >
> >
> >
> > --
> > GPG me!!
> >
> > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
>
>
>
> Try accessing the stats with the additional "?auto" suffix, it is meant to
> be machine-readable, and is much shorter, e.g:
>
> http://$(hostname -i)/server-status/?auto
>
>
>
> --
> Marios Zindilis
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Marios Zindilis
On Tue, Jun 3, 2014 at 4:56 PM, Tim Dunphy  wrote:

> Guys,
>
>  Thank you all for your input. I can't believe how helpful this list is and
> I'm very grateful. Ok so here is what I have so far of my script to get the
> number of apache requests to a given host:
>
> #!/bin/bash
>
> # this script parses mod_status to see which hosts are getting the most
> requests
>
>
> echo “Time:”  >> /tmp/apache_request_log
>
> /usr/bin/ts >> /tmp/apache_request_log
>
> echo -e “\n” >> /tmp/apache_request_log
>
> echo “hostname”   >> /tmp/apache_request_log
>
> /bin/hostname -f  >> /tmp/apache_request_log
>
> echo -e “\n” >> /tmp/apache_request_log
>
> echo “hostname ip”   >> /tmp/apache_request_log
>
> /bin/hostname -i  >> /tmp/apache_request_log
>
> echo -e “\n” >> /tmp/apache_request_log
>
> echo “Requests per second:”  >> /tmp/apache_request_log
>
> /usr/bin/GET  http://$(/bin/hostname -i)/server-status  | /bin/grep  -i -e
> request -e requests/sec | grep -i -v -e currently  -e code  -e ss | awk
> '{print $1}' | cut -d'>' -f2  >> /tmp/apache_request_log
>
> echo “Requests processed / Idle workers:”  >> /tmp/apache_request_log
>
> /usr/bin/GET http://$(hostname -i)/server-status | /bin/grep  -i -e
> requests -e currently | grep -v -e requests/sec | cut -d'>' -f2 | cut -d'<'
> -f1  >> /tmp/apache_request_log
>
> echo -e “\n\n”  >> /tmp/apache_request_log
>
> /bin/sleep 60
>
>
>
> So now my question is, is there any way to limit the size of the output log
> from within the script without having to use logrotate? I can use that, but
> I would prefer to do that from within the script if that's possib.e
>
>
> Thanks
>
> Tim
>
>
> On Tue, Jun 3, 2014 at 9:29 AM, Patrick Bervoets <
> patrick.bervo...@psc-elsene.be> wrote:
>
> >
> > op 03-06-14 15:18, schreef Tim Dunphy:
> >
> >[root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  |
> >> grep
> >> -i  requests/sec
> >> 4.08 requests/sec - 80.9 kB/second - 19.8 kB/request
> >>
> >>
> >> That works ok. And next I'm grepping it back down and awking it to just
> >> the
> >> part I'm interested in:
> >>
> >> [root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  |
> grep
> >> -i
> >> -e request -e requests/sec | grep -i -v -e currently  -e code  -e ss |
> awk
> >> '{print $1}'
> >> 4.08
> >>
> >> But now I need to get rid of just the  in front of the 4.08?
> >>
> > cut --delimiter=">" --field=2
> >
> > you could even get rid of the awk and pipe your grep to cut
> > --delimiter=">" --field=2 | cut --delimiter=" " --field=1
> >
> > But there are many different ways to solve this.
> >
> > greetings
> > Patrick
> >
> >
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> >
>
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



Try accessing the stats with the additional "?auto" suffix, it is meant to
be machine-readable, and is much shorter, e.g:

http://$(hostname -i)/server-status/?auto



-- 
Marios Zindilis
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Tim Dunphy
Guys,

 Thank you all for your input. I can't believe how helpful this list is and
I'm very grateful. Ok so here is what I have so far of my script to get the
number of apache requests to a given host:

#!/bin/bash

# this script parses mod_status to see which hosts are getting the most
requests


echo “Time:”  >> /tmp/apache_request_log

/usr/bin/ts >> /tmp/apache_request_log

echo -e “\n” >> /tmp/apache_request_log

echo “hostname”   >> /tmp/apache_request_log

/bin/hostname -f  >> /tmp/apache_request_log

echo -e “\n” >> /tmp/apache_request_log

echo “hostname ip”   >> /tmp/apache_request_log

/bin/hostname -i  >> /tmp/apache_request_log

echo -e “\n” >> /tmp/apache_request_log

echo “Requests per second:”  >> /tmp/apache_request_log

/usr/bin/GET  http://$(/bin/hostname -i)/server-status  | /bin/grep  -i -e
request -e requests/sec | grep -i -v -e currently  -e code  -e ss | awk
'{print $1}' | cut -d'>' -f2  >> /tmp/apache_request_log

echo “Requests processed / Idle workers:”  >> /tmp/apache_request_log

/usr/bin/GET http://$(hostname -i)/server-status | /bin/grep  -i -e
requests -e currently | grep -v -e requests/sec | cut -d'>' -f2 | cut -d'<'
-f1  >> /tmp/apache_request_log

echo -e “\n\n”  >> /tmp/apache_request_log

/bin/sleep 60



So now my question is, is there any way to limit the size of the output log
from within the script without having to use logrotate? I can use that, but
I would prefer to do that from within the script if that's possib.e


Thanks

Tim


On Tue, Jun 3, 2014 at 9:29 AM, Patrick Bervoets <
patrick.bervo...@psc-elsene.be> wrote:

>
> op 03-06-14 15:18, schreef Tim Dunphy:
>
>[root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  |
>> grep
>> -i  requests/sec
>> 4.08 requests/sec - 80.9 kB/second - 19.8 kB/request
>>
>>
>> That works ok. And next I'm grepping it back down and awking it to just
>> the
>> part I'm interested in:
>>
>> [root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  | grep
>> -i
>> -e request -e requests/sec | grep -i -v -e currently  -e code  -e ss | awk
>> '{print $1}'
>> 4.08
>>
>> But now I need to get rid of just the  in front of the 4.08?
>>
> cut --delimiter=">" --field=2
>
> you could even get rid of the awk and pipe your grep to cut
> --delimiter=">" --field=2 | cut --delimiter=" " --field=1
>
> But there are many different ways to solve this.
>
> greetings
> Patrick
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>


-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] parsing out adjacent text

2014-06-03 Thread Patrick Bervoets


op 03-06-14 15:18, schreef Tim Dunphy:

  [root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  | grep
-i  requests/sec
4.08 requests/sec - 80.9 kB/second - 19.8 kB/request


That works ok. And next I'm grepping it back down and awking it to just the
part I'm interested in:

[root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  | grep -i
-e request -e requests/sec | grep -i -v -e currently  -e code  -e ss | awk
'{print $1}'
4.08

But now I need to get rid of just the  in front of the 4.08?

cut --delimiter=">" --field=2

you could even get rid of the awk and pipe your grep to cut --delimiter=">" --field=2 | 
cut --delimiter=" " --field=1

But there are many different ways to solve this.

greetings
Patrick

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] parsing out adjacent text

2014-06-03 Thread Tim Dunphy
hey all,

 I'm trying to figure out how to use apache's mod_status module to figure
out which of the web servers in a farm of six are processing more requests
than others.

 I'm writing a script to grep out requests per second from the status
module like this:

 [root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  | grep
-i  requests/sec
4.08 requests/sec - 80.9 kB/second - 19.8 kB/request


That works ok. And next I'm grepping it back down and awking it to just the
part I'm interested in:

[root@uszmpwslp014lc ~]# GET http://$(hostname -i)/server-status  | grep -i
-e request -e requests/sec | grep -i -v -e currently  -e code  -e ss | awk
'{print $1}'
4.08

But now I need to get rid of just the  in front of the 4.08?

I think I may be able to use the 'cut' command to do this, but I'm unsure
how.

Any thoughts?

Thanks
Tim



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] clamav

2014-06-03 Thread Les Mikesell
On Mon, Jun 2, 2014 at 8:36 PM, Emmett Culley
 wrote:
> On 05/30/2014 02:59 PM, Les Mikesell wrote:
>
>> I don't think just installing the package makes it filter mail.   If
>> you want to really start from scratch you might try mimedefang to
>> drive all your scanning/filtering, especially if you are running
>> sendmail and can write some perl snippets to control it.
>>
> Sorry, I quit trying to get sendmail to do what I needed many years ago.  
> I've found postfix to be much easier to configure and extend.
>

But that is the beauty of mimedefang.  You add most of the control in
the milter, in the form of perl scripting.  You can leave the stock
sendmail.mc with only a few changes for your site and to hook the
milter in.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Odd kernel panic, repeatable

2014-06-03 Thread mark
I had an old server die; we had another, same model, sitting around lightly 
used, so I did what I've done before: swap the RAID card into that, swap the 
drives, even putting them in the same bays as the dead one, and boot.

Nope. 100% of the time, when it hits switching roots, it kernel panics.

Adding rdshell to the kernel line does nothing, I get no grub rdshell. Booting 
from a flash drive into rescue, it finds everything, *perfectly*, and mounts 
it all, including the RAID data drives.

I've rebuilt the initrd, and no joy.

Anyone have an idea?

mark
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 112, Issue 1

2014-06-03 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CentOS-announce digest..."


Today's Topics:

   1. CEBA-2014:0585  CentOS 6 pango FASTTRACK Update (Johnny Hughes)
   2. CEBA-2014:0588 CentOS 6 perl-WWW-Curl FASTTRACK   Update
  (Johnny Hughes)
   3. CEBA-2014:0587 CentOS 6 finger FASTTRACK Update (Johnny Hughes)
   4. CEBA-2014:0586 CentOS 6 gettext FASTTRACK Update (Johnny Hughes)
   5. CEBA-2014:0584  CentOS 6 gvfs Update (Johnny Hughes)
   6. CentOS Dojo at  University of Cincinnati, Ohio,   USA 4th June
  2014 (Karanbir Singh)


--

Message: 1
Date: Mon, 2 Jun 2014 11:15:43 +
From: Johnny Hughes 
Subject: [CentOS-announce] CEBA-2014:0585  CentOS 6 pango FASTTRACK
Update
To: centos-annou...@centos.org
Message-ID: <20140602111543.ga44...@n04.lon1.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2014:0585 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2014-0585.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 

i386:
fed6b64dd11c7674f083e247f88155f694926a371d0011d9c963675273a2afe4  
pango-1.28.1-10.el6.i686.rpm
7fa44d52c8dcb30e652a9292d5cc70b6de4a375237814669af4101dffa82a5af  
pango-devel-1.28.1-10.el6.i686.rpm

x86_64:
fed6b64dd11c7674f083e247f88155f694926a371d0011d9c963675273a2afe4  
pango-1.28.1-10.el6.i686.rpm
414b4892afff1ea1938616177855ae3b46a5a7b9ada54c5435a69c1ee01f95d8  
pango-1.28.1-10.el6.x86_64.rpm
7fa44d52c8dcb30e652a9292d5cc70b6de4a375237814669af4101dffa82a5af  
pango-devel-1.28.1-10.el6.i686.rpm
b953b213cd91c24fa2386550e9f45adc0cd6343f3950c76fd26337961452e96b  
pango-devel-1.28.1-10.el6.x86_64.rpm

Source:
4fa4091e3df6a9aca36fcc4f97bce5ff3204c9e9d59501852cec75627ee55201  
pango-1.28.1-10.el6.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

Message: 2
Date: Mon, 2 Jun 2014 11:16:09 +
From: Johnny Hughes 
Subject: [CentOS-announce] CEBA-2014:0588 CentOS 6 perl-WWW-Curl
FASTTRACK   Update
To: centos-annou...@centos.org
Message-ID: <20140602111609.ga45...@n04.lon1.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2014:0588 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2014-0588.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 

i386:
76b3c17175cab8d480ba5a666c4897dbc8c7297ace2782589552a70ff2772fce  
perl-WWW-Curl-4.09-4.el6.i686.rpm

x86_64:
eddcf4919b9872d64ba07e5981e521529b66f311d311935bb45f1b9be71104f7  
perl-WWW-Curl-4.09-4.el6.x86_64.rpm

Source:
8b97a090e59623e7be150e8ff9e14b46daabb6fafb5495df032624226accf4c0  
perl-WWW-Curl-4.09-4.el6.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

Message: 3
Date: Mon, 2 Jun 2014 11:16:37 +
From: Johnny Hughes 
Subject: [CentOS-announce] CEBA-2014:0587 CentOS 6 finger FASTTRACK
Update
To: centos-annou...@centos.org
Message-ID: <20140602111637.ga45...@n04.lon1.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2014:0587 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2014-0587.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 

i386:
aa9e8c59429c405dbce170189f6c91c89ec214335af6c5633b595c4f4d16f581  
finger-0.17-40.el6.i686.rpm
bedf14297e4c0ffb238b107c66ef8df77678665f67666387df4cd945488c7842  
finger-server-0.17-40.el6.i686.rpm

x86_64:
0bd06f2b3fa1f3759684fdd0637f9192043e74d4c4f5a943810bd377484b2df4  
finger-0.17-40.el6.x86_64.rpm
0ab50edec7522472c2b52f7046942b1e1430cdb51b306e33b815273abb49ecd1  
finger-server-0.17-40.el6.x86_64.rpm

Source:
6bc669fb3a83986cda5c1001783154ddcbe661f32323271dc5c5f4b3792822af  
finger-0.17-40.el6.src.rpm



-- 
Johnny Hughes
CentOS Project { http://www.centos.org/ }
irc: hughesjr, #cen...@irc.freenode.net



--

Message: 4
Date: Mon, 2 Jun 2014 11:17:04 +
From: Johnny Hughes 
Subject: [CentOS-announce] CEBA-2014:0586 CentOS 6 gettext FASTTRACK
Update
To: centos-annou...@centos.org
Message-ID: <20140602111704.ga45...@n04.lon1.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2014:0586 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2014-0

[CentOS] Realtek device 5249 kernel module for C6 - a request to epel

2014-06-03 Thread Patrick Bervoets

Hi,

I try to make my SD-reader work on a HP ZBook.

lspci
5d:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5249 
(rev 01)

uname -a
Linux Antisana.psc-elsene.be 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 
23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Googling gave me 
http://linuxterminal.org/issue-with-rts5229-pci-express-card-reader/; last 
reply by François suggests to download the Realtek 5229 driver, edit the 
Makefile and rtsx.c and compile.
And it works as stated.

It would be handy if this module could be incorporated with epel. But I can't 
find the right way to make such a request. (shame on me)

Thanks for any pointer
Patrick

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos