Re: [CentOS] qemu

2010-09-28 Thread John Doe
From: mattias 

> How to start qemu in textmode
> The --curses option are  removed

Unless you have a newer version than mine or really implied using 2 '-', the 
man 
page says -curses...

JD


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


Re: [CentOS] Question on installing .run file

2010-09-28 Thread John Doe
From: Jerry Geis 

> However  the spawn and send commands dont seem to be 
> part of that package.
> Doing a  yum provides on each gives me nothing.
> I think the three commands are  needed spawn,send and expect.
> Am I missing something else?

Why not try the autoexpect command?
The man page says: generate an Expect script from watching a session

JD


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


[CentOS] MegaRAID Storage Manager on CentOS 5.5?

2010-09-28 Thread James Pearson
Does anyone have the 'MegaRAID Storage Manager' GUI working on CentOS 5.5?

I can run it, but it won't let me log in.

The docs state that it requires the local root username and password - 
but it always rejects this with "Message = Login failed: Invalid 
username or password!"

Thanks

James Pearson

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


Re: [CentOS] qemu

2010-09-28 Thread mattias
i have the qemu from centos yum repo
tis 2010-09-28 klockan 01:20 -0700 skrev John Doe:
> From: mattias 
> 
> > How to start qemu in textmode
> > The --curses option are  removed
> 
> Unless you have a newer version than mine or really implied using 2 '-', the 
> man 
> page says -curses...
> 
> JD
> 
> 
>   
> ___
> 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


[CentOS] logwatch question

2010-09-28 Thread lostson
Hello 
 A few weeks ago I started having problems with my system email or
specifically my logwatch reports showing up in my inbox. I got most of
those issues figued out except one now when i get an email from my
system it has a title of this 

 Cron  run-parts /etc/cron.daily


 with this message 

 /etc/cron.daily/0logwatch:

Recipient names must be specified

 I have my aliases set right and have been googling for an answer and
just cant seem to find anything pointing me in the right direction. But
this has been going on for awhile now and i would like to get my normal
reports back that i used to get. I have never had to do much else except
set my aliases file up correctly and i just always got the daily
reports. I am probably missing something amazingly simple but i just
cant seem to find it any ideas, thanks.

 LostSon

 http://lostsonsvault.org


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


[CentOS] how to get ASUS USB-N13 802.11n net adapter working on 5.5?

2010-09-28 Thread Robert P. J. Day

  first, the short form of the question -- has anyone got that
wireless adapter working on centos 5.5 and associated with an access
point that uses WPA/WPA2 security?

  and the details.

  in a classroom where there is *no* wired networking at all, all PCs
have only that wireless net adapter, which works fine on windows but,
after installing centos 5.5, unsurprisingly, we have no networking.
there is no backup wired network, and no other adapters.

  there is a CD that came with the adapters, with a Linux directory,
so it was easy enough to dump that onto my personal centos 5.5 box,
and run "make" which generated the loadable "rt3070sta.ko" module.
and, yes, that module loads.  so far, so good.

  however, that still doesn't do it as based on what i've read
online), because the access point here uses WPA/WPA2, i need to
use wpa_supplicant to be able to configure the wireless interface for
that.  and that's about when i got kicked out of the classroom as they
were closing for the evening.

  thoughts?  any advice humongously appreciated.

rday

-- 


Robert P. J. Day   Waterloo, Ontario, CANADA

Top-notch, inexpensive online Linux/OSS/kernel courses
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

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


Re: [CentOS] how to get ASUS USB-N13 802.11n net adapter working on 5.5?

2010-09-28 Thread Akemi Yagi
On Tue, Sep 28, 2010 at 5:13 AM, Robert P. J. Day  wrote:

>  however, that still doesn't do it as based on what i've read
> online), because the access point here uses WPA/WPA2, i need to
> use wpa_supplicant to be able to configure the wireless interface for
> that.  and that's about when i got kicked out of the classroom as they
> were closing for the evening.
>
>  thoughts?  any advice humongously appreciated.

These CentOS wili pages will help:

http://wiki.centos.org/HowTos/Laptops/NetworkManager

and

http://wiki.centos.org/HowTos/Laptops/WpaSupplicant

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


Re: [CentOS] how to get ASUS USB-N13 802.11n net adapter working on 5.5?

2010-09-28 Thread Robert P. J. Day
On Tue, 28 Sep 2010, Akemi Yagi wrote:

> On Tue, Sep 28, 2010 at 5:13 AM, Robert P. J. Day  
> wrote:
>
> >  however, that still doesn't do it as based on what i've read
> > online), because the access point here uses WPA/WPA2, i need to
> > use wpa_supplicant to be able to configure the wireless interface for
> > that.  and that's about when i got kicked out of the classroom as they
> > were closing for the evening.
> >
> >  thoughts?  any advice humongously appreciated.
>
> These CentOS wili pages will help:
>
> http://wiki.centos.org/HowTos/Laptops/NetworkManager
>
> and
>
> http://wiki.centos.org/HowTos/Laptops/WpaSupplicant

  *sigh*.  i really need to check the wiki first before asking stuff
like this.  thanks.

rday

-- 


Robert P. J. Day   Waterloo, Ontario, CANADA

Top-notch, inexpensive online Linux/OSS/kernel courses
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] qemu

2010-09-28 Thread Eduardo Grosclaude
On Tue, Sep 28, 2010 at 8:06 AM, mattias  wrote:
> i have the qemu from centos yum repo
> tis 2010-09-28 klockan 01:20 -0700 skrev John Doe:
>> From: mattias 
>>
>> > How to start qemu in textmode
>> > The --curses option are  removed

