Got it

How do i restore VCN540 to factory defaults using SSH?

Created: Dec 20, 2019 11:09:19Latest reply: Dec 20, 2019 12:15:02 729 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi,


I need to restore VCN540 to factory defaults using SSH. Could someone help me?


Best Regards,

Featured Answers
Hike
Created Dec 20, 2019 12:15:02

Dear User

The following post may help you. Uninstall and reinstall the software

https://forum.huawei.com/enterprise/en/ivs-service-software-fault-upon-vcn5x0-delivery/thread/486417-887


Please note that the uninstallation and reinstallation are high-risk operations. You are advised to ask the local dealer and create an eCare ticket so that we can use the GTAC remote operation service.

View more
  • x
  • convention:

Recommended answer

Hike
Created Dec 20, 2019 11:41:17

Hi, hasanalpboran

Did you mean restore password?

If your problem is that you want to restore to full factory settings, it is recommended that you uninstall the software and reinstall it.


For more information, you can refer to this LINK


Restore Password


2       VCN5X0:

2.1. Log in to the device as user admin using SSH (the default password is admin/Change_Me).

2.2. Switch to the root account. su - root (default password: root/Change_Me)

2.3. Run the following command:

The CU client is restored to Change_Me.

su postgres -c "/home/postgres/bin/psql -p 6000 -d smu -c \"update tbl_smu_user_info set login_password='e687fed485a4b510722695f7d38d6b524532af5196bd70363019a52bfc0f8af3',first_login='0', salt='' where login_name='Admin';\""

If the following information is displayed, the password is reset successfully:

UPDATE=1

 

OMU portal. After the restoration, the password is super123.

STIME=`date +%s`;

su -c "psql -d omu -c \"UPDATE TBL_OMU_USER_INFO SET LOCK_STATUS=0, PASSWD='33867eea994c22edb1e157f3f0f7fbd4ce30324c315320b490091f89b074cb10', LOCK_TIME=0, FIRST_FLG=0,PASSWD_WRONG_TIME=0, PASSWD_WRONG_COUNT=0, SALT='HWGtNEAzVjXaXjkg', LAST_MODIFY_TIME=${STIME} where USER_NAME='Admin';\"" - postgres;

If the following information is displayed, the password is reset successfully:

UPDATE=1

 

3       VCN500:

3.1. Log in to the VCN500 server as user admin in SSH mode (the default password is admin/Change_Me).

3.2. Run the su - root command to switch to user root. The default password is root/Change_Me.

3.3. Reset the password of the admin user of the C/S client to the initial password. Change_Me.

Run the following command:

su postgres -c "/home/postgres/bin/psql -p 6000 -d smu -c \"update tbl_smu_user_info set login_password='e687fed485a4b510722695f7d38d6b524532af5196bd70363019a52bfc0f8af3',first_login='0', salt='' where login_name='Admin';\""

If the following information is displayed, the password is reset successfully:

UPDATE=1

 

3.4 Reset the password of the OMU Portal administrator to Change_Me.

Run the following command:

su postgres -c "/home/postgres/bin/psql -p 6000 -d omu -c \"update tbl_omu_user_info set passwd='f0923a2988ada0d95570a304ef15671ce8df23683c83e1c5c98db502fc9fccf3', salt='', first_flg=1 where user_name='Admin';\""

If the following information is displayed, the password is reset successfully:

UPDATE=1


View more
  • x
  • convention:

hasanalpboran
hasanalpboran Created Dec 20, 2019 12:04:58 (0) (0)
hi Hike,
First of al thanks for your answer. But my problem is not about password. I need to reset everything to factory default.
Especially, /home, /share and /DB_DATA directories in NVR. How can i uninstall an reinstall the software?  
All Answers

Hi, hasanalpboran

Did you mean restore password?

If your problem is that you want to restore to full factory settings, it is recommended that you uninstall the software and reinstall it.


For more information, you can refer to this LINK


Restore Password


2       VCN5X0:

2.1. Log in to the device as user admin using SSH (the default password is admin/Change_Me).

2.2. Switch to the root account. su - root (default password: root/Change_Me)

2.3. Run the following command:

The CU client is restored to Change_Me.

su postgres -c "/home/postgres/bin/psql -p 6000 -d smu -c \"update tbl_smu_user_info set login_password='e687fed485a4b510722695f7d38d6b524532af5196bd70363019a52bfc0f8af3',first_login='0', salt='' where login_name='Admin';\""

If the following information is displayed, the password is reset successfully:

UPDATE=1

 

OMU portal. After the restoration, the password is super123.

STIME=`date +%s`;

su -c "psql -d omu -c \"UPDATE TBL_OMU_USER_INFO SET LOCK_STATUS=0, PASSWD='33867eea994c22edb1e157f3f0f7fbd4ce30324c315320b490091f89b074cb10', LOCK_TIME=0, FIRST_FLG=0,PASSWD_WRONG_TIME=0, PASSWD_WRONG_COUNT=0, SALT='HWGtNEAzVjXaXjkg', LAST_MODIFY_TIME=${STIME} where USER_NAME='Admin';\"" - postgres;

If the following information is displayed, the password is reset successfully:

UPDATE=1

 

3       VCN500:

3.1. Log in to the VCN500 server as user admin in SSH mode (the default password is admin/Change_Me).

3.2. Run the su - root command to switch to user root. The default password is root/Change_Me.

3.3. Reset the password of the admin user of the C/S client to the initial password. Change_Me.

Run the following command:

su postgres -c "/home/postgres/bin/psql -p 6000 -d smu -c \"update tbl_smu_user_info set login_password='e687fed485a4b510722695f7d38d6b524532af5196bd70363019a52bfc0f8af3',first_login='0', salt='' where login_name='Admin';\""

If the following information is displayed, the password is reset successfully:

UPDATE=1

 

3.4 Reset the password of the OMU Portal administrator to Change_Me.

Run the following command:

su postgres -c "/home/postgres/bin/psql -p 6000 -d omu -c \"update tbl_omu_user_info set passwd='f0923a2988ada0d95570a304ef15671ce8df23683c83e1c5c98db502fc9fccf3', salt='', first_flg=1 where user_name='Admin';\""

If the following information is displayed, the password is reset successfully:

UPDATE=1


View more
  • x
  • convention:

hasanalpboran
hasanalpboran Created Dec 20, 2019 12:04:58 (0) (0)
hi Hike,
First of al thanks for your answer. But my problem is not about password. I need to reset everything to factory default.
Especially, /home, /share and /DB_DATA directories in NVR. How can i uninstall an reinstall the software?  

Dear User

The following post may help you. Uninstall and reinstall the software

https://forum.huawei.com/enterprise/en/ivs-service-software-fault-upon-vcn5x0-delivery/thread/486417-887


Please note that the uninstallation and reinstallation are high-risk operations. You are advised to ask the local dealer and create an eCare ticket so that we can use the GTAC remote operation service.

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.