Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-2180877.1
Update Date:2017-03-08
Keywords:

Solution Type  Technical Instruction Sure

Solution  2180877.1 :   Sun Datacenter InfiniBand Switch Reset to Factory Default Setting  


Related Items
  • Sun Datacenter InfiniBand Switch 36
  •  
Related Categories
  • PLA-Support>Eng Systems>Exadata/ODA/SSC>Oracle Exadata>DB: Exadata_EST
  •  




Applies to:

Sun Datacenter InfiniBand Switch 36 - Version All Versions to All Versions [Release All Releases]
Information in this document applies to any platform.

Goal

 
The provided self extracted script can be used for:

1- Reset the switch configuration to the factory default settings. In this case the assumption is that the switch is going to remain in the fabric and after a sucessfull run of the script, a reboot or power cycle is required.


The script goes through the following steps to achieve this purpose: Checking firmware consistency, Stopping services, cleaning of logs, cleaning home directories, removing host keys, authorized_keys, known hosts and restoring default configs from the bundle.


NOTE: Optionally the user can select to perform file checksums verification and automatically deletion of unexpected files but this is not needed for this purpose.:

2- Secure erase of the switch in which in addition to the steps mentioned in (1), verificatin of file checksums, checking for the missing files and deletion of unexpected files is done.

This can be used when the switch does not need to remain in the fabric anymore or needs to be fully sanitized. The file checksum verification/deletion of unexpected files will indicates files that have different checksums than the default factory version, and automatically delete unexpected files on the switch.

Solution

 
Applies to:

Sun Datacenter InfiniBand Switch 36 - Version 2.1.3-4, 2.1.5-1, 2.1.6-2, 2.1.8-1 and 2.2.2-7
Sun Network QDR InfiniBand Gateway Switch - Version 2.2.2-7

 

Steps


1- Copy the reset_to_factory_defaults.run into /tmp of the target switch using secure copy.

2- If the purpose of running of the script is to reset to the default configuration (Purpose 1), the recommended way to call the script is to run it without any parameter and answer "y" to first question and "n" to the second.

Note: By answering "y" to the second question, file checksum verification and deletion of unexpected files is getting executed.

3- If the purpose of running of the script is a secure erase (Purpose 2), the recommended way to call the script is to pass [-y] as an option as below:

/tmp/reset_to_factory_defaults.run [-y] # [-y] means answer yes to all questions.

================================================================================
Example 1- Here is an example of successful running of the script on a 36p switch with fimware 2.1.8-1- Purpose 1

[root@localhost tmp]# ./reset_to_factory_defaults.run
Creating directory /tmp/
Verifying archive integrity... 100% All good.
Uncompressing Reset to factory defaults for SUN DCS Infiniband Switch 36p firmware 2.1.x and 36p/GW firmware 2.2.2-x 100%

------------------------------------------------------
The script goes through the following steps:
- Checking firmware consistency
- Stopping required services
- Cleaning content of logs
- Cleaning home directories
- Removing host rsa/dsa, authorized keys and known hosts
- Restoring default configs
- Verifying file checksums, missing files and automatically deleting unexpected files

Note: Checksum verification/delete of unexpected files is supported only on:
SUN DCS Infiniband Switch 36P/Firmware 2.1.3-4, 2.1.5-1, 2.1.6-2, 2.1.8-1, 2.2.2-7

Supported platforms/firmwares are 36p 2.1.x & 36p-GW/firmware 2.2.2-x
------------------------------------------------------

Do you want to continue? (y/n) y
Do you want to verify file checksums/delete unexpected files? (y/n) n
.... Checking firmware consistency ....

.... Stopping Services ....

Stopping autodis [ OK ]
Stopping diskcheck [ OK ]
Stopping ILOM stack
Stopping LDA .... [ OK ]
Stopping Fabric Director.. [ OK ]
Stopping whereismaster daemon.. [ OK ]
Stopping Environment daemon. [ OK ]
Stopping partitiond-daemon. [ OK ]
Stopping IB Subnet Manager.. [ OK ]
ILOM event logger currently not available - message only logged in syslog.
Stopping DCS monitor.. [ OK ]
Stopping crond: [ OK ]
Shutting down kernel logger: [ OK ]
Shutting down system logger: [ OK ]

.... Erasing Logs .....

.... Cleaning Home Directories ....

.... Removing Host RSA and DSA keys, Authorized keys and Known hosts ....

.... Restoring default configs ....

.... Done ....

.....................................
.....................................
.... Please power off the switch/reboot if the switch needs to stay in fabric ....
.... Please note that the mgmt interface has been set to DHCP mode ....
.....................................
.....................................
================================================================================

 

Example 2- Here is an example of successful running of the script on a 36p switch with fimware 2.1.8-1 - Purpose 2

[root@Switch2-36p-7 tmp]# ./reset_to_factory_defaults.run [-y]
Creating directory /tmp/
Verifying archive integrity... 100% All good.
Uncompressing Reset to factory defaults for SUN DCS Infiniband Switch 36p firmware 2.1.x and 36p/GW firmware 2.2.2-x 100%

------------------------------------------------------
The script goes through the following steps:
- Checking firmware consistency
- Stopping required services
- Cleaning content of logs
- Cleaning home directories
- Removing host rsa/dsa, authorized keys and known hosts
- Restoring default configs
- Verifying file checksums, missing files and automatically deleting unexpected files

Note: Checksum verification/delete of unexpected files is supported only on:
SUN DCS Infiniband Switch 36P/Firmware 2.1.3-4, 2.1.5-1, 2.1.6-2, 2.1.8-1, 2.2.2-7

Supported platforms/firmwares are 36p 2.1.x & 36p-GW/firmware 2.2.2-x
------------------------------------------------------

.... Checking firmware consistency ....

.... Stopping Services ....

Stopping autodis [ OK ]
Stopping diskcheck [ OK ]
Stopping ILOM stack
Stopping LDA .... [ OK ]
Stopping Fabric Director.. [ OK ]
Stopping whereismaster daemon.. [ OK ]
Stopping Environment daemon. [ OK ]
partitiond-daemon is stopped
opensm is stopped
ILOM event logger currently not available - message only logged in syslog.
Stopping DCS monitor.. [ OK ]
Stopping crond: [ OK ]
Shutting down kernel logger: [ OK ]
Shutting down system logger: [ OK ]

.... Erasing Logs .....

.... Cleaning Home Directories ....

.... Removing Host RSA and DSA keys, Authorized keys and Known hosts ....

.... Restoring default configs ....

.... Verifying file checksums/Automatic deletion of unexpected files ....

.... Done ....

.....................................
.....................................
.... Please power off the switch/reboot if the switch needs to stay in fabric ....
.... Please note that the mgmt interface has been set to DHCP mode ....
.....................................
.....................................
================================================================================

 

Example 3- Here is an example of failure when the script is runned on a 36p switch with fimware 2.1.8-1 for purpose 2

[root@localhost tmp]# ./reset_to_factory_defaults.run
Creating directory /tmp/
Verifying archive integrity... 100% All good.
Uncompressing Reset to factory defaults for SUN DCS Infiniband Switch 36p firmware 2.1.x and 36p/GW firmware 2.2.2-x 100%

------------------------------------------------------
The script goes through the following steps:
- Checking firmware consistency
- Stopping required services
- Cleaning content of logs
- Cleaning home directories
- Removing host rsa/dsa, authorized keys and known hosts
- Restoring default configs
- Verifying file checksums, missing files and automatically deleting unexpected files

Note: Checksum verification/delete of unexpected files is supported only on:
SUN DCS Infiniband Switch 36P/Firmware 2.1.3-4, 2.1.5-1, 2.1.6-2, 2.1.8-1, 2.2.2-7

Supported platforms/firmwares are 36p 2.1.x & 36p-GW/firmware 2.2.2-x
------------------------------------------------------

Do you want to continue? (y/n) y
Do you want to verify file checksums/delete unexpected files? (y/n) y
.... Checking firmware consistency ....

.... Stopping Services ....

Stopping autodis [ OK ]
Stopping diskcheck [ OK ]
Stopping ILOM stack
Stopping LDA .... [ OK ]
Stopping Fabric Director.. [ OK ]
Stopping whereismaster daemon.. [ OK ]
Stopping Environment daemon. [ OK ]
partitiond-daemon is stopped
opensm is stopped
ILOM event logger currently not available - message only logged in syslog.
Stopping DCS monitor.. [ OK ]
Stopping crond: [ OK ]
Shutting down kernel logger: [ OK ]
Shutting down system logger: [ OK ]

.... Erasing Logs .....

.... Cleaning Home Directories ....

.... Removing Host RSA and DSA keys, Authorized keys and Known hosts ....

.... Restoring default configs ....

.... Verifying file checksums/Automatic deletion of unexpected files ....

Warning: There are some unexpected new files on the switch!!!!
The unexpected files will be removed from the switch after user confirmation.
If the switch needs to remain in fabric you can reboot the switch afterward.
After reboot, the switch should bootup with default configs and in DHCP mode.

Do you want to see the list of unexpected files? (y/n)y

--------------------------------------------------------------------------------
d41d8cd98f00b204e9800998ecf8427e /mnt/test1.txt <
d41d8cd98f00b204e9800998ecf8427e /sbin/xtra <
--------------------------------------------------------------------------------

List of unexpected new files are here: /tmp/files_exists_only_in_current.txt

Do you want to delete all unexpected files? (y/n)y

Error: There are some file checksum differences comparing to the default factory state!
Please note that regardless of differences, all factory default configs are in place.
If the switch needs to remain in the fabric, it can be rebooted.
After reboot the switch should bootup with default configs and in DHCP mode.
If the switch needs to be fully restored to the defaults, please contact Oracle Support.

Do you want to check the differences? (y/n)y

--------------------------------------------------------------------------------
928a50db757d2cc8f16934b670b8e1f3 /etc/backup-restore.conf | 8d6a1abc3a010d312e28872cd68b3d8a /etc/backup-restore.conf
--------------------------------------------------------------------------------

List of checksum differences are here: /tmp/current_vs_expected_md5sum.txt

--------------------------------------------------------------------------------
Error: There are some differences between current switch state and the default factory state.

Please contact Oracle support to continue to complete reset to factory defaults.

Please note that regardless of differences, all factory default configs are in place.
If the switch needs to remain in the fabric, it can be rebooted.
After reboot the switch will bootup with default configs and in DHCP mode.
--------------------------------------------------------------------------------

 

 


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback