system 命令提供了用来执行系统维护、备份、注销和关机的系统命令。
system access-core-files system broadcast message system cancel {restart|shutdown} system clear {config|garbage|logs} system export filename system import filename system install ssh-key key system logout session message system restart-ofos [–noconfirm] system restart-ilom [–noconfirm] system shutdown message [–delay=sec] [–force] [–noconfirm] [–now] system verify
其中:
filename 是要备份或恢复的文件的名称。
key 是您要安装的 SSH 密钥。
message 是文本消息。
session 是将要注销的用户的会话 ID。
此命令具有子命令。此表介绍了子命令并提供了其语法。
|
|
此示例展示了如何清除系统中的所有配置信息并重新启动。如果您在运行 OpenSM,请首先禁用 IB 子网管理器,然后再运行 system clear config 命令。在关闭 IB 子网管理器后,其状态将改为备用模式。
[OFOS] set ib sm down Disabling IB Subnet Manager will disrupt traffic on the network. Are you sure (y/n)? [OFOS] system clear config This is a destructive operation. Your configuration will be cleared and the system will be restarted. Please type 'confirm' to clear the configuration and restart the system. [OFOS] confirm
此示例说明如何导出已保存的配置并恢复系统。
[OFOS] system export myconfig.xml [OFOS] system import myconfig.xml DISK STATUS Partition Size Available Used %used Base OS 253.967M 77.037M 163.816M 64% |#############--------| Oracle Fabric OS 1.192G 330.699M 827.602M 67% |##############-------| System logs 9.169G 8.531G 175.754M 1% |---------------------| Database 8.249G 7.646G 188.738M 2% |---------------------| Temporary data 6.040G 5.701G 32.062M 0% |---------------------| User data 2.752G 2.522G 92.645M 3% |---------------------| Volatile data 184.901M 175.334M 0.021M 0% |---------------------| Config data 44.292M 41.952M 0.053M 0% |---------------------|