LAN inventory

Hi, I’ve a LAN with 1000 PC-clients (Windows 2000/XP and Linux) and
I’d like monitor hardware and software: check hardware configuration,
installed software, install and uninstall software remotely, change
local password administrator, etc. I know a good application for this,
OCSInventory, but I’d like develop myself to understand technology.
I’m thinking to use SNMP and I’m considering Perl or Ruby language.
Are there some examples in Ruby? Tutorials? Guides? Ruby with its
libraries is ok for this type of application? Are there similar
application Ruby developed? Can you help me?

Thank you very much.

On Sun, Mar 21, 2010 at 3:20 PM, bigthepaco [email protected]
wrote:

Hi, I’ve a LAN with 1000 PC-clients (Windows 2000/XP and Linux) and
I’d like monitor hardware and software: check hardware configuration,
installed software, install and uninstall software remotely, change
local password administrator, etc. I know a good application for this,
OCSInventory, but I’d like develop myself to understand technology.
I’m thinking to use SNMP and I’m considering Perl or Ruby language.
Are there some examples in Ruby? Tutorials? Guides? Ruby with its
libraries is ok for this type of application?

I’ve not had an opportunity to use them, but Ruby does have libraries
for SNMP and WMI:
http://snmplib.rubyforge.org/
http://ruby-wmi.rubyforge.org/

I have use Ruby to collect information and make modifications to Linux
systems over SSH:
http://net-ssh.rubyforge.org/

I have also used Puppet to maintain Linux systems (I’m not sure about
Windows support there):
http://reductivelabs.com/products/puppet/

There are also Ruby tools like Capistrano (I have used a little bit),
Vlad (I have not used), and God (haven’t used, no Windows support):
http://www.capify.org/index.php/Capistrano
http://rubyhitsquad.com/Vlad_the_Deployer.html
http://god.rubyforge.org/

Are there similar application Ruby developed?

Not open source:
http://www.spiceworks.com/
http://ruby.dzone.com/articles/spiceworks-becoming-force-it

On 22 Mar, 00:22, [email protected] wrote:

I’ve not had an opportunity to use them, but Ruby does have libraries

Are there similar application Ruby developed?

Not open source:http://www.spiceworks.com/http://ruby.dzone.com/articles/spiceworks-becoming-force-it

Ok, thank you. I try to simplify. Initially I’d like develop a script
to change periodically all local administrator passwords of about 1000
clients of my LAN (NT domain). I’d like to develop with a Linux box,
but if it’s not possible ok, I can do it on Windows. Can I do it on
Linux box? Is this a problem? Have you some script (examples) similar
to this? Is a problem if I don’t know old passwords? Of course I’m LAN
administrator and then I know domain password admin. I must decide
about using Perl or Ruby. Perl has many modules for win32, Ruby I
don’t know.
Thank you very much

On Wed, Mar 24, 2010 at 11:35 AM, bigthepaco [email protected]
wrote:

Ok, thank you. I try to simplify. Initially I’d like develop a script
to change periodically all local administrator passwords of about 1000
clients of my LAN (NT domain). I’d like to develop with a Linux box,
but if it’s not possible ok, I can do it on Windows. Can I do it on
Linux box? Is this a problem? Have you some script (examples) similar
to this? Is a problem if I don’t know old passwords? Of course I’m LAN
administrator and then I know domain password admin. I must decide
about using Perl or Ruby. Perl has many modules for win32, Ruby I
don’t know.

I don’t know if it works or not:

rpcclient -S nt_server -W domain_name -U username
Password: <your_user’s_password>
smb> ntpass
New Password (only once - get it right! :-): <new_user’s_password>
smb> quit

If the basic command works, it should be wrappable (with Ruby) to loop
through a bunch of machines.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs