Advertisement
Guest User

Untitled

a guest
Jan 9th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1.  
  2.  
  3. ---START SCRIPT INFO---
  4. 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'}
  5. ---END SCRIPT INFO---
  6.  
  7. Trying 192.168.60.11...
  8. Connected to 192.168.60.11.
  9. Escape character is '^]'.
  10.  
  11.  
  12. User Access Verification
  13.  
  14. Username: dls
  15. Password:
  16.  
  17. TermServ1#
  18. TermServ1#show running-config | include .*ip.*host *COM03
  19. ip host COM03 2005 10.1.1.1
  20. TermServ1#show line | include .\/.*\/.* *5 *TTY
  21. 0/0/2 5 TTY 9600/9600 - - - - - 2 3 1749/0 -
  22. 0/0/12 15 TTY 9600/9600 - - - - - 0 0 0/0 -
  23. TermServ1#en
  24. TermServ1#clear line 0/0/2
  25. [confirm]y [OK]
  26. TermServ1#
  27. TermServ1#
  28. TermServ1#en
  29. TermServ1#configure terminal
  30. Enter configuration commands, one per line. End with CNTL/Z.
  31. TermServ1(config)#line 0/0/2
  32. TermServ1(config-line)#speed 9600
  33. TermServ1(config-line)#exit
  34. TermServ1(config)#exit
  35. TermServ1#telnet COM03
  36. Trying COM03 (10.1.1.1, 2005)... Open
  37.  
  38.  
  39. User Access Verification
  40.  
  41. Username: dls
  42. Password:
  43.  
  44. Switch(config-if)#exit
  45. Switch(config)#
  46. Switch(config)#interface gig0/0
  47. Switch(config-if)#
  48. Switch(config-if)#no shutdown
  49. Switch(config-if)#
  50. Switch(config-if)#
  51. Switch(config-if)#
  52. Switch(config-if)#ip add dhcp
  53. Switch(config-if)#
  54. Switch(config-if)#
  55. Switch(config-if)#
  56. *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
  57.  
  58. Switch(config-if)#
  59. Switch(config-if)#
  60. Switch(config-if)#exit
  61. Switch(config)#
  62. Switch(config)#ip tftp source-interface gig0/0
  63. Switch(config)#ip ftp source-interface gig0/0
  64. Switch(config)#ip tftp blocksize 8192
  65. Switch(config)#
  66. Switch(config)#
  67. Switch(config)#^Z
  68. Switch#
  69. Switch#copy tftp://192.168.60.100/cat9k/cat9k_iosxe.16.08.01a.SPA.bin flash:
  70. Destination filename [cat9k_iosxe.16.08.01a.SPA.bin]?
  71. Accessing tftp://192.168.60.100/cat9k/cat9k_iosxe.16.08.01a.SPA.bin...
  72. *Jan 9 09:13:28.529: %SYS-5-CONFIG_I: Configured from console by console
  73. Loading cat9k/cat9k_iosxe.16.08.01a.SPA.bin from 192.168.60.100 (via GigabitEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  74. [OK - 667244461 bytes]
  75.  
  76. 667244461 bytes copied in 36.014 secs (18527363 bytes/sec)
  77. Switch#
  78. Switch#
  79. Switch#
  80. Switch#
  81. Switch#
  82. Switch#en
  83. Switch#
  84. Switch#
  85. Switch#
  86. Switch#software expand
  87. ^
  88. % Invalid input detected at '^' marker.
  89.  
  90. Switch#
  91. 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 
  92. [1]: Expanding file
  93.  
  94. *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
  95. SUCCESS: Finished expanding all-in-one software package.
  96.  
  97.  
  98.  
  99. Switch#enable
  100. Switch#config terminal
  101. Enter configuration commands, one per line. End with CNTL/Z.
  102. Switch(config)#
  103. Switch(config)#boot system switch all flash:packages.conf
  104. Switch(config)#end
  105. Switch#
  106. Switch#
  107. Switch#^Z
  108. Switch#
  109. Switch#
  110. Switch#write
  111. Building configuration...
  112.  
  113. *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
  114. *Jan 9 09:17:18.158: %SYS-5-CONFIG_I: Configured from console by console[OK]
  115. Switch#
  116. Switch#
  117. Switch#
  118. Switch#
  119. Switch#en
  120. Switch#
  121. Switch#
  122. Switch#reload
  123. Reload command is being issued on Active unit, this will reload the whole stack
  124. Proceed with reload? [confirm]
  125.  
  126. *Jan 9 09:17:22.605: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
  127. Chassis 1 reloading, reason - Reload command
  128. Jan 9 09:17:28.141: %PMAN-5-EXITACTION: F0/0: pvp: Process manager is exiting: reload fp action requested
  129. Jan 9 09:17:29.365: %PMAN-5-
  130.  
  131. Initializing Hardware...
  132. \00\00\00\00\00
  133. System Bootstrap, Version 16.9.1r [FC2], RELEASE SOFTWARE (P)
  134. Compiled Tue 05/29/2018 14:59:59.99 by rel
  135.  
  136. Current ROMMON image : Primary
  137. Last reset cause : SoftwareReload
  138. C9300-24UX platform with 8388608 Kbytes of main memory
  139.  
  140. switch:
  141.  
  142. ---START SCRIPT RESULTS---
  143. 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'}
  144. ---END SCRIPT RESULTS---
  145.  
  146. ----START DEBUG INFO------
  147. <teletest.Script.Spawn object at 0x7f9c757fbdd8>
  148. command: /usr/bin/telnet
  149. args: ['/usr/bin/telnet', '192.168.60.11']
  150. buffer (last 100 chars): b'reset cause : SoftwareReload\r\nC9300-24UX platform with 8388608 Kbytes of main memory\r\n\r\nswitch: '
  151. before (last 100 chars): b'reset cause : SoftwareReload\r\nC9300-24UX platform with 8388608 Kbytes of main memory\r\n\r\nswitch: '
  152. after: None
  153. match: None
  154. match_index: None
  155. exitstatus: None
  156. flag_eof: False
  157. pid: 15693
  158. child_fd: 6
  159. closed: False
  160. timeout: 30
  161. delimiter: <class 'pexpect.exceptions.EOF'>
  162. logfile: None
  163. logfile_read: <teletest.Log.ScriptLogger object at 0x7f9c6d71cb38>
  164. logfile_send: None
  165. maxread: 1024
  166. ignorecase: False
  167. searchwindowsize: None
  168. delaybeforesend: 0.05
  169. delayafterclose: 0.1
  170. delayafterterminate: 0.1
  171. ----END DEBUG INFO------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement