| | |
FireWall Back ups with Expect
![]() |
•
•
Join Date: Oct 2007
Posts: 1
Reputation:
Solved Threads: 0
Hello I am about 3 days new to Expect,
I have written a script in expect to automate fire wall back ups. But I want to beable to pull from a list of IPs of the firwalls to telnet to.
then pull the configs to a file and then save the file as the "hostname"month date year-Backup
This is what i have currently and it will save to a specified name. if i specify it.
spawn telnet 10.10.10.2
expect "login:"
Send "user/r"
expect "Password:"
Send "Password/r"
set filename [timestamp -format "Filename fw-%M%D%Y-Backup"]
log_file ./filename.txt
send "get config/r"
expect ">"
Log_file
send "exit/r"
Thank You
I have written a script in expect to automate fire wall back ups. But I want to beable to pull from a list of IPs of the firwalls to telnet to.
then pull the configs to a file and then save the file as the "hostname"month date year-Backup
This is what i have currently and it will save to a specified name. if i specify it.
spawn telnet 10.10.10.2
expect "login:"
Send "user/r"
expect "Password:"
Send "Password/r"
set filename [timestamp -format "Filename fw-%M%D%Y-Backup"]
log_file ./filename.txt
send "get config/r"
expect ">"
Log_file
send "exit/r"
Thank You
![]() |
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Adware.mainsearch Problem (Viruses, Spyware and other Nasties)
- Want to write script to back-up up Linux hdb drive to hdc drice (*nix Hardware Configuration)
- For PaulPool: A Broadband Router is a hardware firewall? (Network Security)
- Unmetered Web space for Reseller Web Hosting from WebHostingWith.us (Web Hosting Deals)
- XP Firewall (Windows NT / 2000 / XP)
- Delete Old Posts? (DaniWeb Community Feedback)
Other Threads in the Shell Scripting Forum
- Previous Thread: Comparing 2 files and then apending matches
- Next Thread: Help with sed command please.
| Thread Tools | Search this Thread |





