These steps are tested and applicable for 22.1 based Directors.


Step-1: 

SCP the latest vnms@backup from the customer's Production Director.


Folder path: /var/versa/backups/


Step-2: 

Make sure the vnms@backup scp'ed to the internal Test setup is running the same director software version, as that of the customer's production setup.


SCP the vnms@backup file to the /var/versa/backups folder of the Versa-Director


To verify the file is in the correct folder, this command should list the vnms@backup director file.


Administrator@Master-Director> request system recovery list


Step-3: 

> How to restore the vnms@backup to the Internal Test Director: 


Run the below command: 

Administrator@Master-Director > request system recovery restore file <File-Name>


Sample: 

Administrator@Snehal22Active-Dir> request system recovery restore file vnms@2024-09-30T06:27:49.backup

status  Versa director restore initiated ..


> Where can I check the progress of the recovery operation?


admin@Master-Director:~$ tail -f /var/log/vnms/recovery.log


Step-4:

Once all the services are up except for SPRING-BOOT, please run the "vnms-startup.sh" script.


[Administrator@Master-Director: ~] $ cd /opt/versa/vnms/scripts/

[Administrator@Master-Director: scripts] $ ./vnms-startup.sh


Step-5: 

1) Administrator@Master-Director> request vnmsha actions disable-ha


2) Administrator@Master-Director> configure

    Administrator@Master-Director%  set devices device * state admin-state southbound-locked         /* This is to make sure to make sure even appliance ( like controller on cloud )  is reachable over public ip it is not affected. This is very safe step */


3) Administrator@Master-Director% commit and-quit


4) Make sure /var/versa/vnms/data/conf/vnms.properties there are no references to public-ip of Customer's Versa Director.


Step-6: 

From the shell of the Director, please run this command to remove CMS and alarm notification references: 

1) 


[Administrator@Master-Director: ~] $  sudo -u postgres psql -d vnms -h localhost -t  -c  "update organization set connectors=NULL"


[Administrator@Master-Director: ~] $ sudo -u postgres psql -d vnms -h localhost -t -c "update alarm_notification_action set value='youremail@versa-networks.com' where name='to'"


[Administrator@Master-Director: ~] $ sudo -u postgres psql -d vnms -h localhost -t -c "update alarm_notification_action set value='1408 123 4567' where name='phoneno'"


[Administrator@Master-Director: ~] $ sudo -u postgres psql -d vnms -h localhost -t -c "update webhook_profiles set webhook_url = 'https://versa-networks.com/webhook_endpoint'"


2) 

Administrator@Master-Director> configure

Administrator@Master-Director% delete nms cmsconnectors cmsconnector <connectorName>  /* Except local you can delete other connectors */

Administrator@Master-Director% commit and-quit