Пятница, 29.03.2024, 11:04
Приветствую Вас Гость | RSS
Главная | Каталог статей | Регистрация | Вход
Меню сайта
Категории раздела
Разное [2]
Linux [17]
Windows [4]
Поиск
Облако тегов
Rdesktop RDP Active Directory Free Freeware mail server mail client Manitou-mail linux cluster GlusterFS ubuntu Сеть file system crypt LUKS шифрование Samba CIFS anonymous Windows e-mail hMailServer Mercury/32 mail Postfix PostfixAdmin CIM Pegasus WBEM WMI acl Owner subinacl PostgreSQL DBMail VirtualBox DRBD OCFS2 zimbra Zarafa email GroupOffice WebMail
Block title
[11.07.2010][Linux]
Краткий обзор Manitou-mail (0)
[18.12.2011][Linux]
CAD, CAM и CNC под Linux (0)
[16.08.2010][Linux]
Анонимная шара Samba (0)
[09.11.2011][Linux]
Кластер Active/Active на DRBD и OCFS2 (0)
[18.04.2010][Разное]
MAIL DSN (Delivery Status Notification) (0)
Статистика

Онлайн всего: 1
Гостей: 1
Пользователей: 0
Форма входа
Block title
Продажа компьютеров и ноутбуков, прайс лист на комплектующие. периферия, мониторы, расходные материалы
Записки админа
Главная » Статьи » Linux

WMI calls from Linux
WMI calls from Linux

In fact the language that wmic client uses is like SQL because it's called WQL and a referance for it is here:

http://msdn.microsoft.com/en-us/libr...06(VS.85).aspx

Вариант 1

sudo aptitude install wmi-client (in Hardy only)

Example of usage is;

wmic -U DOMAIN/administrator%password //10.99.92.9 "Select * from Win32_Service"

Lists all services, the first line it spits back is the fields whihc you can use this SQL like langauge on to filter so to see only the names of the services installed we'd do:

wmic -U DOMAIN/administrator%password //10.99.92.9 "Select Name from Win32_Service"

Or Name and State:

wmic -U DOMAIN/administrator%password //10.99.92.9 "Select Name,State from Win32_Service"

Or for jsut one service in this case the UPS service:

wmic -U DOMAIN/administrator%password //10.99.92.9 "Select Name,State from Win32_Service where name='UPS'"

Вариант 2

Pegasus (http://www.openpegasus.org/)

Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be portable and highly modular. It is coded in C++ so that it effectively translates the object concepts of the CIM objects into a programming model but still retains the speed and efficiency of a compiled language. Pegasus is designed to be inherently portable and builds and runs today on most versionsof UNIX(R), Linux, OpenVMS, and Microsoft Windows.


Категория: Linux | Добавил: Admin (22.10.2010)
Просмотров: 3295 | Теги: WMI, linux, Pegasus, WBEM, CIM | Рейтинг: 0.0/0
Всего комментариев: 0
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]
Сделать бесплатный сайт с uCozCopyright MyCorp © 2024