SPARC如何进入OK模式
2013-01-22 14:19
260 查看
首先你必须有console,不管是本地console还是远程的。1)修改初始登陆密码-> set /SP/users/root password
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
3) 进入OK模式的方法举例
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等待状态。
本文出自 “Focus on Oracle” 博客,请务必保留此出处http://alexy.blog.51cto.com/6115453/1123939
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
3) 进入OK模式的方法举例
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等待状态。
本文出自 “Focus on Oracle” 博客,请务必保留此出处http://alexy.blog.51cto.com/6115453/1123939
相关文章推荐
- SPARC如何进入OK模式
- Win8如何进入安全模式, Metro应用无法打开 ,用户账号控制设置
- 我的系统是XP sp2,如何使电脑启动时进入安全模式呢?在安全模式下最适合做哪些事情呢?
- linux下如何进入单用户模式
- 如何进入安全模式的HP台式机
- 什么是DFU模式和什么是DUF模式,有什么区别?ipad如何进入DFU模式和DUF模式?
- winXP的系统如何避免他人在不需要密码的情况进入安全模式
- 如何配置C2000进入低功耗模式
- Grup如何进入单用户模式
- 如何开机进入文本模式
- 【linux】linux如何进入单人维护模式
- Win10如何进入安全模式
- Django如何进入开发模式
- linux如何进入单用户模式
- 如何让Redhat Linux启动时进入字符终端模式(不进入XWindow)
- 如何进入ubuntu10.10 grub命令模式
- winXP的系统如何避免他人在不需要密码的情况进入安全模式
- Win8如何进入干净启动模式对系统故障进行排查
- 如何在Win8/Win8.1中找回F8进入安全模式
- SMT32如何进入sleep模式