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

dump and restore AMP database tables 

Jun 09, 2014 01:21 PM

To DUMP a table from the database use the following command from the AWMS command line:

# pg_dump -t [TABLE_NAME] -Uairwave airwave 


You can redirect the output to a file:

# pg_dump -t [TABLE_NAME] -Uairwave airwave > [FILENAME]

For example, to dump the seas_config table to a file of the same name in the /tmp directory:

# pg_dump -t seas_config -Uairwave airwave > /tmp/seas_config


To RESTORE a database table from a file, you would first drop the existing table from the database, then cat the file containing the dumped table you want to restore to the database. (Using the seas_config table as an example):

# dbc 'drop table seas_config'

# cat /tmp/seas_config | db

Statistics
0 Favorited
2 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.