Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've recently been introduced to WMI, and find it really cool.

Maybe my brain's just not in gear, but what similar tools exist for *nix like WMI?

share|improve this question
    
You brain's not in gear by thinking WMI is cool.... jk ;) –  squillman Mar 3 '10 at 19:24
add comment

4 Answers

up vote 5 down vote accepted
  • SNMP for getting data (you can script data gathering and attach it to an OID)
  • for hosts in foo bar baz; do ssh root@$host some-script; done
  • puppet, bcfg, cfengine, etc... (many of these include components for getting data about systems, as well)
share|improve this answer
    
Agreed. SNMP or SSH-based scripts for getting data, puppet/cfengine for control. And puppet/cfengine go way beyond the problems handled by WMI. –  Jason Antman Mar 3 '10 at 22:58
add comment

SNMP is the most common protocol for this kind of work. Net-SNMP is the "reference" implementation:

They have an excellent wiki with tutorials, examples, documentation, and programming resources:

It's open source (GPL) and supports all the major platforms, including most every Linux distro, the *BSD UNIXes, Mac OSX, and Windows. The project site hosts MSI installers for Windows, but you probably want to use the disto-specific packages for other platforms.

But SNMP has some significant differences from WMI, and there are a lot of WMI features that SNMP doesn't support. There is a newer alternative called WBEM (web-based enterprise management). (Coincidentally, WMI is actually the MS implementation of WBEM for Windows.)

The OpenPegasus project is an open-source WBEM implementation:

It runs on Linux, at least, but I don't know about any other platforms. I know there are good OpenPegasus packages for Fedora and RHEL/CentOS, but I don't know about other distros.

Currently, SNMP is far more common than WBEM, at least on Linux and UNIX. Also, most managed networking equipment (routers, switches, load balancers, etc.) support SNMP exclusively. SNMP has been the Linux/UNIX/Cisco standard for more than a decade, and it isn't going to disappear anytime, soon.

share|improve this answer
add comment

openpegasus is an open source implementation DMTF CIM and WBEM standards (which WMI is a superset of). Most commercial Unixes have a WBEM implementation. SNMP is to WMI what a bicycle is to a car. SNMP is set up for monitoring information from a device, WMI is deisnged to allow you to manage a device as well as monitor it, E.G. SNMP has no concept of events and subscribers.

share|improve this answer
add comment

WMI is based on WBEM (web-based enterprise management), which a quick Google (for wbem unix) reveals exists in at least HP-UX, with some vague rumblings of it being more generally available.

squillman is right though, it's not that great, although it can come in handy for some quick 'n' dirty reporting.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.