Resetting the Platform Administrator's Password:
1. If you have more than one System Controller (SC), to prevent SC failover while doing this procedure, detach.network and serial cables from the spare SC. (If you only have one SC, skip this step.)
MILY: 宋体; mso-font-kerning: 0pt">2. Reboot the SC. You won't be able to do this by logging into the platform shell; you will need to press the reset button on the SC.
3. The normal sequence of a System Controller rebooting is for SCPOST to run, followed by ScApp. SCPOST is done running when you see the message POST Complete. Wait for ScApp to start loading. When you see the copyright message Copyright 2001 Sun Microsystems, Inc. All rights reserved., press the CONTROL-A keys to spawn a vxWorks shell. You will see this message:
Task not found
spawning new shell.
->
This last line is the vxWorks prompt. Keep in mind that ScApp will continue to load until it gives you the menu to enter the platform/domain shells. To make it less confusing, wait for the ScApp menu to display, then press return. You will see the vxWorks prompt -> again.
4. Make a note of the current boot flags settings. You will use this information later to restore the boot flags to the original value.
-> getBootFlags()
value = 13 = 0xd
* Save the 0x number for # 8 below.
5. Change the boot flags to disable autoboot.
-> setBootFlags(0x10)
Note: This command will also return the last value stored before this change, so it could be misleading; in this example it will return:
value = 13 = 0xd (original value)
However, if you run the getBootFlags() command again, you will get the new value just set:
-> getBootFlags()
value = 16 = 0x10
1. Reboot the SC using either CONTROL-X or the reboot command. Once reset, it will stop at the -> prompt
6. Enter the following commands at the -> prompt.
-> kernelTimeSlice 5
-> javaConfig
-> javaClassPathSet "/sc/flash/lib/scapp.jar:/sc/flash/lib/jdmkrt.jar"
-> javaLoadLibraryPathSet "/sc/flash"
-> java "-Djava.compiler=NONE -Dline.separator=\r\n sun.serengeti.cli.Password"
7. Wait for the following messages to display: (Your prompt will come back right away, but it will take about ten seconds for these messages to show up.)
Clearing SC Platform password...
Done. Reboot System Controller.
8. After the preceding messages display, restore the bootflags to the original value using the setBootFlags() command. (Use the value returned from Step Four of this procedure.)
-> setBootFlags(0xd)
1. Reboot the SC using CONTROL-X or the reboot command. Once rebooted, the platform administrator's password will be cleared.
文章来源于领测软件测试网 https://www.ltesting.net/