Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

export / import users between AMP servers 

Jun 09, 2014 01:00 PM

Here are the instructions for migrating AMP users between two servers


1. On the old AMP, run this command to create a csv file with all the users and passwords:

# echo "select username, password, password_format, full_name, email, phone from users where username <> 'admin'" | psql -Uairwave airwave --no-align --field-separator , --tuples-only > /tmp/users.csv

2. Copy /tmp/users.csv to the same location on the new AMP (if you're not sure about the syntax in Linux, WinSCP would be a good tool to use here).

3. Update the $role_id in the script. All users will be assigned to this role.

4. On the new AMP, delete all the users that were imported earlier:

# echo "delete from users where username <> 'admin';

5. On the new AMP save the attached file in /var/airwave/custom and run it like this:

# /var/airwave/custom/import_amp_users.pl /tmp/users.csv

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.