取伺服器序號 serialnumber

linux 取硬體廠牌,取model,取序號
* dmidecode -s system-manufacturer
* dmidecode -s system-product-name
* dmidecode -s system-serial-number

zabbix agent cannot execute dmidecode, make it a script and output a file for zabbix agent
> echo '{ dmidecode -s system-manufacturer; dmidecode -s system-product-name;dmidecode -s system-serial-number; }   > /tmp/hwsn'   > hwsn.sh
chmod a+x hwsn.sh
./hwsn.sh



windows 取廠牌,取model,取序號
* wmic csproduct get vendor
* wmic computersystem get model
* wmic bios get serialnumber

留言

熱門文章