[upgrade_oc.py (oc_map)] Upgrade oc_map on single or all nodes in all major directories

           

   Article Number:     540102                                   Article Version: 2     Article Type:    Break Fix 
   

 


Product:

 

ECS Appliance,ECS Appliance Software with Encryption,ECS Appliance Software without Encryption,ECS Software

 

Issue:

 

 

   

         
  •         Properly update oc_map on single or all nodes in all major directories     
  •    
                                                             

 

 

Cause:

 

 

   

         
  •         New version     
  •    
                                                             

 

 

Resolution:

 

 

   

         
  1.         Download "oc_map" (Contains "upgrade_oc.py" under "~/oc_map/suite/").  Download locations under "Notes" section.     
  2.      
  3.         To get usage:     
  4.    
   
#python upgrade_oc.py -h    
   
         
  1.         Examples / Typical Usage:     
  2.    
   
~/oc_map/suite> python upgrade_oc.py* Usage (Example):    --> #python upgrade_oc.py --upgrade <oc_map_payload> --all_nodes    
   
         
  1.         Examples:     
  2.    
   
~> cd /home/admin~> PACKAGE=/home/admin/oc_map_v3.2.3.2.tgz~> tar -zxf ${PACKAGE}; cd oc_map/suite; python upgrade_oc.py --upgrade ${PACKAGE} --all_nodes; cd ../..- Upgrading oc_map on all nodes to "v3.2.3.2"...- [SUCCESS]: oc_map has been upgraded to "v3.2.3.2"    - DUR:                    0 (Days) 00:01:45.198 (hh:mm:ss.ms)    
   
         
  1.         Options:     
  2.    
   
~/oc_map/suite> python upgrade_oc.py* OC_Map upgrade Options:      --upgrade                  <payload>                                 upgrades oc_map in all main dirs                                 ** Required                                 ** Do Not run during an ongoing scan on any node **      --all_nodes                Upgrade all nodes* Advanced / Secure Options:      --quiet_off                Disable automatic quiet      --secure_options           Reference KB 517148      --advanced_options         Displays advanced options    
   
                                                                

 

 

Notes: