Marcel Langmaier

IoT evangelist & blockchain enthusiast :-P

wmic compilation fails on debian 9


Someone might want to monitor remote windows servers using the great cacti monitoring tool without installing an agent on them. Then its time to use the wmic (Windows Management Instrumentation Client). After hours of trying to compile it on a freshly installed debian stretch using various howto’s from the internet I was not able to do so.

Howto get binaries for wmic?

wget ",%20RHEL/wmic-4.0.0tp4-0.x86_64.rpm"
alien wmic-4.0.0tp4-0.x86_64.rpm
dpkg -i wmic_4.0.0tp4-1_amd64.deb

My linux system is

root@cacti:/tmp/x# lsb_release -da
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch