JuniperForum.com
September 07, 2010, 07:20:56 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: If you have an interesting idea for an article or knowledgebase entry, please submit it!
 
  Home Help Login Register  
* *
Pages: [1]
  Print  
Author Topic: 5GT - How to apply confing on manual restart  (Read 782 times)
cebulos
Newbie
*
Posts: 4


View Profile
« on: November 24, 2009, 10:54:56 AM »

Dear All,

I was assigned a project to upgrade  20 netscreen 5GT routers with new ADSL details.
I managed to copy config off the Router, and change details for test account, but when I load config from a file it asking me to restart the router to apply the changes straight away.
I need to copy config to the router ( kinda startup folder ) and apply changes only when the router will be manually restarted.
I have done similar thing with Cisco 800 routers, and I used TFTP server to do it.

How can I do in in 5GTs ?

Kind Regards
Logged
alan
Hero Member
*****
Posts: 795


View Profile WWW
« Reply #1 on: November 24, 2009, 12:34:50 PM »

CLI to copy the new config to device:
save file xxx from tftp 1.2.3.4 new-config

also might want to save the "last known good" config from CLI before just in case (before the above update)...
 save config to last-known-good
To restore from CLI: exec config rollback

You can also copy the config using scp (but not save to the device). For example...
ssg5-paleale-> get file
    flash:/crashdump.dmp                16384
    flash:/dhcpservl.txt                  160
    flash:/envar.rec                       74
    flash:/ns_sys_config                 3576

scp netscreen@1.2.3.4:ns_sys_config .
netscreen@1.2.3.4's password: xxx

You can update the firmware via scp
scp /tftpboot/ssg5ssg20.6.2.0r4.0 netscreen@1.2.3.4:image

Note the destination must be "image" per the above.
You'll need to "reset" for this to take effect.

If you want to automate the process there's a Perl module Telnet::Netscreen
http://search.cpan.org/~mramberg/Net-Telnet-Netscreen-1.2/lib/Net/Telnet/Netscreen.pm

Logged
carthman
Jr. Member
**
Posts: 82


View Profile
« Reply #2 on: November 24, 2009, 12:52:20 PM »

Well if you do not care if it reboots on its own (aka loses power) and comes up with a new configuration you could always do the following

unset all
save conf from tftp x.x.x.x to flash

now when the box reboots it will come up on teh new config (as long as you don't save when exiting)
Logged
cebulos
Newbie
*
Posts: 4


View Profile
« Reply #3 on: November 25, 2009, 02:33:59 AM »

Many Thanks Alan and Carthman.

I will try it today.

Kind Regards
Logged
cebulos
Newbie
*
Posts: 4


View Profile
« Reply #4 on: November 25, 2009, 04:58:34 AM »

Hi again,

I have tried both solutions:

1.
save file xxx from tftp 1.2.3.4 new-config
Code:
Reading->save file xxx from tftp 10.0.100.3 new
Load file flash from TFTP 10.0.100.3 (file: new).
!!!!!!!!!!!!!!!!!!!!!
tftp received octets = 4726
tftp success!
Done

where new is new config file, and xxx is i am guessing kind of startup file on the 5GT (tried - flash, startup, xxx) and after restart it still uses old config.

2.
save conf from tftp x.x.x.x to flash
Code:
Reading-> save new from tftp 10.0.100.3 to flash
               ^-------unknown keyword new
Reading-> save file new from tftp 10.0.100.3 to flash
                                                 ^-------unknown keyword flash
where new is my new config file

I have a feeling that the first solution will work, but I just need to know "startup" file name (file that 5GT will read on startup, and copy any changes to the "live" config).

Firmware Version: 5.0.0r10b.p (Firewall+VPN)

Edit:

I finally managed to do it.
Code:
save config from tftp 10.0.100.3 new to flash
Load config from 10.0.100.3/new .
!!!!!!!!!!!!!!!!!!!!!
tftp received octets = 4685
tftp success!

TFTP Succeeded
Save config ...  Done

Where new is my new config file.

Thank you very much for helping me

Link that helped me
http://www.ajacob.net/firewall.html

Kind Regards




« Last Edit: November 25, 2009, 05:20:38 AM by cebulos » Logged
carthman
Jr. Member
**
Posts: 82


View Profile
« Reply #5 on: November 25, 2009, 05:20:57 AM »

The correct syntax would be....


save conf from tftp 10.0.100.3 new to flash
Logged
cebulos
Newbie
*
Posts: 4


View Profile
« Reply #6 on: November 25, 2009, 05:42:22 AM »

Many Thanks Carthman
Logged
Pages: [1]
  Print  
 
Jump to:  

Navigation

Donate

Please consider donating if we've saved you time or money. It helps pay for the bandwidth, equipment, and hosting charges to keep this site running

Tools

Submit Article/KB - Do not submit questions here.

Recent

Stats

Members
  • Total Members: 22513
  • Latest: eklein
Stats
  • Total Posts: 40575
  • Total Topics: 11249
  • Online Today: 77
  • Online Ever: 393
  • (August 06, 2008, 07:40:57 AM)
Users Online
Users: 4
Guests: 67
Total: 71
TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!

Sponsored in part by CollarWise

Page created in 0.231 seconds with 37 queries.