分類彙整: Computer

FreeBSD 中如何取得 ATA 裝置資訊

(For English version, please read previous post.)

最近替工作單位的 SVN Server 新加了兩顆 SATA 1TB 的硬碟,
但後來為了財產登記,必須取得硬體型號 (Model Number) 及序號 (Serial Number)。

身為一個 IT 人,秉持著說多懶就有多懶的原則,
當然不肯多花時間拆機殼、拔硬碟、看序號,
於是便試圖找尋以軟體指令查詢硬碟資訊的方法…
閱讀全文 FreeBSD 中如何取得 ATA 裝置資訊

How to Inquire ATA Device Information in FreeBSD

(中文版請見後一篇)

Recently, I added two SATA 1TB hard drives into the SVN server of my team. For inventory control, the model number and the serial number of new hardware must be reported. As an IT guy, I won’t bother to remove the chassis, unplug the HD and then check the S/N. So I was trying to look for way to obtain the device information as easy as possible…
閱讀全文 How to Inquire ATA Device Information in FreeBSD

WMI Programming with VBScript

WMI

Windows Management Instrumentation (WMI) 是 Microsoft 實做的 WBEMCIM
它提供有彈性的介面讓電腦資訊便於管理及查詢

但儘管 Microsoft 宣稱 WMI 提供 Visual C++ 及 .Net Framework 相關語言的介面
很明顯它的設計僅為 .net-friendly
對於 Visual C++ 便依舊是苦工

在五月初的先期研究
由於產出必須為綠色軟體的需求,我用 MFC 硬刻了一個雛型
但這樣的開發效率並不讓人滿意

為了有效提昇開發曲線,於是借助 Scripting Language 特性
將整體架構由 Pure-MFC 改為 MFC + VBScript

在此提出簡單範例,展示採用 Visual C++ 與 VBScript 對 WMI 查詢系統資訊的差異…
閱讀全文 WMI Programming with VBScript

FreeBSD 文字模式下 console 截圖

之前與朋友們嘗試共同撰寫 FreeBSD 相關的著作
其中有許多內容少不了操作畫面的截圖 (screenshot)
在不安裝任何額外軟體的前提下,vidcontrol 便是最佳選擇。

此處單就方法論介紹操作方式,而不探討細節…
閱讀全文 FreeBSD 文字模式下 console 截圖