Connect to the reports database on test-msr.geant.net using the user reportsUser and the password that is stored in Keypass (Use MySQL Workbench)
Run the following query:
select * from reports.SPLUNK_DATA
where interface_description like '%VPN%'
and year = 2017
and month = 8
order by interface_description, year, month;
...
Copy the results and paste them into a Microsoft Excel Spreadsheet. Tip: Right-click on the rows in MySQL Workbench, choose "Copy Row (Tab separated)"
In the spreadsheet, delete column A (absid). You will end up with something like this:
Study the interface descriptions that should be in column G of the Spreadsheet.
...
Nren Name . BGP Lu connection Type . mdvpn . router name
Note: If you get any of the below "nren_name" These are just internal links between our Main router and a virtual instance of the router. They are internal to GEANT (this was confirmed by Sebastiano). You can ignore them in the Excel spreadshseet.
- lt-2-2-0-unit-31.proxy.mdvpn.mx2.bra.sk.geant.net
- lt-0-0-0-unit-31.proxy.mdvpn.mx1.mar.fr.geant.net
- lt-1-1-0-unit-31.proxy.mdvpn.mx1.fra.de.geant.net
The BGP LU connection Type can be three values and equate to the following field names in that md_vpn.msr_vpn_availability table:
...
In column I of the Spreadsheet, enter either bgp_lu_access_1 or bgp_lu_access_2 depending on the BGP LU Connection Type. See below:
In column J of the Spreadsheet paste the following Microsoft Excel Function:
...
Complete the rest of the rows and copy the SQL statements. See below:
Connect to the md_vpn database on prod-cacti02.geant.net using the user mdvpnUser and the password that is stored in KeypassLastPass.
Run the SQL statements that you have just copied: (Columns J and K from the Spreadsheet)
Now we need to update the service availability by running the following SQL statement:
UPDATE msr_vpn_availability
SET md_vpn_status = bgp_lu_access_1
where nren_name in ('AMRES','BELnet','BREN','CARnet','CESnet','FCCN','GRnet','HUNGARnet')
and year = 2017
and month = 8;
...