Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there something like WMI for Linux?

Tags:

linux

wmi

I like the whole WMI concept, and I could really make use of it under Linux (in some scripts). Is there something like that for Linux systems?

like image 770
Geo Avatar asked May 28 '09 15:05

Geo


People also ask

What is the Linux equivalent of WMI?

On our Linux machine, we need the WMI command line tool (WMIC). WMIC is a command-line tool designed to ease WMI information retrieval about a system by using some simple keywords (aliases).

Is WMI still supported?

WMI is fully supported by Microsoft. However, the latest version of administrative scripting and control is available through the Windows Management Infrastructure (MI).

What does WMI stand for?

Windows Management Instrumentation (WMI) is a set of specifications from Microsoft for consolidating the management of devices and applications in a network from Windows computing systems. WMI provides users with information about the status of local or remote computer systems.

What service does WMIC use?

WMI runs as a service with the display name "Windows Management Instrumentation" and the service name "winmgmt". WMI runs automatically at system startup under the LocalSystem account.


2 Answers

Windows Management Instrumentation (WMI) is Microsoft's implementation of the WBEM (Web Based Enterprise Management) standard from the Distributed Management Task Force. These standards are available and used in several flavors of *nix systems. Just as an example, here is a SourceForge project that enables WBEM on Linux systems. There is a standard called CIM (Common Information Model) which is described by the DTMF as follows:

CIM provides a common definition of management information for systems, networks, applications and services, and allows for vendor extensions. CIM's common definitions enable vendors to exchange semantically rich management information between systems throughout the network.

like image 94
Andy Schneider Avatar answered Oct 29 '22 15:10

Andy Schneider


Not really. Are you using WMI to get system parameters, or to query processes, or to change configuration, or monitor for system events, or what?

The kernel exposes a lot of information and tunable knobs via the /proc and /sys filesystems. No query language, just a organized hierarchy of directories and files. Some of these files are read-only, read-write, or write-only; some of them are pollable.

Some services may have custom clients to query and update configuration on the fly -- chrony's chronyc comes to mind, but even the very most basic init has initctl. Newer services like HAL can be introspected and manipulated over D-Bus.

like image 44
ephemient Avatar answered Oct 29 '22 15:10

ephemient