Re: [Boston.pm] Is there a module to access memory usage?

2004-07-15 Thread Chris Devers
On Thu, 15 Jul 2004, Dan Boger wrote: On Wed, Jul 14, 2004 at 11:33:10PM -0400, Federico Lucifredi wrote: LOL... hadn't thought of that one. Besides, would you really want to sshcache your password just for that? Don't need to cache your password, just create a key that executes this one command, a

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-15 Thread Dan Boger
On Wed, Jul 14, 2004 at 11:33:10PM -0400, Federico Lucifredi wrote: > LOL... hadn't thought of that one. Besides, would you really want to > sshcache your password just for that? Don't need to cache your password, just create a key that executes this one command, and use that. Assuming, of course

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-15 Thread Andrew M. Langmead
On Jul 15, 2004, at 6:34 AM, Tal Cohen wrote: With regards to portability, it is OK if I end up writing different code for different machines (BAD Tal, BAD!!!). However I do want to keep it as light weight and internal as possible. If you can't use an external infrastructure like SNMP, then you are

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-15 Thread Chris Devers
On Thu, 15 Jul 2004, Federico Lucifredi wrote: I could try to list the horrors of past versions of SNMP, but Chris seems much more of an expert in it so I will pass the honor and go to bed instead. z :-) Well, no, not an expert as such, I was mainly just summarizing examples from App

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-15 Thread Tal Cohen
is a great help! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew M. Langmead Sent: Wednesday, July 14, 2004 11:24 PM To: 'Boston.PM' Subject: Re: [Boston.pm] Is there a module to access memory usage? On Jul 14, 2004, at 3:56 PM, Mike Will

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Federico Lucifredi
Chris just wrote: > On the downside, there are completely different, filthy details, but at > least they're portably filthy. :-) It should also be pointed out that some of the older versions of SNMP were, err... slightly unsafe in a security sense. Newer versions (are we up to 5 now?) seem to hav

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Chris Devers
On Thu, 15 Jul 2004, Timothy Kohl wrote: But of course, this isn't portable. It won't work on Windows -- which was specifically asked for -- and it also won't work on OSX or various other Unix variants. Back to square one? The point is, there is obviously no portable way to do this except code a b

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Timothy Kohl
> But of course, this isn't portable. It won't work on Windows -- which > was specifically asked for -- and it also won't work on OSX or various > other Unix variants. > > Back to square one? > The point is, there is obviously no portable way to do this except code a bunch of different var

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Federico Lucifredi
Fellow Speakeasy User Mike Burns wrote: > > If this is done under UNIX/Linux, it might be easier than you think: just > > > poke around the proc filesystem and you might find that all you need is > > really there Hey pal, I did not guarantee it for *all* variants.

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Federico Lucifredi
- Original Message - From: "Chris Devers" <[EMAIL PROTECTED]> > As long as you're happy with memory available to DOS that is. :-/ LOL... hadn't thought of that one. Besides, would you really want to sshcache your password just for that? > But hey, 666.0K ought to be enough for anybody!

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Andrew M. Langmead
On Jul 14, 2004, at 3:56 PM, Mike Williams wrote: Tal Cohen wrote: On Wed, Jul 14, 2004 at 02:05:07PM -0400, Tal Cohen wrote: >> I need to write a script that will return how much memory (RAM) is a >> system as well as how much of it is being used. Can anyone assist? One question that I have just

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Chris Devers
On Wed, 14 Jul 2004, Timothy Kohl wrote: Forwarded message: I need to write a script that will return how much memory (RAM) is on a system as well as how much of it is being used. Can anyone assist? If this is done under UNIX/Linux, it might be easier than you think: just poke around the pr

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Mike Burns
--- Federico Lucifredi mumbled on 2004-07-14 23.06.01 -0400 --- > > I need to write a script that will return how much memory (RAM) is on > a > > system as well as how much of it is being used. Can anyone assist? > > If this is done under UNIX/Linux, it might be easier than you think: just

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Timothy Kohl
Forwarded message: > > > I need to write a script that will return how much memory (RAM) is on > a > > system as well as how much of it is being used. Can anyone assist? > > If this is done under UNIX/Linux, it might be easier than you think: just > poke around the proc filesystem and yo

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Federico Lucifredi
> I need to write a script that will return how much memory (RAM) is on a > system as well as how much of it is being used. Can anyone assist? If this is done under UNIX/Linux, it might be easier than you think: just poke around the proc filesystem and you might find that all you need is real

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Joel Gwynn
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Chris Devers > Sent: Wednesday, July 14, 2004 4:33 PM > To: Tal Cohen > Cc: 'Boston.PM' > Subject: RE: [Boston.pm] Is there a module to access memory usage? > > &

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Chris Devers
On Wed, 14 Jul 2004, David Cantrell wrote: Tal Cohen wrote: I know, but that is what I am stuck with (besides, what is wrong with writing platform independent code?). I could use a Windows/DOS batch command...if I knew which one to use. mem, I think. Yes, this seems to work -- sort of: % ssh $w

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Mike Williams
Tal Cohen wrote: On Wed, Jul 14, 2004 at 02:05:07PM -0400, Tal Cohen wrote: >>Hi All, >> >> I need to write a script that will return how much memory (RAM) is a >> system as well as how much of it is being used. Can anyone assist? >> Anthony R. J. Ball wrote: > > `top -n 1` will spit out one ite

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Chris Devers
On Wed, 14 Jul 2004, Tal Cohen wrote: Yeah, I thought of that. I was hoping for a platform independent mechanism. If not, then I can use this type of methodology, but how do I account for Windows based machines? Set up SNMP on each client and write generic, cross-platform scripts that can make S

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Stefan Dragnev
t; If not, then I can use this type of methodology, but > how do I account for > Windows based machines? > > Tal > > -Original Message- > From: Anthony R. J. Ball [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 14, 2004 2:14 PM > To: Tal Cohen > Cc: '

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread David Cantrell
Tal Cohen wrote: I know, but that is what I am stuck with (besides, what is wrong with writing platform independent code?). I could use a Windows/DOS batch command...if I knew which one to use. mem, I think. -- David Cantrell | Degenerate | http://www.cantrell.org.uk/david [OS X] appeals to m

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Gyepi SAM
On Wed, Jul 14, 2004 at 02:22:31PM -0400, Tal Cohen wrote: > Yeah, I thought of that. I was hoping for a platform independent mechanism. > If not, then I can use this type of methodology, but how do I account for > Windows based machines? http://search.cpan.org/search?query=Win32+memory&mode=all

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread William Goedicke
Dear Tal - > "Tal" == Tal Cohen <[EMAIL PROTECTED]> writes: Tal> Hi All, I need to write a script that will return how much Tal> memory (RAM) is on a system as well as how much of it is Tal> being used. Can anyone assist? You may find some helpful ideas in the Nagios (http://www

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Tal Cohen
Ball [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 2:54 PM To: Tal Cohen Cc: 'Boston.PM' Subject: Re: [Boston.pm] Is there a module to access memory usage? I will refrain from rude comment ;) On Wed, Jul 14, 2004 at 02:22:31PM -0400, Tal Cohen wrote: > Yeah, I thou

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Anthony R. J. Ball
> > Tal > > -Original Message- > From: Anthony R. J. Ball [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 14, 2004 2:14 PM > To: Tal Cohen > Cc: 'Boston.PM' > Subject: Re: [Boston.pm] Is there a module to access memory usage? > > > `top -n 1`

RE: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Tal Cohen
To: Tal Cohen Cc: 'Boston.PM' Subject: Re: [Boston.pm] Is there a module to access memory usage? `top -n 1` will spit out one iteration of top that you could then parse. On Wed, Jul 14, 2004 at 02:05:07PM -0400, Tal Cohen wrote: > Hi All, > > I need to write a script t

Re: [Boston.pm] Is there a module to access memory usage?

2004-07-14 Thread Anthony R. J. Ball
`top -n 1` will spit out one iteration of top that you could then parse. On Wed, Jul 14, 2004 at 02:05:07PM -0400, Tal Cohen wrote: > Hi All, > > I need to write a script that will return how much memory (RAM) is on a > system as well as how much of it is being used. Can anyone assist? >