首先你必须有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等待状态。
本文出自 “Focus on Oracle” 博客,请务必保留此出处http://alexy.blog.51cto.com/6115453/1123939