Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




165 posts

Master Geek


# 114633 26-Feb-2013 10:38
Send private message

I know what I'm trying to accomplish, I just need to be pointed in the right direction.

I'm trying to write a bash file to backup a router's settings once a month. The problem is... sonicwall have an annoying way of logging in. You can't just pass your username and password in via SSH, you have to enter it again. (here for example:http://tinyurl.com/atawg5l)

I know I should be somehow telling the bash file to "enter" strings or should I be using "expect"?

Either way, it's just the login which is kicking me to the curb, the backup command is pretty easy...

Create new topic
384 posts

Ultimate Geek


  # 770821 27-Feb-2013 00:20
Send private message

Have you thought about using a ssh key instead of a passphrase?




Support a locally made Linux based Operating System, try Linux Lite.
Download Linux Lite

2384 posts

Uber Geek

Trusted
Subscriber

  # 770827 27-Feb-2013 00:42
Send private message

Can you run the script from the sonicwall via a cron job so that you push the config to another server?

 
 
 
 




165 posts

Master Geek


  # 770844 27-Feb-2013 07:18
Send private message

valtam: Have you thought about using a ssh key instead of a passphrase?


I don't think the sonicwall is capable of that



165 posts

Master Geek


  # 770845 27-Feb-2013 07:21
Send private message

insane: Can you run the script from the sonicwall via a cron job so that you push the config to another server?


That job would still have to login to the firewall though?

The command I need to run:

send "export preferences ftp --ip address-- --username-- --password-- F/WName-$(date +%Y-%m-%d).exp\n"

Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Facebook Portal to land in New Zealand
Posted 19-Sep-2019 18:35


Amazon Studios announces New Zealand as location for its upcoming series based on The Lord of the Rings
Posted 18-Sep-2019 17:24


The Warehouse chooses Elasticsearch service
Posted 18-Sep-2019 13:55


Voyager upgrades core network to 100Gbit
Posted 18-Sep-2019 13:52


Streaming service Acorn TV launches in New Zealand with selection with British shows
Posted 18-Sep-2019 08:55


Bitcoin.com announces partnership with smartphone manufacturer HTC
Posted 16-Sep-2019 21:30


Finalists Announced for Microsoft NZ Partner Awards
Posted 16-Sep-2019 19:37


OPPO Showcases New CameraX Capabilities at Google Developer Days China 2019
Posted 15-Sep-2019 12:42


New Zealand PC Market returns to growth
Posted 15-Sep-2019 12:24


Home sensor charity director speaks about the preventable death which drives her to push for healthy homes
Posted 11-Sep-2019 08:46


Te ao Maori Minecraft world set to inspire Kiwi students
Posted 11-Sep-2019 08:43


Research reveals The Power of Games in New Zealand
Posted 11-Sep-2019 08:40


Ring Door View Cam now available in New Zealand
Posted 11-Sep-2019 08:38


Vodafone NZ to create X Squad
Posted 10-Sep-2019 10:25


Huawei nova 5T to be available 20th September
Posted 5-Sep-2019 11:55



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.