是否有类似Linux的WMI? [英] Is there something like WMI for Linux?

查看:324
本文介绍了是否有类似Linux的WMI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢整个WMI概念,并且我真的可以在Linux(在某些脚本中)中使用它. Linux系统有类似的东西吗?

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?

推荐答案

不是.您正在使用WMI获取系统参数,查询过程,更改配置或监视系统事件,还是什么?

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?

内核通过/proc/sys文件系统公开了许多信息和可调旋钮.没有查询语言,只有目录和文件的组织层次结构.其中一些文件是只读,读写或只写的.其中一些是poll able.

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.

某些服务可能具有自定义客户端,可以即时查询和更新配置- chrony 浮现在脑海中,但即使是最基本的init也具有initctl.可以在

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.

这篇关于是否有类似Linux的WMI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