首先你必須有console,不管是本地console還是遠程的。
1)修改初始登陸密碼
-> set /SP/users/root password
Enter new password: ********
Enter new password again: ********
Enter new password: ********
Enter new password again: ********
2)開啓net mgr口
-> set /SP/network pendingipaddress=10.3.3.101
Set 'pendingipaddress' to '10.3.3.101'
-> set /SP/network state=enabled
Set 'state' to 'enabled'
-> set /SP/network/ssh state=enabled
set: Invalid target /SP/network/ssh
-> set /SP/services/ssh state=enabled
set: Target already started
-> set /SP/network pendingipdiscovery=static
Set 'pendingipdiscovery' to 'static'
-> set /SP/network pendingipnetmask=255.255.0.0
Set 'pendingipnetmask' to '255.255.0.0'
-> set /SP/network pendingipgateway=10.3.1.1
Set 'pendingipgateway' to '10.3.1.1'
-> show /SP/network
/SP/network
Targets:
Properties:
commitpending = (Cannot show property)
dhcp_server_ip = none
ipaddress = 0.0.0.0
ipdiscovery = dhcp
ipgateway = 0.0.0.0
ipnetmask = 0.0.0.0
macaddress = 00:14:4F:97:AC:47
pendingipaddress = 10.3.3.101
pendingipdiscovery = static
pendingipgateway = 10.3.1.1
pendingipnetmask = 255.255.0.0
state = enabled
Commands:
cd
set
show
-> set /SP/network commitpending=true
Set 'commitpending' to 'true'
-> reset /SP
Are you sure you want to reset /SP (y/n)? y
INIT: Sending processes the KILL signal
Set ’commitpending’ to ’true’
-> show /SP/network
Set 'pendingipaddress' to '10.3.3.101'
-> set /SP/network state=enabled
Set 'state' to 'enabled'
-> set /SP/network/ssh state=enabled
set: Invalid target /SP/network/ssh
-> set /SP/services/ssh state=enabled
set: Target already started
-> set /SP/network pendingipdiscovery=static
Set 'pendingipdiscovery' to 'static'
-> set /SP/network pendingipnetmask=255.255.0.0
Set 'pendingipnetmask' to '255.255.0.0'
-> set /SP/network pendingipgateway=10.3.1.1
Set 'pendingipgateway' to '10.3.1.1'
-> show /SP/network
/SP/network
Targets:
Properties:
commitpending = (Cannot show property)
dhcp_server_ip = none
ipaddress = 0.0.0.0
ipdiscovery = dhcp
ipgateway = 0.0.0.0
ipnetmask = 0.0.0.0
macaddress = 00:14:4F:97:AC:47
pendingipaddress = 10.3.3.101
pendingipdiscovery = static
pendingipgateway = 10.3.1.1
pendingipnetmask = 255.255.0.0
state = enabled
Commands:
cd
set
show
-> set /SP/network commitpending=true
Set 'commitpending' to 'true'
-> reset /SP
Are you sure you want to reset /SP (y/n)? y
INIT: Sending processes the KILL signal
Set ’commitpending’ to ’true’
-> show /SP/network
1. 如果你有root用戶的密碼,請你登錄系統,然後輸出"init 0";
2. 如果你有local的鍵盤和終端,請輸出stop+A,或者"~#"。該方法會中斷操作系統的運行,記得在進入"ok"後輸出sync,將內存中cache數據同步到硬盤;
3. 如果你的服務器的SP可以支持send break,可以直接輸出break,中斷操作系統並進入ok模式;
4. 如果你的服務器的SP爲ILOM,可以輸入:
-> set /HOST/bootmode script="setenv auto-boot? false"
-> reset /SYS
-> start /SP/console
然後耐心等待終端上出現ok提示;
5. 沒有SUN 的鍵盤輸入stop+a怎麼辦?在你重新給系統加電後,當前面板上的LED燈開始閃爍和聽到嘀嘀聲後,快速將前面板上的電源按鈕按下兩次,就跟你按下兩次鼠標一樣。這樣,系統就會在本次啓動時自動使用缺省的NVRAM參數值。缺省會自動進入ok的boot等待狀態。
2. 如果你有local的鍵盤和終端,請輸出stop+A,或者"~#"。該方法會中斷操作系統的運行,記得在進入"ok"後輸出sync,將內存中cache數據同步到硬盤;
3. 如果你的服務器的SP可以支持send break,可以直接輸出break,中斷操作系統並進入ok模式;
4. 如果你的服務器的SP爲ILOM,可以輸入:
-> set /HOST/bootmode script="setenv auto-boot? false"
-> reset /SYS
-> start /SP/console
然後耐心等待終端上出現ok提示;
5. 沒有SUN 的鍵盤輸入stop+a怎麼辦?在你重新給系統加電後,當前面板上的LED燈開始閃爍和聽到嘀嘀聲後,快速將前面板上的電源按鈕按下兩次,就跟你按下兩次鼠標一樣。這樣,系統就會在本次啓動時自動使用缺省的NVRAM參數值。缺省會自動進入ok的boot等待狀態。