sunhux
asked on
Copying out Cisco backups from SolarWinds
I was told by my network colleagues that the various Cisco devices config
(as given by 'show run') is backup to our SolarWinds server (presume this
is initiated from SolarWinds via tftp) daily.
Is there a way, I can copy out from Solarwinds these hundreds of Cisco
outputs to a shared folder / my PC in a secure way (using sftp or an encrypted
way of copying).
I don't know which files/folder in SolarWinds store these backups (of Cisco
configs), so do let me know where is this & what's the file names.
Will need an automated way to copy them out weekly, not manually go to
copy them out but if it has to be manual, do elaborate & I'll see if I can
get an ops staff to do it (which we prefer not to)
(as given by 'show run') is backup to our SolarWinds server (presume this
is initiated from SolarWinds via tftp) daily.
Is there a way, I can copy out from Solarwinds these hundreds of Cisco
outputs to a shared folder / my PC in a secure way (using sftp or an encrypted
way of copying).
I don't know which files/folder in SolarWinds store these backups (of Cisco
configs), so do let me know where is this & what's the file names.
Will need an automated way to copy them out weekly, not manually go to
copy them out but if it has to be manual, do elaborate & I'll see if I can
get an ops staff to do it (which we prefer not to)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I guess the tftp root is "By default, the TFTP root directory with the SolarWinds server is C:\TFTP-Root"
Likely the config files are in "Unix-type" text files (which ends with <LF> character) rather than
LF CR characters
Likely the config files are in "Unix-type" text files (which ends with <LF> character) rather than
LF CR characters
Lf to lf-cr is a simple transition on a UNIX system dos2unix
\r is line feed
\r\n
Or simply replace \r with \n
Or sed -e 's/\r$/\n/' file.
The means of transfer could also do this on the fly.....
\r is line feed
\r\n
Or simply replace \r with \n
Or sed -e 's/\r$/\n/' file.
The means of transfer could also do this on the fly.....
I believe the startup or running config to a TFTP server would have been in its original form so it can still be its text, with sequence of LFCR. You may want to check out the backup mode that your IT is using and take a sample.
ASKER
Ok I got the admin to login to Sftp server but both c:\tftp-root & d:\tftp-root are empty.
The closest I got is the following folder which oddly shows the running & the startup
configs of 1 device only which I'm expecting hundreds of devices:
[8-3-2016] [8-3-2017] [8-4-2015] [8-4-2016] [8-4-2017] [8-5-2015]
[8-5-2016] [8-6-2015] [8-6-2016] [8-7-2015] [8-7-2016] [8-8-2015]
[8-8-2016] [8-9-2014] [8-9-2015] [8-9-2016] [9-1-2015] [9-1-2016]
[9-1-2017] [9-10-2014] [9-10-2015] [9-10-2016] [9-11-2014] [9-11-2015]
[9-11-2016] [9-12-2014] [9-12-2015] [9-12-2016] [9-2-2015] [9-2-2016]
[9-2-2017] [9-3-2015] [9-3-2016] [9-3-2017] [9-4-2015] [9-4-2016]
[9-4-2017] [9-5-2015] [9-5-2016] [9-6-2015] [9-6-2016] [9-7-2015]
[9-7-2016] [9-8-2015] [9-8-2016] [9-9-2014] [9-9-2015] [9-9-2016]
0 File(s) 0 bytes
960 Dir(s) 185,897,897,984 bytes free
D:\Program Files (x86)\SolarWinds\Orion\NCM \Config-Ar chive\XXXs gp-as-ccc- 15.cscn
ms.xxxbank.net>
The closest I got is the following folder which oddly shows the running & the startup
configs of 1 device only which I'm expecting hundreds of devices:
[8-3-2016] [8-3-2017] [8-4-2015] [8-4-2016] [8-4-2017] [8-5-2015]
[8-5-2016] [8-6-2015] [8-6-2016] [8-7-2015] [8-7-2016] [8-8-2015]
[8-8-2016] [8-9-2014] [8-9-2015] [8-9-2016] [9-1-2015] [9-1-2016]
[9-1-2017] [9-10-2014] [9-10-2015] [9-10-2016] [9-11-2014] [9-11-2015]
[9-11-2016] [9-12-2014] [9-12-2015] [9-12-2016] [9-2-2015] [9-2-2016]
[9-2-2017] [9-3-2015] [9-3-2016] [9-3-2017] [9-4-2015] [9-4-2016]
[9-4-2017] [9-5-2015] [9-5-2016] [9-6-2015] [9-6-2016] [9-7-2015]
[9-7-2016] [9-8-2015] [9-8-2016] [9-9-2014] [9-9-2015] [9-9-2016]
0 File(s) 0 bytes
960 Dir(s) 185,897,897,984 bytes free
D:\Program Files (x86)\SolarWinds\Orion\NCM
ms.xxxbank.net>
ASKER
Ok I figured it out : have to go 1 level folder up & yes, the files are in Windows text file with <LF><CR>.
Next is to figure how to automate copying out only the latest version of the configs under that hundreds of subfolders
Next is to figure how to automate copying out only the latest version of the configs under that hundreds of subfolders
Then probably is to have scheduled task and run the script for client connect to SFTP server for copy out. https://winscp.net/eng/docs/guide_schedule
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've done tftp of Cisco devices before but here in this place, my network colleagues don't take
the config backups but leave it to SolarWinds to take the backup.
I will hv to explain/justify if I install any tool in that Solarwinds server but I guess I can
just map a drive from this Solarwinds Windows server to a shared drive & then do
"xcopy /e/c/h ...*latest_copy_of_running _config* sharedrive:\folder
where I'll be able to get all of it out to a single folder & I'll run a script to do compliance checking:
https://www.experts-exchange.com/questions/29014986/help-to-enhance-batch-script-to-output-to-html-with-colors.html
the config backups but leave it to SolarWinds to take the backup.
I will hv to explain/justify if I install any tool in that Solarwinds server but I guess I can
just map a drive from this Solarwinds Windows server to a shared drive & then do
"xcopy /e/c/h ...*latest_copy_of_running
where I'll be able to get all of it out to a single folder & I'll run a script to do compliance checking:
https://www.experts-exchange.com/questions/29014986/help-to-enhance-batch-script-to-output-to-html-with-colors.html
ASKER
Sorry that I've deviated here: perhaps I should use Robocopy
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
configs but this won't work in our environment where the Cisco devices
require 2FA (1 password plus 1 OTP) to login.
If not for the OTP (ie just use password authentication), I could have used
putty pscp/psftp to copy out the config files from the Cisco devices.
I think my network colleagues must have set up something to enable
backup of Cisco devices' configs to the Solarwinds