Perhaps you want --nographic?

-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MegaRAID Storage Manager on CentOS 5.5?

2010-09-28 Thread JohnS

On Tue, 2010-09-28 at 11:33 +0100, James Pearson wrote:
> Does anyone have the 'MegaRAID Storage Manager' GUI working on CentOS 5.5?
> 
> I can run it, but it won't let me log in.
> 
> The docs state that it requires the local root username and password - 
> but it always rejects this with "Message = Login failed: Invalid 
> username or password!"
> 
> Thanks
> 
> James Pearson
-
Try 
raid / raid for u & p

John

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


Re: [CentOS] qemu

2010-09-28 Thread mattias
i have tryed it but qemu says
cant load /dev/kqemu or something
tis 2010-09-28 klockan 10:13 -0300 skrev Eduardo Grosclaude:
> On Tue, Sep 28, 2010 at 8:06 AM, mattias  wrote:
> > i have the qemu from centos yum repo
> > tis 2010-09-28 klockan 01:20 -0700 skrev John Doe:
> >> From: mattias 
> >>
> >> > How to start qemu in textmode
> >> > The --curses option are  removed
> 
> Perhaps you want --nographic?
> 



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


Re: [CentOS] qemu

2010-09-28 Thread Eduardo Grosclaude
On Tue, Sep 28, 2010 at 10:25 AM, mattias  wrote:
> tis 2010-09-28 klockan 10:13 -0300 skrev Eduardo Grosclaude:
>> On Tue, Sep 28, 2010 at 8:06 AM, mattias  wrote:
>> > i have the qemu from centos yum repo
>> > tis 2010-09-28 klockan 01:20 -0700 skrev John Doe:
>> >> From: mattias 
>> >>
>> >> > How to start qemu in textmode
>> >> > The --curses option are  removed
>>
>> Perhaps you want --nographic?
>>
> i have tryed it but qemu says
> cant load /dev/kqemu or something

That message doesn't seem related to text mode qemu operation to me.
Please do "yum install dkms-kqemu". Then do "modprobe kqemu" if needed.


-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] qemu

2010-09-28 Thread mattias
can i run multiple instances of qemu?
there is a choice demonize or how it spells

tis 2010-09-28 klockan 10:33 -0300 skrev Eduardo Grosclaude:
> On Tue, Sep 28, 2010 at 10:25 AM, mattias  wrote:
> > tis 2010-09-28 klockan 10:13 -0300 skrev Eduardo Grosclaude:
> >> On Tue, Sep 28, 2010 at 8:06 AM, mattias  wrote:
> >> > i have the qemu from centos yum repo
> >> > tis 2010-09-28 klockan 01:20 -0700 skrev John Doe:
> >> >> From: mattias 
> >> >>
> >> >> > How to start qemu in textmode
> >> >> > The --curses option are  removed
> >>
> >> Perhaps you want --nographic?
> >>
> > i have tryed it but qemu says
> > cant load /dev/kqemu or something
> 
> That message doesn't seem related to text mode qemu operation to me.
> Please do "yum install dkms-kqemu". Then do "modprobe kqemu" if needed.
> 
> 



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


Re: [CentOS] RAID rebuild time and disk utilization....

2010-09-28 Thread Ross Walker
On Sep 28, 2010, at 12:40 AM, John R Pierce  wrote:

>  On 09/27/10 7:49 PM, Tom Bishop wrote:
>> How do I figure out if it's a 4k sector drive, I've read about that 
>> but never looked into it...is there any way to tell, and when you mean 
>> start my partition, I only have one large partition, since this is 
>> just for my data filesso you mean I should start on 2048 and go up 
>> from there???  Thanks in advance...going to do some more reading...
> 
> a lot of new drives are using 4K byte sectors internally for various 
> technical reasons.  they pretend they have 512 byte sectors externally 
> for compatibility
> 
> by default, the first few blocks of the disk is the MBR, then the first 
> partition starts right after that.   if you dont do anything special 
> about this, odds are, 'right after that' is not on a 4K boundary.  you 
> need to 'trim' the start position of the each partition so its on a 4K 
> boundary.

