Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting Preferences via SSH - Automate

Status
Not open for further replies.

mpit52

Technical User
Nov 10, 2011
3
US
Hey guys,
First of all I'm new to Tek Tips and have searched for the answer to my question but have not found an answer. I'm looking for help with the following

Connecting to a sonicwall router (os 5.0<) and exporting the preferences to a FTP server. I have the steps to do this manually but I would like to find a way to automate this via a script (if possible) so that we can backup our clients preferences monthly. I would need to be able to apply this to about 150 routers. If this is a script, I would need to be able to enter/change the backup file name to reflect the correct company. I can always edit the script from out mgmt system.

I have been using Putty (plink.exe) to connect to the sonicwall via SSH.
Below is a quick explanation of the what I see and have to input in order to complete my task manually. Attached is a screen shot.

Command: plink.exe [admin@routeraddress]
Prompts for: "user:"
Command: username
Prompts for: "password:"
Command: password
Command: export preferences ftp [ftpserver] [user] [password] backup.exp
 
Thanks JoePc,
we have looked for that but like you said its a rather costly product, one which the owners don't see needed. I know Sonicwalls OS version 5.0 and later have the ability to export the preferences to a ftp server via ssh and would like to take full advantage of this. They commands work when I manually put them in, but I am having a hard time trying to script this. I'm looking into Vbs scripting right now but Im sure there is a way to accomplish this via bat or vbs script.

Now I know no one wants to just work for free, so even if I was able to find out the method of how to accomplish this task, i should be able to create the script myself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top