tclsh
puts [open "flash:TEST" w+] {interface fa0/0
ip address 172.16.0.10 255.255.255.0
ip default-gateway 172.16.0.1
!
hostname DistantRouter
!
}
tclquit
DistantRouter#wr mem
Building configuration...
[OK]
DistantRouter#
DistantRouter#reload cancel
DistantRouter#
***
*** --- SHUTDOWN ABORTED ---
***
DistantRouter#
DistantRouter#copy startup-config flash:
Destination filename [startup-config]?
402 bytes copied in 0.536 secs (750 bytes/sec)
DistantRouter#
DistantRouter#sh flash:
-#- --length-- -----date/time------ path
1 111 Mar 01 2002 00:24:58 TEST
2 402 Mar 01 2002 00:33:56 startup-config
133971968 bytes available (8192 bytes used)
DistantRouter# term len 0
DistantRouter#more flash:startup-config
!
!
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DistantRouter
!
!
********* lines omitted for brevity *****
!
!
line con 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
line aux 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
!
!
end
DistantRouter#
tclsh
!
!
puts [open "flash:startup-config" w+] {!
!
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname NEWHOST
!
!
********* lines omitted for brevity *****
!
!
line con 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
line aux 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
!
!
end
}
tclquit
DistantRouter#copy flash:startup-config startup-config
Destination filename [startup-config]?
[OK]
1128 bytes copied in 0.120 secs (9400 bytes/sec)
DistantRouter#
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)