Tuesday, February 14, 2012

How to reimage STRM from any previous version to 2009.2 and above


This post is about re-imaging the STRM appliance to version 2009.2 and above from any previous versions. Now let me take you through it step by step...


Step 1: Copy the new 2009.2 ISO to the STRM Appliance using the following command:
scp iso_file_name root@[STRM IP address]:/store/iso

Step 2: Mount the ISO using the following command:
mount -o loop iso_file_name /media/cdrom/

Step 3: Extract the script by running the following command:
rpm2cpio /media/cdrom/post/*branding*.rpm | cpio -idv
./opt/oem/branding/recovery.py

Step 4: Move file into the tmp directory:
mv /tmp/recovery.py

Step 5: Unmount the ISO using the following command:
umount /media/cdrom/
Note: If the STRM appliance has been previously managed then IPTables will need to be stopped in order to allow SCP. Run the following command: service tables stop.

Step 6: Make sure the permissions are set to 755 if not execute the command

     chmod 755 recovery.py 


Step 7: Run the extracted script using the following command:
./recovery.py -r --default --reboot iso_file_name
The following is an example output that will be displayed within the command line:
[root@spiceup ~]# ./recovery.py -r --default --reboot /tmp/STRM2009.2.iso

INFO :copying /tmp/STRM2009.2.iso to /recovery/iso
INFO :Found iso /recovery/iso/
STRM2009.2.iso as Security Threat Response Manager 2009.2.0.148768
INFO :Wrote new grub.cfg
INFO :About to reboot
INFO :Press enter when ready
Note: If you land in a error message like "recovery.py: error: 2009_2.iso is not a supported target for this version" There may be a problem with the recovery script currently being used.

Download the recovery script recovery.py to your working directory & start from Step 6.


Step 8: Press Enter to reboot the appliance. The following message appears:
                 Welcome to factory reset option.

You have selected the option to re-install your system. This option returns all system settings to the factory defaults and removes all existing data and configuration. This process is not reversible.
If you do not wish to continue, type REBOOT at the prompt.
If you wish to continue, type FLATTEN at the prompt.
what would you like to do: roobot or flatten system?

Step 9: Enter flatten and press Enter to continue.
The installer repartitions and reformats the hard disk, installs the OS, and then re-installs STRM. Wait for the flatten process to complete. This process can take up to several minutes, depending on your system. When this process is complete, the normal fresh install process proceeds.

Step 10: When the installation completes, enter SETUP and login to the system with the username root & blank password



Leave your comment below

No comments:

Post a Comment