LAN inventory

B

bigthepaco

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.
 
B

brabuhr

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
 
B

bigthepaco

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/Cap...ad_the_Deployer.htmlhttp://god.rubyforge.org/


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
 
B

brabuhr

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 <username>
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top