Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---START SCRIPT INFO---
- ScriptInfo: {'EndDataTime': '', 'TerminalServerPassword': 'cisco', 'TerminalServerHost': '192.168.60.11', 'PID': 'undefined', 'CommandAndControlHost': 'localhost', '_Session': <teletest.Script.Session object at 0x7f9c6d71cba8>, 'ComPort': 'COM03', 'TerminalServerUsername': 'dls', 'StartDataTime': '09-01-2019--10:11:43', 'TempLogFile': '/home/teletest/logs/Cell_03__COM03__nan.txt', 'CommandHostPath': 'index.php', 'TestResult': 4, 'ConfigFile': '/home/teletest/git/teletest-scripts/teletest/src/scripts/dls/develop/MYTEST.json', 'Logfile': '', 'ScriptName': '/home/teletest/git/teletest-scripts/teletest/src/scripts/dls/develop/MYTEST.py', 'State': 2, 'Serial': 'undefined'}
- ---END SCRIPT INFO---
- Trying 192.168.60.11...
- Connected to 192.168.60.11.
- Escape character is '^]'.
- User Access Verification
- Username: dls
- Password:
- TermServ1#
- TermServ1#show running-config | include .*ip.*host *COM03
- ip host COM03 2005 10.1.1.1
- TermServ1#show line | include .\/.*\/.* *5 *TTY
- 0/0/2 5 TTY 9600/9600 - - - - - 2 3 1749/0 -
- 0/0/12 15 TTY 9600/9600 - - - - - 0 0 0/0 -
- TermServ1#en
- TermServ1#clear line 0/0/2
- [confirm]y [OK]
- TermServ1#
- TermServ1#
- TermServ1#en
- TermServ1#configure terminal
- Enter configuration commands, one per line. End with CNTL/Z.
- TermServ1(config)#line 0/0/2
- TermServ1(config-line)#speed 9600
- TermServ1(config-line)#exit
- TermServ1(config)#exit
- TermServ1#telnet COM03
- Trying COM03 (10.1.1.1, 2005)... Open
- User Access Verification
- Username: dls
- Password:
- Switch(config-if)#exit
- Switch(config)#
- Switch(config)#interface gig0/0
- Switch(config-if)#
- Switch(config-if)#no shutdown
- Switch(config-if)#
- Switch(config-if)#
- Switch(config-if)#
- Switch(config-if)#ip add dhcp
- Switch(config-if)#
- Switch(config-if)#
- Switch(config-if)#
- *Jan 9 09:13:26.239: %DHCP-6-ADDRESS_ASSIGN: Interface GigabitEthernet0/0 assigned DHCP address 192.168.60.28, mask 255.255.255.0, hostname
- Switch(config-if)#
- Switch(config-if)#
- Switch(config-if)#exit
- Switch(config)#
- Switch(config)#ip tftp source-interface gig0/0
- Switch(config)#ip ftp source-interface gig0/0
- Switch(config)#ip tftp blocksize 8192
- Switch(config)#
- Switch(config)#
- Switch(config)#^Z
- Switch#
- Switch#copy tftp://192.168.60.100/cat9k/cat9k_iosxe.16.08.01a.SPA.bin flash:
- Destination filename [cat9k_iosxe.16.08.01a.SPA.bin]?
- Accessing tftp://192.168.60.100/cat9k/cat9k_iosxe.16.08.01a.SPA.bin...
- *Jan 9 09:13:28.529: %SYS-5-CONFIG_I: Configured from console by console
- Loading cat9k/cat9k_iosxe.16.08.01a.SPA.bin from 192.168.60.100 (via GigabitEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- [OK - 667244461 bytes]
- 667244461 bytes copied in 36.014 secs (18527363 bytes/sec)
- Switch#
- Switch#
- Switch#
- Switch#
- Switch#
- Switch#en
- Switch#
- Switch#
- Switch#
- Switch#software expand
- ^
- % Invalid input detected at '^' marker.
- Switch#
- Switch#request platform software package expand file flash:cat9k_iosxe.16.08.$tform software package expand file flash:cat9k_iosxe.16.08.0 1a.SPA.biware package expand file flash:cat9k_iosxe.16.08.01a.SPA.bin
- [1]: Expanding file
- *Jan 9 09:16:16.764: %INSTALL-5-OPERATION_START_INFO: Switch 1 R0/0: packtool: Started expand package flash:cat9k_iosxe.16.08.01a.SPA.bin[1]: Finished expanding all-in-one software package in switch 1
- SUCCESS: Finished expanding all-in-one software package.
- Switch#enable
- Switch#config terminal
- Enter configuration commands, one per line. End with CNTL/Z.
- Switch(config)#
- Switch(config)#boot system switch all flash:packages.conf
- Switch(config)#end
- Switch#
- Switch#
- Switch#^Z
- Switch#
- Switch#
- Switch#write
- Building configuration...
- *Jan 9 09:17:17.090: %INSTALL-5-OPERATION_COMPLETED_INFO: Switch 1 R0/0: packtool: Completed expand package flash:cat9k_iosxe.16.08.01a.SPA.bin
- *Jan 9 09:17:18.158: %SYS-5-CONFIG_I: Configured from console by console[OK]
- Switch#
- Switch#
- Switch#
- Switch#
- Switch#en
- Switch#
- Switch#
- Switch#reload
- Reload command is being issued on Active unit, this will reload the whole stack
- Proceed with reload? [confirm]
- *Jan 9 09:17:22.605: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
- Chassis 1 reloading, reason - Reload command
- Jan 9 09:17:28.141: %PMAN-5-EXITACTION: F0/0: pvp: Process manager is exiting: reload fp action requested
- Jan 9 09:17:29.365: %PMAN-5-
- Initializing Hardware...
- \00\00\00\00\00
- System Bootstrap, Version 16.9.1r [FC2], RELEASE SOFTWARE (P)
- Compiled Tue 05/29/2018 14:59:59.99 by rel
- Current ROMMON image : Primary
- Last reset cause : SoftwareReload
- C9300-24UX platform with 8388608 Kbytes of main memory
- switch:
- ---START SCRIPT RESULTS---
- ScriptInfo: {'EndDataTime': '09-01-2019--10:18:00', 'TerminalServerPassword': 'cisco', 'TerminalServerHost': '192.168.60.11', 'PID': 'C9300 Switch', 'CommandAndControlHost': 'localhost', '_Session': <teletest.Script.Session object at 0x7f9c6d71cba8>, 'ComPort': 'COM03', 'TerminalServerUsername': 'dls', 'StartDataTime': '09-01-2019--10:11:43', 'TempLogFile': '/home/teletest/logs/Cell_03__COM03__nan.txt', 'CommandHostPath': 'index.php', 'TestResult': 4, 'ConfigFile': '/home/teletest/git/teletest-scripts/teletest/src/scripts/dls/develop/MYTEST.json', 'Logfile': '', 'ScriptName': '/home/teletest/git/teletest-scripts/teletest/src/scripts/dls/develop/MYTEST.py', 'State': 2, 'Serial': 'undefined'}
- ---END SCRIPT RESULTS---
- ----START DEBUG INFO------
- <teletest.Script.Spawn object at 0x7f9c757fbdd8>
- command: /usr/bin/telnet
- args: ['/usr/bin/telnet', '192.168.60.11']
- buffer (last 100 chars): b'reset cause : SoftwareReload\r\nC9300-24UX platform with 8388608 Kbytes of main memory\r\n\r\nswitch: '
- before (last 100 chars): b'reset cause : SoftwareReload\r\nC9300-24UX platform with 8388608 Kbytes of main memory\r\n\r\nswitch: '
- after: None
- match: None
- match_index: None
- exitstatus: None
- flag_eof: False
- pid: 15693
- child_fd: 6
- closed: False
- timeout: 30
- delimiter: <class 'pexpect.exceptions.EOF'>
- logfile: None
- logfile_read: <teletest.Log.ScriptLogger object at 0x7f9c6d71cb38>
- logfile_send: None
- maxread: 1024
- ignorecase: False
- searchwindowsize: None
- delaybeforesend: 0.05
- delayafterclose: 0.1
- delayafterterminate: 0.1
- ----END DEBUG INFO------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement