[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby in Systems Administration

Mike Wilson

9/11/2003 2:20:00 PM

I was just wondering if anyone had some really cool uses for Ruby in Systems
Administration. Some examples of what I would consider to be really cool is
stuff like using drb or webrick to poll system status, gather inventory
information, etc. Useful ways to interact with multiple systems. Ways to
push system changes out to hundreds of servers. Etc, etc... I know there's
some stuff on the wiki ( http://www.rubygarden.org/ruby?Rea... ) as
well.

_________________________________________________________________
Express yourself with MSN Messenger 6.0 -- download now!
http://www.msnmessenger-download.com/tracking/rea...


8 Answers

Hugh Sasse

9/11/2003 2:57:00 PM

0

Dmitry Borodaenko

9/11/2003 2:57:00 PM

0

On Thu, Sep 11, 2003 at 11:19:43PM +0900, Mike Wilson wrote:
> I was just wondering if anyone had some really cool uses for Ruby in
> Systems Administration.

Though not exactly what you''re looking for, Rconf is an example of a
working system administration framework, take a look at Alexander
Bokovoy''s slides from EuRuKo 2003:

http://approximity.com/euruko...
http://approximity.com/euruko...euruko03-ab

--
Dmitry Borodaenko

Mauricio Fernández

9/11/2003 8:33:00 PM

0

On Thu, Sep 11, 2003 at 11:19:43PM +0900, Mike Wilson wrote:
> I was just wondering if anyone had some really cool uses for Ruby in
> Systems Administration. Some examples of what I would consider to be
> really cool is stuff like using drb or webrick to poll system status,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You could try to reach jfontan at #ruby-lang (irc.freenode.net, European
timezone). He''s using drb to monitor a big cluster and might want to
comment on his experiences.

--
_ _
| |__ __ _| |_ ___ _ __ ___ __ _ _ __
| ''_ \ / _` | __/ __| ''_ ` _ \ / _` | ''_ \
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

No, that''s wrong too. Now there''s a race condition between the rm and
the mv. Hmm, I need more coffee.
-- Guy Maor on Debian Bug#25228

Rodrigo Bermejo

9/12/2003 7:13:00 PM

0

Take a look at:
http://www.20six.co.u...

It need some improvements, but at the moment it has been very useful to
take control of 800 machines.
*ix -> net/telnet, sockets
win -> drb

If somebody is interested on it, I will put it in raa/rubyforge.

-
Rodrigo Bermejo


Mike Wilson wrote:

> I was just wondering if anyone had some really cool uses for Ruby in
> Systems Administration. Some examples of what I would consider to be
> really cool is stuff like using drb or webrick to poll system status,
> gather inventory information, etc. Useful ways to interact with
> multiple systems. Ways to push system changes out to hundreds of
> servers. Etc, etc... I know there''s some stuff on the wiki (
> http://www.rubygarden.org/ruby?Rea... ) as well.
>
> _________________________________________________________________
> Express yourself with MSN Messenger 6.0 -- download now!
> http://www.msnmessenger-download.com/tracking/rea...
>





Simon Strandgaard

9/12/2003 7:55:00 PM

0

On Sat, 13 Sep 2003 05:13:09 +0900, Bermejo, Rodrigo (PS, CIAT) wrote:

> Take a look at:
> http://www.20six.co.u...
>
> It need some improvements, but at the moment it has been very useful to
> take control of 800 machines.
> *ix -> net/telnet, sockets
> win -> drb
>
> If somebody is interested on it, I will put it in raa/rubyforge.

Put it on rubyforge :-)


What user-interface do you use... gtk, qt, other ?
What kind_of? skin do you use ?

--
Simon Strandgaard

Rodrigo Bermejo

9/12/2003 8:14:00 PM

0

Take a look at:
http://www.20six.co.u...

It need some improvements, but at the moment it has been very useful to
take control of 800 machines.
*ix -> net/telnet, sockets win -> drb

If somebody is interested on it, I will put it in raa/rubyforge.

BTW: I sent this post for 1st time 1hr ago....let see if it works now
-
Rodrigo Bermejo

Mauricio Fernández wrote:

>On Thu, Sep 11, 2003 at 11:19:43PM +0900, Mike Wilson wrote:
>
>
>>I was just wondering if anyone had some really cool uses for Ruby in
>>Systems Administration. Some examples of what I would consider to be
>>really cool is stuff like using drb or webrick to poll system status,
>>
>>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>You could try to reach jfontan at #ruby-lang (irc.freenode.net, European
>timezone). He''s using drb to monitor a big cluster and might want to
>comment on his experiences.
>
>
>

--
General Electric - CIAT
Advanced Engineering Center
________________________________________
Rodrigo Bermejo
Information Technologies.
Dial-comm : *879-0644
Phone :(+52) 442-196-0644
mailto:rodrigo.bermejo@ps.ge.com



dagbrown

9/13/2003 7:37:00 PM

0

In article <Law12-F77HixqDCZx4F000001d0@hotmail.com>,
Mike Wilson <wmwilson01@hotmail.com> wrote:
: I was just wondering if anyone had some really cool uses for Ruby in Systems
: Administration. Some examples of what I would consider to be really cool is
: stuff like using drb or webrick to poll system status, gather inventory
: information, etc.

I use webrick all the time!

Well, I wrote a little script called "quickhttpd" which fires off
a web server on some high port which serves up documents in the
current directory. This is very handy for all those software
packages which come with a pile of HTML, when I don''t feel like
copying it to an actual web page.

Here it is, it''s pretty tiny:

#!/opt/bin/ruby

require ''webrick''

port=rand(2048)+8192;

server=WEBrick::HTTPServer.new(:Port => port,:DocumentRoot => Dir::pwd,
:BindAddress => ''0.0.0.0'', :AccessLog => [ [ nil, nil ] ],
:Logger => WEBrick::Log.new(File.open("/dev/null","w"),nil)
)

trap "INT" do server.shutdown; exit ; end

print "http://"+`uname -n`.chomp+":#{port}/\n"
server.start

It outputs the URL of the web page which you can go to to read
whatever you were trying to read. It''s handy if you''re running
Unix-type browsers because you can just double-click on the URL in
your terminal program, then middle-click on the web browser to go
to the URL.

In sysadminland, though, mostly I toss off quick one-liners.

--Dave

Martin DeMello

9/14/2003 6:19:00 AM

0

Dave Brown <dagbrown@lart.ca> wrote:
>
> Well, I wrote a little script called "quickhttpd" which fires off
> a web server on some high port which serves up documents in the
> current directory. This is very handy for all those software

Nifty! I was actually planning to look into webrick and write this over
the weekend, as a quick way of sharing a directory with someone. You
should put that up somewhere on the wiki.

martin