True, traditionally fdisk has made the first partition start on sector 63 
(sectors 0-62 holds MBR and maybe grub secondary loader) as that is what DOS 
did. Sector 63 is 1 sector before the 16th 4k block, thus every read and write 
will straddle two blocks, sequential IO will suffer since it will have to seek 
back one for each step forward (if the block isn't in cache), and each write 
will incur a read.

This can be avoided by manually creating your partition at a given offset 
and/or manipulating your LVM metadata size so the first extent starts at the 
proper offset.

Sector 2048 (1MB) was chosen because not only is it on a 4k boundary, but it is 
also aligned with most RAID chunk sizes, and thus won't straddle two RAID 
chunks which incurs another penalty.

Windows 2008 and later default to sector 2048 and if you can control the 
partition offset it's recommended to do the same.

Having said that I don't believe the OP's problem is completely due to 
misalignment, but a combo of that and hardware problems.

-Ross

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


Re: [CentOS] MegaRAID Storage Manager on CentOS 5.5?

2010-09-28 Thread James Pearson
JohnS wrote:
> On Tue, 2010-09-28 at 11:33 +0100, James Pearson wrote:
> 
>>Does anyone have the 'MegaRAID Storage Manager' GUI working on CentOS 5.5?
>>
>>I can run it, but it won't let me log in.
>>
>>The docs state that it requires the local root username and password - 
>>but it always rejects this with "Message = Login failed: Invalid 
>>username or password!"
> 
> -
> Try 
> raid / raid for u & p

Thanks - but that doesn't work either ...

James Pearson

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


Re: [CentOS] RAID rebuild time and disk utilization....

2010-09-28 Thread Tom Bishop
The samsung model is not a 4K sector drive, although I did tear it down and
made the partition changes moving it to start at sector 64 vs 63 and also
tried at 2048when all was said and done, no change in performance.  One
final step that I did make was to move the drive to a different port along
with changing the cable, I moved to the port that the other drive was on and
working fineafter doing that it appears the problem follows the
drive...I am thinking of swapping out the drive and then going from
there




On Tue, Sep 28, 2010 at 9:10 AM, Ross Walker  wrote:

> On Sep 28, 2010, at 12:40 AM, John R Pierce  wrote:
>
> >  On 09/27/10 7:49 PM, Tom Bishop wrote:
> >> How do I figure out if it's a 4k sector drive, I've read about that
> >> but never looked into it...is there any way to tell, and when you mean
> >> start my partition, I only have one large partition, since this is
> >> just for my data filesso you mean I should start on 2048 and go up
> >> from there???  Thanks in advance...going to do some more reading...
> >
> > a lot of new drives are using 4K byte sectors internally for various
> > technical reasons.  they pretend they have 512 byte sectors externally
> > for compatibility
> >
> > by default, the first few blocks of the disk is the MBR, then the first
> > partition starts right after that.   if you dont do anything special
> > about this, odds are, 'right after that' is not on a 4K boundary.  you
> > need to 'trim' the start position of the each partition so its on a 4K
> > boundary.
>
> True, traditionally fdisk has made the first partition start on sector 63
> (sectors 0-62 holds MBR and maybe grub secondary loader) as that is what DOS
> did. Sector 63 is 1 sector before the 16th 4k block, thus every read and
> write will straddle two blocks, sequential IO will suffer since it will have
> to seek back one for each step forward (if the block isn't in cache), and
> each write will incur a read.
>
> This can be avoided by manually creating your partition at a given offset
> and/or manipulating your LVM metadata size so the first extent starts at the
> proper offset.
>
> Sector 2048 (1MB) was chosen because not only is it on a 4k boundary, but
> it is also aligned with most RAID chunk sizes, and thus won't straddle two
> RAID chunks which incurs another penalty.
>
> Windows 2008 and later default to sector 2048 and if you can control the
> partition offset it's recommended to do the same.
>
> Having said that I don't believe the OP's problem is completely due to
> misalignment, but a combo of that and hardware problems.
>
> -Ross
>
> ___
> 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] MegaRAID Storage Manager on CentOS 5.5?

2010-09-28 Thread John Doe
From: James Pearson 

> JohnS wrote:
> > On Tue, 2010-09-28 at 11:33 +0100, James Pearson  wrote:
> > 
> >>Does anyone have the 'MegaRAID Storage Manager' GUI  working on CentOS 5.5?
> >>
> >>I can run it, but it won't let me  log in.
> >>
> >>The docs state that it requires the local root  username and password - 
> >>but it always rejects this with "Message =  Login failed: Invalid 
> >>username or password!"
> > 
> >  -
> > Try 
> > raid / raid for u & p
> 
> Thanks - but  that doesn't work either ...

Just in case... did you try 'Administrator' (a la Windows)...?

JD


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


Re: [CentOS] qemu

2010-09-28 Thread Eduardo Grosclaude
On Tue, Sep 28, 2010 at 10:45 AM, mattias  wrote:
> tis 2010-09-28 klockan 10:33 -0300 skrev Eduardo Grosclaude:
>> On Tue, Sep 28, 2010 at 10:25 AM, mattias  wrote:
>> > tis 2010-09-28 klockan 10:13 -0300 skrev Eduardo Grosclaude:
>> >> On Tue, Sep 28, 2010 at 8:06 AM, mattias  wrote:
>> >> > i have the qemu from centos yum repo
>> >> > tis 2010-09-28 klockan 01:20 -0700 skrev John Doe:
>> >> >> From: mattias 
>> >> >>
>> >> >> > How to start qemu in textmode
>> >> >> > The --curses option are  removed
>> >>
>> >> Perhaps you want --nographic?
>> >>
>> > i have tryed it but qemu says
>> > cant load /dev/kqemu or something
>>
>> That message doesn't seem related to text mode qemu operation to me.
>> Please do "yum install dkms-kqemu". Then do "modprobe kqemu" if needed.
>>
> can i run multiple instances of qemu?
> there is a choice demonize or how it spells

You can certainly run a number of qemu instances.
You can detach from terminal with -daemonize. Use it when launching
from system scripts at boot, etc.


-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] qemu

2010-09-28 Thread John Doe
From: mattias 

> i have tryed it but qemu says
> cant load /dev/kqemu or something

Again, did you try -curses (and not --curses)...?

JD


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


Re: [CentOS] MegaRAID Storage Manager on CentOS 5.5?

2010-09-28 Thread James Pearson
John Doe wrote:
> 
> Just in case... did you try 'Administrator' (a la Windows)...?

I've tried everything I can think of ... even removing root's password - 
but nothing works.

I have a support case open with LSI, but as yet they haven't come up 
with a solution ... so I was hoping that someone here had managed to use 
this on CentOS 5.5 ...

Thanks

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


Re: [CentOS] Acronis True Image or Clonezilla

2010-09-28 Thread Timothy Murphy
Jerry McAllister wrote:

>> I want to clone a small (80GB) disk on my CentOS server
>> to a large (1.5TB) disk,
>> as smart has been giving me warnings of unreadable sectors.
>> 
>> Both disks are Western Digital,
>> and WD has a WD version of Acronis True Image.
>> I'm not sure whether to use this or Clonezilla.
>> 
>> My worry with Acronis is that I want to keep
>> the original disk, and I'm not sure
>> from the documentation if True Image allows this.
>> 
>> Any opinions on the better of the two?
>> 
> 
> I would be inclined to suggest regular UNIX dump/restore.
> The size change is covered in normal UNIX fashion and all
> links, ownership, permissions and flags are preserved properly.

I should have admitted that there is a Windows partition on the old disk.
It came with the machine, but I never use it.
However, I would like to save it if possible,
as there seem to be some operations on this computer (HP ProLiant M110),
eg updating the BIOS, which seem to require Windows to be running.


-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

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


Re: [CentOS] logwatch question

2010-09-28 Thread Mark Van Bogart
Did you run 'newaliases' after editing /etc/aliases?

Sent from my iPhone

On Sep 28, 2010, at 6:27 AM, lostson  wrote:

> Hello 
> A few weeks ago I started having problems with my system email or
> specifically my logwatch reports showing up in my inbox. I got most of
> those issues figued out except one now when i get an email from my
> system it has a title of this 
> 
> Cron  run-parts /etc/cron.daily
> 
> 
> with this message 
> 
> /etc/cron.daily/0logwatch:
> 
> Recipient names must be specified
> 
> I have my aliases set right and have been googling for an answer and
> just cant seem to find anything pointing me in the right direction. But
> this has been going on for awhile now and i would like to get my normal
> reports back that i used to get. I have never had to do much else except
> set my aliases file up correctly and i just always got the daily
> reports. I am probably missing something amazingly simple but i just
> cant seem to find it any ideas, thanks.
> 
> LostSon
> 
> http://lostsonsvault.org
> 
> 
> ___
> 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] Acronis True Image or Clonezilla

2010-09-28 Thread Les Mikesell
On 9/28/2010 10:27 AM, Timothy Murphy wrote:
> Jerry McAllister wrote:
>
>>> I want to clone a small (80GB) disk on my CentOS server
>>> to a large (1.5TB) disk,
>>> as smart has been giving me warnings of unreadable sectors.
>>>
>>> Both disks are Western Digital,
>>> and WD has a WD version of Acronis True Image.
>>> I'm not sure whether to use this or Clonezilla.
>>>
>>> My worry with Acronis is that I want to keep
>>> the original disk, and I'm not sure
>>> from the documentation if True Image allows this.
>>>
>>> Any opinions on the better of the two?
>>>
>>
>> I would be inclined to suggest regular UNIX dump/restore.
>> The size change is covered in normal UNIX fashion and all
>> links, ownership, permissions and flags are preserved properly.
>
> I should have admitted that there is a Windows partition on the old disk.
> It came with the machine, but I never use it.
> However, I would like to save it if possible,
> as there seem to be some operations on this computer (HP ProLiant M110),
> eg updating the BIOS, which seem to require Windows to be running.

If you know how to reinstall the multi-boot setup, you should be able to 
use clonezilla-live to clone specific partitions and either reinstall 
others or use a file oriented copy technique.  And if you have another 
machine or disk to hold the image you can make a compressed image file 
copy as a backup in case your drive dies before you decide how you want 
to set up the replacement.

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


Re: [CentOS] Acronis True Image or Clonezilla

2010-09-28 Thread Scott Silva
on 9-28-2010 8:27 AM Timothy Murphy spake the following:
> Jerry McAllister wrote:
> 
>>> I want to clone a small (80GB) disk on my CentOS server
>>> to a large (1.5TB) disk,
>>> as smart has been giving me warnings of unreadable sectors.
>>>
>>> Both disks are Western Digital,
>>> and WD has a WD version of Acronis True Image.
>>> I'm not sure whether to use this or Clonezilla.
>>>
>>> My worry with Acronis is that I want to keep
>>> the original disk, and I'm not sure
>>> from the documentation if True Image allows this.
>>>
>>> Any opinions on the better of the two?
>>>
>>
>> I would be inclined to suggest regular UNIX dump/restore.
>> The size change is covered in normal UNIX fashion and all
>> links, ownership, permissions and flags are preserved properly.
> 
> I should have admitted that there is a Windows partition on the old disk.
> It came with the machine, but I never use it.
> However, I would like to save it if possible,
> as there seem to be some operations on this computer (HP ProLiant M110),
> eg updating the BIOS, which seem to require Windows to be running.
> 
> 
All the HP servers I have are fully update able from linux... I don't have a
M110, but I have several ML350's

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


[CentOS] netstat - kill by pid ?

2010-09-28 Thread Carlos S
I am writing a small script to kill process(es) listening on
particular port number. Here I am particularly looking at Java
servlet-containers like Tomcat and JBoss, which sometimes don't
complete their shutdown process and it still shows up as running
process with ps or netstat. This needs to be kill-ed and for that
knowing pid of that process is necessary. The netstat by default
doesn't give only pid(s), so one has to use sed/awk/tr like utility to
extract pid info. Does anyone know any program/utility which gives
pid(s) based on listening port numbers? Or is there any option in
netstat that I am missing?

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


[CentOS] Dell HSPA 5530 - Built-in 3G - Not detected

2010-09-28 Thread Janne Nyman
Hi all,

I have been trying to get CentOS 5.5 running on my Laptop for a while now.
I am currently running Fedora 13 for the only reason that my Dell Wireless
HSPA 5530 built-in 3G Mobile Device is working.

I have tried loading the bcm43xx modules after reading several posts on
Google but not able to get this working at all.

I have run CentOS on my servers for a while now and love it. Just this
last bit that holds me back from going fullt to CentOS.

My laptop is a Dell E6400 and I have tried with both x86 and x86_64
without luck.

Has anyone else got this working or have any clues to the steps I can take
to get closer to a working solution?

-- 
Rgds,

Janne Nyman
E: jny...@jbtec.org

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


Re: [CentOS] netstat - kill by pid ?

2010-09-28 Thread Silviu Hutanu
Hi ,

You can use this:

kill -9 `netstat -antp|grep 8080|grep java|awk '{ print $7 }'|cut -d'/' -f
1`

But if had to do the same thing I would search in the running processes
instead using netstat, anyway you can extract the pid in the same way.


Silviu

On Tue, Sep 28, 2010 at 7:14 PM, Carlos S  wrote:

> I am writing a small script to kill process(es) listening on
> particular port number. Here I am particularly looking at Java
> servlet-containers like Tomcat and JBoss, which sometimes don't
> complete their shutdown process and it still shows up as running
> process with ps or netstat. This needs to be kill-ed and for that
> knowing pid of that process is necessary. The netstat by default
> doesn't give only pid(s), so one has to use sed/awk/tr like utility to
> extract pid info. Does anyone know any program/utility which gives
> pid(s) based on listening port numbers? Or is there any option in
> netstat that I am missing?
>
> Thanks,
> CS.
> ___
> 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] netstat - kill by pid ?

2010-09-28 Thread Jay Leafey

Carlos S wrote:

I am writing a small script to kill process(es) listening on
particular port number. Here I am particularly looking at Java
servlet-containers like Tomcat and JBoss, which sometimes don't
complete their shutdown process and it still shows up as running
process with ps or netstat. This needs to be kill-ed and for that
knowing pid of that process is necessary. The netstat by default
doesn't give only pid(s), so one has to use sed/awk/tr like utility to
extract pid info. Does anyone know any program/utility which gives
pid(s) based on listening port numbers? Or is there any option in
netstat that I am missing?

Thanks,
CS.


fuser will do what you want.  If you were looking for something 
listening on port 80, for instance:



[r...@server ~]# fuser -n tcp 80
80/tcp:   3420  3718  3719  3721  3722  3723  3725  3726  3727
[r...@server ~]# 


The banner ( "80/tcp:" ) is sent to STDERR and the actual PIDs to 
STDOUT, so you could do something like this:



for procpid in $( fuser -n tcp 80 2>/dev/null )
do
kill ${procpid}
done



fuser requires root access.

For more, "man fuser"

--
Jay Leafey - jay.lea...@mindless.com
Memphis, TN


smime.p7s
Description: S/MIME Cryptographic Signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Dell HSPA 5530 - Built-in 3G - Not detected

2010-09-28 Thread Akemi Yagi
On Tue, Sep 28, 2010 at 9:19 AM, Janne Nyman  wrote:

> I have tried loading the bcm43xx modules after reading several posts on
> Google but not able to get this working at all.

> Has anyone else got this working or have any clues to the steps I can take
> to get closer to a working solution?

Have you tried this one?

http://wiki.centos.org/HowTos/Laptops/Wireless/Broadcom

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


[CentOS] how to get ASUS USB-N13 802.11n net adapter working on 5.5?

2010-09-28 Thread R P Herrold
On Tue, 28 Sep 2010, Robert P. J. Day wrote:

>  there is a CD that came with the adapters, with a Linux directory,
> so it was easy enough to dump that onto my personal centos 5.5 box,
> and run "make" which generated the loadable "rt3070sta.ko" module.
> and, yes, that module loads.  so far, so good.

If the module builds and loads cleanly when done manually, you 
are half way home  ;)

>  however, that still doesn't do it as based on what i've read
> online), because the access point here uses WPA/WPA2, i need to
> use wpa_supplicant to be able to configure the wireless interface for
> that.  and that's about when i got kicked out of the classroom as they
> were closing for the evening.

heh -- wpa_supplicant is 'lightly' documented, and the process 
for getting a wholly text mode wireless connection, and 
auto-selecting between open and secure with WPA or WPA2 AP's 
seems like a dark art.  The following is from memory as the 
unit in question is not physically on, and not remotely 
reachable at the moment

[As a bit of background, I was tempted by the price of an 
'e-machine' box, while travelling and a laptop died while on 
the road -- the darn thing takes non-CentOS 'wl' Broadcom 
wireless drivers, and the 'atl1c' wired network driver, of 
which I solved one manually, and the other one with a package 
from El Repo
/me waves to that fine effort ]

It turns out not to be a 'dark art' to get wireless networking 
on the darn thing after all, but it was not trivial, either. I 
reading man pages, tailing logs, stracing stuff, and so forth. 
Most of the effort ended up in getting the configuration 
correct in /etc/wpa_supplicant/wpa_supplicant.conf AND having 
to add a custom add on initscript, and did edits in 
/etc/sysconfig/wpa_supplicant to get the whole shebang working 
properly and hands off

Quick answer is that a script to this effect ran at step S98, 
and basically:
stopped networking
stopped a running wpa_supplicant
rpmmod'd an instance of my locally compiled wireless
driver module
re-loaded said custom wireless driver module
# [ at this point the driver REALLY loaded ]
[re]started the wpa_supplicant
[re]started the networking

and dhcp, and the wireless supplicant basically did a:
iwlist eth0 scan

... which then walked the enumeration of ESSID's and looked 
for a match in /etc/wpa_supplicant/wpa_supplicant.conf  Once 
found, wpa_supplicant hands along the required credential, 
and 'magic happens'

I assume there are various GUI goop tools to this effect, but 
I am not much of a GUI person ;)

I'll try to remember to write this up more formally.  Hope 
this helps

--
end
==
 .-- -... ---.. ... -.- -.--
Copyright (C) 2010 R P Herrold
  herr...@owlriver.com
   My words are not deathless prose,
  but they are mine.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] logwatch question

2010-09-28 Thread LostSon
Yes I did run newaliases and still no joy

Mark Van Bogart  wrote:

>Did you run 'newaliases' after editing /etc/aliases?
>
>Sent from my iPhone
>
>On Sep 28, 2010, at 6:27 AM, lostson  wrote:
>
>> Hello 
>> A few weeks ago I started having problems with my system email or
>> specifically my logwatch reports showing up in my inbox. I got most of
>> those issues figued out except one now when i get an email from my
>> system it has a title of this 
>> 
>> Cron  run-parts /etc/cron.daily
>> 
>> 
>> with this message 
>> 
>> /etc/cron.daily/0logwatch:
>> 
>> Recipient names must be specified
>> 
>> I have my aliases set right and have been googling for an answer and
>> just cant seem to find anything pointing me in the right direction. But
>> this has been going on for awhile now and i would like to get my normal
>> reports back that i used to get. I have never had to do much else except
>> set my aliases file up correctly and i just always got the daily
>> reports. I am probably missing something amazingly simple but i just
>> cant seem to find it any ideas, thanks.
>> 
>> LostSon
>> 
>> http://lostsonsvault.org
>> 
>> 
>> ___
>> 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
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Dell HSPA 5530 - Built-in 3G - Not detected

2010-09-28 Thread m . roth
Janne Nyman wrote:
>
> I have been trying to get CentOS 5.5 running on my Laptop for a while now.
> I am currently running Fedora 13 for the only reason that my Dell Wireless
> HSPA 5530 built-in 3G Mobile Device is working.
>
> I have tried loading the bcm43xx modules after reading several posts on
> Google but not able to get this working at all.

Define "not working", please. Does ethtool show link detected at all?

   mark

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


Re: [CentOS] netstat - kill by pid ?

2010-09-28 Thread m . roth
Silviu Hutanu wrote:
> Hi ,
>
> You can use this:
>
> kill -9 `netstat -antp|grep 8080|grep java|awk '{ print $7 }'|cut -d'/' -f
> 1`
>
> But if had to do the same thing I would search in the running processes
> instead using netstat, anyway you can extract the pid in the same way.
>
Yeah, but don't forget you may have shared memory, etc, left laying
around. Those need to be cleaned out as well.

 mark

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


Re: [CentOS] how to get ASUS USB-N13 802.11n net adapter working on 5.5?

2010-09-28 Thread Scott Robbins
On Tue, Sep 28, 2010 at 01:11:56PM -0400, R P Herrold wrote:
> On Tue, 28 Sep 2010, Robert P. J. Day wrote:
> 
> 
> heh -- wpa_supplicant is 'lightly' documented, and the process 
> for getting a wholly text mode wireless connection, and 
> auto-selecting between open and secure with WPA or WPA2 AP's 
> seems like a dark art.  The following is from memory as the 
> unit in question is not physically on, and not remotely 
> reachable at the moment

Yes, I remember first researching it, and yes, it was a pain to find at
the time.  However, (ta da!!!) I have a page on setting it up--mostly
written for Fedora users who were getting bitten by NetworkManager, but
it goes through testing and setting wpa_supplicant.

http://home.roadrunner.com/~computertaijutsu/wireless.html
It's not exactly a step by step, and was made for a different purpose,
but see if it works for you. (If the wpa.conf test file that I mention
works, then just copy it over to replace the
/etc/wpa_supplicant/wpa_supplicant.conf)

I have another page, that also covers it, as well as having a link to a
more in depth tutorial--again, it was for a specific Fedora issue, but
does go through (in the link to Mike's tutorial) a more detailed write
up of setting up wpa_supplicant.conf. 


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: A, my head. I think I'm sobering up. It's horrible. 
Ah... God... I wish I was dead. 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Mailman - searchable archive

2010-09-28 Thread Jussi Hirvi
Mailman works well for our mailing lists, but the archive is 
unacceptable - the worst thing is lack of search function.

I got one tip for this:

1) emails converted to html format with mhonarc
2) search can be done with htdig

Opinions? Maybe there are better software solutions for this - I hope.

- Jussi

-- 
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hi...@greenspot.fi * http://www.greenspot.fi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Mailman - searchable archive

2010-09-28 Thread John R Pierce
  On 09/28/10 11:30 AM, Jussi Hirvi wrote:
> Mailman works well for our mailing lists, but the archive is
> unacceptable - the worst thing is lack of search function.
>
> I got one tip for this:
>
> 1) emails converted to html format with mhonarc
> 2) search can be done with htdig
>
> Opinions? Maybe there are better software solutions for this - I hope.

add a search form to the archive page header that uses a google search 
w/ site:your.archive.site.com


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


Re: [CentOS] RAID rebuild time and disk utilization....

2010-09-28 Thread Les Mikesell
On 9/28/2010 9:40 AM, Tom Bishop wrote:
> The samsung model is not a 4K sector drive, although I did tear it down
> and made the partition changes moving it to start at sector 64 vs 63 and
> also tried at 2048when all was said and done, no change in
> performance.  One final step that I did make was to move the drive to a
> different port along with changing the cable, I moved to the port that
> the other drive was on and working fineafter doing that it appears
> the problem follows the drive...I am thinking of swapping out the drive
> and then going from there
>

Disks are cheap enough that it's probably not worth the fight to figure 
out what is wrong with this one.  I have some identical Seagate 750G 
drives that I swap regularly and re-sync for offsite copies and one of 
them has started to take about twice as long to complete as the others 
with no indication of problems showing up int the logs.

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


[CentOS] A question about DRBD and nfs

2010-09-28 Thread Chuck Payne
Hi,

I been working on for about a month and half on setup drbd and nfs. I keep 
running into issue with the way heartbeat/pacemaker handles nfs. Does anyone 
know a good way  to set up a HA NFS server with DRBD and Heartbeat and NFS. I 
am willing to share my pain in setting it up.


Chuck Payne
NEO Linux System Engineer
chuck.pa...@vocolacity.com


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


[CentOS] ethtool

2010-09-28 Thread m . roth
We've just moved one a new server from our sever room, where I built it,
to the datacenter. We want to force autoneg off, and tell it gigabit and
full duplex. Using ethtool, I get no errors setting the speed or duplex.
HOWEVER, autoneg on works... and autoneg off utterly refuses to work, and
gives:
ethtool -s eth0 autoneg off
Cannot set new settings: Invalid argument
  not setting autoneg

We're on the most current update of CentOS (ok, last kernel, that will
come up on the reboot I'll do shortly), and it's a  Broadcom Corporation
NetXtreme II BCM5716 Gigabit Ethernet

Anyone have an idea what's going on here?

mark


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


Re: [CentOS] ethtool

2010-09-28 Thread Stephen Harris
On Tue, Sep 28, 2010 at 03:51:17PM -0400, m.r...@5-cent.us wrote:
> We've just moved one a new server from our sever room, where I built it,
> to the datacenter. We want to force autoneg off, and tell it gigabit and
> full duplex. Using ethtool, I get no errors setting the speed or duplex.

Note that the gigabit over copper standard _requires_ autoneg on.  If you
do manage to turn it off then you might break things unexpectedly.

http://en.wikipedia.org/wiki/Autonegotiation

   In 1999, the negotiation protocol was significantly extended by
   IEEE 802.3ab, which specified the protocol for gigabit Ethernet,
   making autonegotiation mandatory for 1000BASE-T gigabit Ethernet over
   copper. Specifically Section 28D.5 Extensions required for Clause40
   (1000BASE-T)

-- 

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


Re: [CentOS] ethtool

2010-09-28 Thread Paul Heinlein
On Tue, 28 Sep 2010, m.r...@5-cent.us wrote:

> We've just moved one a new server from our sever room, where I built 
> it, to the datacenter. We want to force autoneg off, and tell it 
> gigabit and full duplex. Using ethtool, I get no errors setting the 
> speed or duplex. HOWEVER, autoneg on works... and autoneg off 
> utterly refuses to work, and gives:
>
> ethtool -s eth0 autoneg off
> Cannot set new settings: Invalid argument
>  not setting autoneg

Did you turning off autoneg at the same time you set the speed and 
duplex?

   ethtool -s eth0 speed 1000 duplex full autoneg off

-- 
Paul Heinlein <> heinl...@madboa.com <> http://www.madboa.com/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ethtool

2010-09-28 Thread m . roth
Stephen Harris wrote:
> On Tue, Sep 28, 2010 at 03:51:17PM -0400, m.r...@5-cent.us wrote:
>> We've just moved one a new server from our sever room, where I built it,
>> to the datacenter. We want to force autoneg off, and tell it gigabit and
>> full duplex. Using ethtool, I get no errors setting the speed or duplex.
>
> Note that the gigabit over copper standard _requires_ autoneg on.  If you
> do manage to turn it off then you might break things unexpectedly.
>
> http://en.wikipedia.org/wiki/Autonegotiation
>
>In 1999, the negotiation protocol was significantly extended by
>IEEE 802.3ab, which specified the protocol for gigabit Ethernet,
>making autonegotiation mandatory for 1000BASE-T gigabit Ethernet over
>copper. Specifically Section 28D.5 Extensions required for Clause40
>(1000BASE-T)
>
Thanks, Stephen, that looks like my answer. That server, and the dhcpd
server, are both fat and happy on gigabit pipes.

mark

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


Re: [CentOS] ethtool

2010-09-28 Thread m . roth
Paul Heinlein wrote:
> On Tue, 28 Sep 2010, m.r...@5-cent.us wrote:
>
>> We've just moved one a new server from our sever room, where I built
>> it, to the datacenter. We want to force autoneg off, and tell it
>> gigabit and full duplex. Using ethtool, I get no errors setting the
>> speed or duplex. HOWEVER, autoneg on works... and autoneg off
>> utterly refuses to work, and gives:
>>
>> ethtool -s eth0 autoneg off
>> Cannot set new settings: Invalid argument
>>  not setting autoneg
>
> Did you turning off autoneg at the same time you set the speed and
> duplex?
>
>ethtool -s eth0 speed 1000 duplex full autoneg off

That was where I started. And I also tried putting autoneg off first

mark

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


Re: [CentOS] A question about DRBD and nfs

2010-09-28 Thread Joseph L. Casale
>I been working on for about a month and half on setup drbd and nfs. I keep 
>running
>into issue with the way heartbeat/pacemaker handles nfs. Does anyone know a 
>good
>way  to set up a HA NFS server with DRBD and Heartbeat and NFS. I am willing 
>to share
>my pain in setting it up. 

It involves a bit of manual work which all depends on how seamless you want 
failover.
Which I assume is your problem so far. Client mount options play a more 
significant
role in this setup.

The drbd part is trivially provided by the included scripts. It will 
promote/demote from
sec to pri as needed. The NFS part involves some work.

http://sources.redhat.com/cluster/doc/nfscookbook.pdf

