1、初始化登录rootchangeme设置 root 账户set /SP/users/root password =root添加账户create /SP/users/admin role=cuar (administrator|operator)set /HOST/bootmode script=“setenv auto-boot? false“start /SYSstart /HOST/consolestop -f /SYScreate /SP/users/admin role=cuar (administrator|operator) cli_mode=alom(设置为 alom 模式(可选项
2、))修改账户密码set /SP/users/admin password删除账户delete /SP/users/admin查看账户列表show -display targets /SP/usersshow -display /SP/users/adminILOM 下做硬 raidok printenvok setenv fcode-debug? trueok show-disksc) /pci400/pci2/pci0/pci4/scsi0/diskselect /pci400/pci2/pci0/pci4/scsi0ok show-childrenTarget 9 Unit 0 Disk
3、SEAGATE ST930005SSUN300G 0606 585937500 Blocks, 300 GBSASDeviceName 5000c5003bef0303 SASAddress 5000c5003bef0301 PhyNum 0 Target a Unit 0 Disk SEAGATE ST930005SSUN300G 0606 585937500 Blocks, 300 GBSASDeviceName 5000c5003bef1ad7 SASAddress 5000c5003bef1ad5 PhyNum 1 ok 9 a create-raid1-volumeok unsele
4、ct-devok setenv fcode-debug? falseok reset-all故障检测及清除- show /SP/faultmgmt -start /SP/faultmgmt/shell-fmadm faulty-fmadm repair uuid-fmadm faulty-exit-show components-show faulty 显示故障路径-set 故障路径 component_stat=enabled 或-set 故障路径 clear_fault_action=true# fmdump -v# fmdump -v -u uuid# cfgadm -al *查看硬件路
5、径使用 POST 诊断发现故障- set /SYS keyswitch_state=diag-reset /SYS-start /HOST/console-set /SYS/keyswitch_stat=normal系统下修复# fmadm faulty# fmadm repair 3aa7c854-9667-e176-efe5-e487e520单点登录设置 让系统验证一次就行了set /SP/services/sso stat=disabled|enabled定位系统- set /SYS/LOCATE value=Fast_Blink *打开定位器 LED 指示灯- set /SYS/LOC
6、ATE value=off *关闭定位器 LED 指示灯- show /SYS/LOCATE启用 ASR- set /HOST/diag mode=normal- set /HOST/diag level=max- set /HOST/diag trigger=power-on-resetok setenv auto-boot trueok setenv auto-boot-on-error? trueok reset-all禁用 ASR ok setenv auto-boot-on-error? falseok reset-all- show /SYS/component component
7、_state *查看受 ASR 影响组件的信息- set /SYS/component clear_fault_action=true *清除故障网络控制卡设置cd /SP/networkshow /SP/networkset pendingipaddress=192.168.106.14set pendingipnetmask=255.255.255.0set pendingipgateway=192.168.106.1set pindingipdiscovery=staticset state=enabledset commitpending=true 提交设置set /SP/networ
8、k pendingipdiscovery=static pendingipaddress=nnn.nn.nn.nn pendingipgateway=nnn.nn.nn.nn pendingipnetmask=nnn.nn.nn.nn commitpending=true查看串口信息:show /SP/serial/external更改波特率set /SP/serial/host pendingspeed=57600 commitpending=true启用 http 访问set /SP/services/http设置主机名set /SP hostname=T5120set /SP syste
9、m_identifier=5120启用/禁用/重启 sshset /SP/services/ssh stat=enabled|disabledset /SP/services/ssh restart_sshd_action=true导航到名称空间cd /SP/services/http设定值set port=80set prop1=xset prop2=y组合命令set /SP/services/http port=80set /SP/services/http set prop1=x prop2=yCLI 命令cdcreatedeleteexithelpload 将文件从指定源传输到指定目标
10、resetsetshowstartstopversion命令选项-default-destination 制定数据的目的地-display -d-help -h-level -l 指定命令级别-output -o 指定输出内容及格式且仅支持 -o table 表格形式-script 跳过警告提示-source 指示源映像位置CLI 查看组件信息show /SYS/MB typetype = Motherboard移除组件和恢复组件使用# cfgadm -al *显示所以组件# cfgadm -x remove_device c1:dsk/c1t3d0 *移除组件# cfgadm -c unco
11、nfigure c1:dsk/c1t3d0 *卸载硬盘# cfgadm -al# cfgadm -c configure c1:dsk/c1t3d0 *配置新硬盘- set Device-Identifier component_state=disabled *手动取消设备的配置- set Device-Identifier component_state=enabledset /CH/RFM0 prepare_to_remove_action=trueshow /CH/RFM0 prepare_to_remove_statusset /CH/RFM0 return_to_service_action=true启用和禁用组件set /SYS/MB/CMP0/P0/C0 component_stat=enabled|disabled使用 CLI 查看故障show /SP/faultmgmtshow /CH/faultmgmt查看日志cd /SP/logs/eventshow list