`
flyingsword945
  • 浏览: 24899 次
  • 性别: Icon_minigender_2
  • 来自: ...
文章分类
社区版块
存档分类
最新评论

wbemcli命令

阅读更多

Synopsis

wbemcli gc|gcd|dc|ec|ecn|gi|ci|mi|di|ei|ein|ai|ain|ri|rin|gp|sp|cm|cmx [-nl ] [-h ] [-t ] [-dx ] [-dr ] [-noverify ] [-cacert  file] [-clientcert  file] [-clientkey  file] [-ac  assocClass] [-arc  resultClass] [-ar  role] [-arr  resultRole] objectPath [prop=value[,...]] [prop[,...]]

 

Alternate formats:

wbemgct [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath [prop[,...]]

wbemgcdt [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath

wbemdct [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath

wbemect [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath [prop[,...]]

wbemecnt [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath

wbemgit [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath [prop[,...]]

wbemcit [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath [prop=value[,...]]

wbemmit [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath [prop=value[,...]]

wbemdit [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath

wbemeit [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath [prop[,...]]

wbemeint [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath

wbemait [-nl ] [-h ] [-t ] [-dx ] [-dr ] [-ac  assocClass] [-arc  resultClass] [-ar  role] [-arr  resultRole] objectPath [prop[,...]]

wbemaint [-nl ] [-h ] [-t ] [-dx ] [-dr ] [-ac  assocClass] [-arc  resultClass] [-ar  role] [-arr  resultRole] objectPath

wbemrit [-nl ] [-h ] [-t ] [-dx ] [-dr ] [-arc  resultClass] [-ar  role] objectPath [prop[,...]]

wbemrint [-nl ] [-h ] [-t ] [-dx ] [-dr ] [-arc  resultClass] [-ar  role] objectPath

wbemgpt [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath prop

wbemspt [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath prop=value

wbemcmt [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath method[.param=value[,...]]

wbemcmxt [-nl ] [-h ] [-t ] [-dx ] [-dr ] objectPath method[.param=value[,...]]

Operations:

gc      get class
gcd    get class definition
dc      delete class
ec      enumerate classes
ecn    enumerate class names
gi       get instance
ci       create instance
mi      modify instance
di       delete instance
ei       enumerate instances
ein     enumerate instance names
ai       enumerate association instances
ain     enumerate association instance names
ri       enumerate reference instances
rin     enumerate reference instance names
gp      get property
sp      set property
cm     call method
cmx   call method (return XML)

Options

-h
Print a help message
-nl
Start a new line for every property returned
-t
Append array ([]), reference (&) and key property (#) indicators to property names
-v
Show version information
-dx
Show XML messages payload as received from CIMOM
-dr
Delineate references with { } pairs
-noverify
Do not verify the server certificate for https URLs (useful for testing)
-cacert
CA certificate file (required for https URLS unless -noverify is specified)
-clientcert
Client certificate file (if the CIM server requires client certificates)
-clientkey
Client private key file (required if -clientcert is specified)
-ac
tassociation class name (ai, ain only)
-arc
tresult class name (ai, ain, rin, ri only)
-ar
trole name (ai, ain, rin, ri only)
-arr
tresult role name (ai, ain only)
分享到:
评论

相关推荐

    linux环境如何通过wmi访问windows

    基本的命令格式如下: ```bash wbemcli -n <hostname> -u <username> -p <password> instance enumerate ``` 例如,获取所有进程信息: ```bash wbemcli -n windows-server.example....

    获得 Linux window 的硬盘ID 和mac , ip 等信息(已测试)

    在Linux环境下,硬盘ID通常指的是硬盘的序列号,可以通过`udev`数据库或者`hdparm`命令来获取。Java中,我们可以使用`Runtime.exec()`或`ProcessBuilder`来执行系统命令并捕获输出。以下是一个简单的示例,展示如何...

    提取硬盘序列号

    WmiUtils.UseWmi(Wbemcli.WBEM_FLAG_FORWARD_ONLY | Wbemcli.WBEM_FLAG_RETURN_IMMEDIATELY, "root\\CIMV2", new WmiQuery("SELECT * FROM Win32_DiskDrive", new IWbemServicesConsumer() { @Override public ...

    java读取硬盘序列号例子

    for (WmiUtils.WmiResult result : util.queryWMI(wmiQuery, Wbemcli.class)) { System.out.println("硬盘序列号: " + result.getString("SerialNumber")); } } catch (Exception e) { e.printStackTrace(); }...

    ibm wmb 参考资料

    4. **WMB操作命令**:掌握WMB的命令行工具,例如`runmqsc`用于管理队列管理器,`wbemcli`用于管理WMB资源。了解如何启动、停止、监控和管理消息流,以及如何执行故障排查。 5. **SOAP节点**:SOAP(简单对象访问...

    java获取硬盘序列号的两种方法

    对于Linux或macOS,你需要使用不同的方法,如通过`/dev/disk`路径或`ioreg`命令(macOS)获取硬盘信息。 2. **非公开API**:Java中使用`sun.misc`包的类是未公开的,这意味着它们可能会在未来的Java版本中被移除或...

Global site tag (gtag.js) - Google Analytics