Files
scripts-conlxsyslog03/autoconfig2/log_20201218_230001_1.txt
conetadm 5718e70f15 init
2024-11-14 21:11:06 +01:00

34 lines
824 B
Plaintext

!
! Let's have a look at host switch-vwd-sp1
!
Start expect with parameters
script run.exp
logfile log_20201218_230001_1.txt
host switch-vwd-sp1
user conetadm
password *hidden* from config
ssh Options used
-oStrictHostKeyChecking=no
-oUserKnownHostsFile=/dev/null
spawn ssh switch-vwd-sp1 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -l conetadm
Warning: Permanently added 'switch-vwd-sp1,10.99.0.133' (RSA) to the list of known hosts.
Password:
switch-vwd-sp1#term len 0
switch-vwd-sp1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
switch-vwd-sp1(config)#int gi1/0/5
switch-vwd-sp1(config-if)#no shut
switch-vwd-sp1(config-if)#end
switch-vwd-sp1#wr mem
Building configuration...
[OK]
switch-vwd-sp1#exit
Connection to switch-vwd-sp1 closed.