Table of Contents
WMI - Linux client - wmic
Preface
WMI is really handy in the case that you are looking for way how to manage your MS Windows servers, but it is not possible to install additional application to your MS Windows servers. Mentioned WMI interface is standard way how to maintain MS Windows servers and it is delivered with OS.
According to this many Enterprise solutions are using WMI interface for integrating of MS Windows servers with central management.
In the case that you are running central management/monitoring/CMDB/ … server on Linux platform. It is possible to use WMI Client application for interconnection and integration with MS Windows servers. In this way it is possible to collect or push data across network from Linux server (in this case WMI client) to MS Windows server (in this case WMI server).
Install WMIC on CentOS
To download WMIC go to: http://pkgs.org/download/wmi
Choose your OS version and follow the instructions.
Or you can follow this steps:
Install Repository
CentOS 6 - 32-bit [root@Linux-WMI-Client ~]# rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/atomic-release-1.0-19.el6.art.noarch.rpm # Or latter release CentOS 6 - 64-bit [root@Linux-WMI-Client ~]# rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/atomic-release-1.0-19.el6.art.noarch.rpm # Or latter release CentOS 5 - 32-bit [root@Linux-WMI-Client ~]# rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/5/i386/RPMS/atomic-release-1.0-19.el5.art.noarch.rpm # Or latter release CentOS 5- 64-bit [root@Linux-WMI-Client ~]# rpm -Uvh http://www6.atomicorp.com/channels/atomic/centos/5/x86_64/RPMS/atomic-release-1.0-19.el5.art.noarch.rpm # Or latter release
Install WMIC from Repositary
[root@Linux-WMI-Client ~]# yum -y install wmi
Usage
WMIC
Syntax: " wmic -U domain/user%password //host "<query>" "
WINEXE
Syntax: " winexe -U domain/user%password //host "<command>" "
URL's
WMIC upstream: https://bitbucket.org/instarch/wmi-client/overview
WMIC rpm's: http://pkgs.org/download/wmi
WMIC source download: http://www.openvas.org/download/wmi/
WMIC source from opsview: http://www.opsview.com/sites/default/files/wmi-1.3.16.tar_.bz2