XCP 1080 or higher is required for this procedure since the commands dumpconfig/restoreconfig were introduced in that release.
The steps below are for a network based dumpconfig. A USB stick based dumpconfig is MUCH simpler since the network needs to be set up again manually to restore the config.
-
Login to the xscf and initiate an escalation mode session.
Refer to <Document 1002928.1> for the necessary steps.
In step #3 'enableescalation' and 'escalation' should be substituted for 'enableservice' and 'service'.
- Disable root logins:
escalation# usermod -s/bin/false root
- dumpconfig to the USB Stick (preferred):
escalation# dumpconfig -v file:///media/usb_msd/m5000usb.cfg
Making sure mount point is clear
Trying to mount USB device /dev/sda1 as /media/usb_msd
Mounted USB device
file ./media/usb_msd/proxytest.cfg. already exists
Do you want to overwrite this file? [y|n]: y
removing file .file:///media/usb_msd/proxytest.cfg. ... done
reading database ... ..............*done
creating temporary file ... done
starting file transfer ...transfer from ./tmp/dumpconfig.HE1RZa. to .file:///media/usb_msd/san-ff1-54.cfg.
done
removing temporary file ... done
operation completed
Unmounted USB device
#
# or Dumpconfig across the network
#
escalation# dumpconfig -u username ftp://129.157.206.83/m4000.cfg
Password:
operation completed
- Check the current brandid setting: ( 1 = SUN, 2 = FUJITSU, 3 = FSC )
escalation# /scf/bin/brandid
SunMC : off
REMCS : on
RCI : on
DIMM-PCE : off
DIDR : off
SPDR : on
SvcTag : off
brandid : 2 <===
display : 2
escalation#
- Set the correct brandid:
escalation# /scf/bin/brandid -s brandid=1
brandid : 2 -> 1
- Verify the correct brandid is set ( see step 2 ).
Settings will take effect the next time the platform is powered
- Clear the fru area:
escalation# /hcp0/scfprog/bin/clearfru # command may be located /scf/bin/clearfru
- Restore factory defaults:
escalation# /scf/init/scf_initetc/setdefaults factory
setdefaults will execute
XSCF : all data clear
OPNL : all data clear (exclude SYSTEM ID data)
*** XSCF reboot then execute clear operation automatically. ***
Are you OK? [y|n] : y
..... From here is shown the reboot log ......
***** WARNING *****
XSCF initialization terminate for XSCF/OPNL data clear.
execute "setdefaults factory" (AUTO)
setdefaults : FACTORY mode clear : start
setdefaults : FACTORY mode clear : DBS start
setdefaults : FACTORY mode clear : wait 20s for DBS initialization
initialize OPNL SEEPROM 1/6 -- complete
initialize OPNL SEEPROM 2/6 -- complete
initialize OPNL SEEPROM 3/6 -- complete
initialize OPNL SEEPROM 4/6 -- complete
initialize OPNL SEEPROM 5/6 -- complete
initialize OPNL SEEPROM 6/6 -- complete
setdefaults : FACTORY mode clear : OPNL reset complete
..... output deleted for readability .....
setdefaults : FACTORY mode clear : log data clear complete
setdefaults : FACTORY mode clear : NVRAM(PAGE#0) clear complete
setdefaults : FACTORY mode clear : NVRAM(PAGE#1) clear complete
..... output deleted for readability .....
XSCF BOOT STOP (recover by NFB-OFF/ON)
- Power cycle the system.
- Set up a user to do the restoreconfig:
XSCF> adduser username
XSCF> setprivileges username platadm useradm auditadm fieldeng mode
XSCF> password username
New XSCF password:
Retype new XSCF password:
- The next section is ONLY necessary if the dumpconfig was done across the network.
Login as username
XSCF> setnetwork xscf#0-lan#0 -m 255.255.255.0 10.16.80.224
XSCF> setroute -c add -n 0.0.0.0 -g 10.16.80.1 xscf#0-lan#0
XSCF> sethostname -d cte.sun.com
XSCF> sethostname xscf#0 v4u-m4000a-xscf-epar03
XSCF> applynetwork
The following network settings will be applied:
xscf#0 hostname :v4u-m4000a-xscf-epar03
DNS domain name :cte.sun.com
interface :xscf#0-lan#0
status :up
IP address :10.16.80.224
netmask :255.255.255.0
route :-n 0.0.0.0 -m 0.0.0.0 -g 10.16.80.1
interface :xscf#0-lan#1
status :down
IP address :
netmask :
route :
Continue? [y|n] :y
XSCF> restoreconfig -u username ftp://129.157.206.83/m4000.cfg
- Or run restoreconfig from the USB stick:
XSCF> restoreconfig -v file:///media/usb_msd/m5000usb.cfg
- After restoreconfig from network or USB stick the system will need to be power cycled.
- Log back in and disablemodes:
XSCF> showmodes
Current mode: normal
Enabled for: escalation
Expires: Sun Jan 25 14:44:24 2009
XSCF> disablemodes
XSCF> showmodes
Current mode: normal