Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell OpenManage Server Administrator 版本 7.4 命令行界面指南

将命令结果保存到可以覆盖的文件中

如果要覆盖存储于以前编写的文件中的数据,请使用 -outc 选项。例如,您在上午 11:00 点捕获到系统风扇探测器 0 的风扇探测器 RPM 读数,并将结果写入名为 fans.txt 的文件。您键入:
omreport chassis fans index=0 -outc fans.txt
omreport mainsystem fans index=0 -outc fans.txt
写入文件的部分结果为:
索引 : 0
状态 : 良好
探测器名称 : 系统板风扇 1 RPM
读数 : 2380RPM
最小警告阈值 : 600RPM
最大警告阈值 : 5700RPM
最小故障阈值 : 500RPM
最大故障阈值 : 6000RPM
四小时之后,您重复该命令。您已不需要上午 11:00 点时写入 fans.txt 的快照。您键入相同的命令:
omreport chassis fans index=0 -outc fans.txt
omreport mainsystem fans index=0 -outc fans.txt

下午 3:00 点的数据覆盖 fans.txt 文件中上午 11:00 点的数据。

Fans.txt 此时将显示如下内容:
索引 : 0
状态 : 良好
探测器名称 : 系统板风扇 1 RPM
读数 : 3001RPM
最小警告阈值 : 700RPM
最大警告阈值 : 5500RPM
最小故障阈值 : 500RPM
最大故障阈值 : 6000RPM

您无法参考以前的命令结果以将风扇探测器 0 先前的输出与现在的输出进行比较,因为在使用 -outc 选项时,您已覆盖了 fans.txt 文件。


Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\