If I can offer a small suggestion, if you're on CentOS, use the boxed RHCS, its 
very good
to understate it. Drop pacemaker, but that's my $0.02 CAN:) It's as simple as 
yum install
with some cluster.conf tweaking and voila to setup a cluster. If you don't care 
about the
locks/states being available on the secondary when it gets promoted (I assume 
you're not
using a cluster FS and running pri/pri) then it's easy. When I was learning 
RHCS I recall
symlinking the appropriate dirs on the replicated block device.

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


[CentOS] Centos-ds directory console problem

2010-09-28 Thread g...@desgames.com
I installed centos-ds on a 5.5 installation, following the
instructions to a tee, however now when I log onto the Directory
Console I only get the Servers and Applications and Users and Groups
tabs - no Configuration or Tasks tabs. Initially I was using the wrong
password for the Directory Manager user, but when I put in the correct
password it just sat there saying "Authenticating Directory
Manager..." (something like that). So I followed the instructions to
change the password, but now it just does the same thing as before -
lets me in, but with no Configuration or Tasks tabs. Obviously I'm
being logged in as just an admin user as I can add users, groups and
ou's to the tree.

Any help on this would be most appreciated.

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


Re: [CentOS] MegaRAID Storage Manager on CentOS 5.5?

2010-09-28 Thread Ross Walker
On Sep 28, 2010, at 11:11 AM, James Pearson  wrote:

> John Doe wrote:
>> 
>> Just in case... did you try 'Administrator' (a la Windows)...?
> 
> I've tried everything I can think of ... even removing root's password - 
> but nothing works.
> 
> I have a support case open with LSI, but as yet they haven't come up 
> with a solution ... so I was hoping that someone here had managed to use 
> this on CentOS 5.5 ...

Which version of MSM?

Is the Framework service running?

I have it running on a headless server and run the GUI from a management 
station and can log in without a problem.

-Ross

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


Re: [CentOS] Acronis True Image or Clonezilla

2010-09-28 Thread Timothy Murphy
Les Mikesell wrote:

> If you know how to reinstall the multi-boot setup, you should be able to
> use clonezilla-live to clone specific partitions and either reinstall
> others or use a file oriented copy technique.  And if you have another
> machine or disk to hold the image you can make a compressed image file
> copy as a backup in case your drive dies before you decide how you want
> to set up the replacement.

Yes, thanks for all your help.

I have decided to use clonezilla,
as I discovered on further reading about Acronis WD version
that "clone" for them means "clone a whole disk";
and I couldn't find any firm statement that this operation
actually left anything on the source disk.
(They use the term "transfer" throughout.)

I found the Acronis documentation hard to follow;
but to be fair Clonezilla documentation is fairly obscure too.

-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

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


Re: [CentOS] Mailman - searchable archive

2010-09-28 Thread M. Milanuk
On 9/28/2010 11:30 AM, Jussi Hirvi wrote:

> Opinions? Maybe there are better software solutions for this - I hope.

markmail.org works pretty well for searching, as does gmane.org... with
gmane having the added benefit of providing a bi-directional mail2news
gateway so you can read & post mailing lists as newsgroups, plus you can
browse and post from their web interface.

HTH,

Monte

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


Re: [CentOS] Acronis True Image or Clonezilla

2010-09-28 Thread Timothy Murphy
Scott Silva wrote:

>> I should have admitted that there is a Windows partition on the old disk.
>> It came with the machine, but I never use it.
>> However, I would like to save it if possible,
>> as there seem to be some operations on this computer (HP ProLiant M110),
>> eg updating the BIOS, which seem to require Windows to be running.
>> 
> All the HP servers I have are fully update able from linux... I don't have
> a M110, but I have several ML350's

Sorry, I was talking nonsense.
I have two servers (in different locations), both running CentOS-5.5.
One is an HP ProLiant,
but the one with the bad disk is actually a Dell PowerEdge T105.
The information that came with this explicitly warns
against using Linux to update the BIOS.
(The machine actually came with a curious mixture of Windows and Linux,
in the form of a partial RedHat Enterprise system.)
Also the Western Digital disk software
all seems to assume the the machine is running under Windows.
(Admittedly it didn't tell me anything more than smart under CentOS.)


-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

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


Re: [CentOS] netstat - kill by pid ?

2010-09-28 Thread Carlos S
Thanks for the replies.

I don't want to run this script as sudo/root user and hence not
looking at lsof/fuser.

I think netstat and awk looks good solution for now. Following is what
I have used for now.
[[
netstat -nlp | grep 8082 | awk -F "/" '{ print $1 }' | awk '{ print $7 }'
]]

--
CS.

On Tue, Sep 28, 2010 at 12:33 PM,   wrote:
> Silviu Hutanu wrote:
>> Hi ,
>>
>> You can use this:
>>
>> kill -9 `netstat -antp|grep 8080|grep java|awk '{ print $7 }'|cut -d'/' -f
>> 1`
>>
>> But if had to do the same thing I would search in the running processes
>> instead using netstat, anyway you can extract the pid in the same way.
>>
> Yeah, but don't forget you may have shared memory, etc, left laying
> around. Those need to be cleaned out as well.
>
>     mark
>
> ___
> 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] Mailman - searchable archive

2010-09-28 Thread cpolish
Jussi Hirvi wrote:
> Mailman works well for our mailing lists, but the archive is 
> unacceptable - the worst thing is lack of search function.
> 
> I got one tip for this:
> 
> 1) emails converted to html format with mhonarc
> 2) search can be done with htdig
> 
> Opinions? Maybe there are better software solutions for this - I hope.
> 
> - Jussi

Hello Jussi,

If searching on a local archive on your host consider grepmail.

-- 
Charles Polisher


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