Advertisement
Guest User

Untitled

a guest
Apr 18th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.41 KB | None | 0 0
  1. ./noc debug-script get_interfaces kiev-n1-bsw4
  2. /opt/noc/contrib/lib/pycrypto-2.5-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
  3. _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
  4. 2012-04-18 14:32:36,728 SSH: Using gmpy
  5. 2012-04-18 14:32:37,244 Using JSON library: django_simplejson
  6. 2012-04-18 14:32:37,262 Loading PeriodicRegistry
  7. 2012-04-18 14:32:37,324 Loading DownloaderRegistry
  8. 2012-04-18 14:32:37,365 Loading ProfileRegistry
  9. 2012-04-18 14:32:38,068 Loading ScriptRegistry
  10. 2012-04-18 14:32:38,376 Setting up 'select' polling method
  11. 2012-04-18 14:32:38,376 Set up select() poller
  12. 2012-04-18 14:32:38,376 Loading private ssh key from 'etc/ssh/id_rsa'
  13. 2012-04-18 14:32:38,377 Loading public ssh key from 'etc/ssh/id_rsa.pub'
  14. access_profile {
  15. profile: "Extreme.XOS"
  16. scheme: TELNET
  17. address: "172.16.0.34"
  18. user: "amt"
  19. password: "twtwan"
  20. }
  21. script: "Extreme.XOS.get_interfaces"
  22.  
  23. 2012-04-18 14:32:38,382 Running socket factory
  24. 2012-04-18 14:32:38,382 Running script thread
  25. 2012-04-18 14:32:38,382 Creating transaction id=126489933 method=None callback=None
  26. 2012-04-18 14:32:38,383 [script-172.16.0.34-Extreme.XOS.get_interfaces] Running
  27. 2012-04-18 14:32:38,383 [script-172.16.0.34-Extreme.XOS.get_interfaces] Running script: Extreme.XOS.get_interfaces ({})
  28. 2012-04-18 14:32:38,383 [script-172.16.0.34-Extreme.XOS.get_interfaces] cli(show vlan detail)
  29. 2012-04-18 14:32:38,383 [script-172.16.0.34-Extreme.XOS.get_interfaces] Running new provider
  30. 2012-04-18 14:32:38,384 [TELNET: 172.16.0.34] ==> START
  31. 2012-04-18 14:32:38,384 [TELNET: 172.16.0.34] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^(\\*\\s)?\\S+? #', 'PROMPT'), ('(^Press <SPACE> to continue or <Q> to quit:)', 'PAGER')])
  32. 2012-04-18 14:32:38,385 [TELNET: 172.16.0.34] set_timeout(30)
  33. 2012-04-18 14:32:38,386 register_socket(<noc.sa.script.telnet.CLITelnetSocket object at 0x2d32cd0>,None)
  34. 2012-04-18 14:32:39,383 Tick
  35. 2012-04-18 14:32:39,383 3 TICKS TO EXIT
  36. 2012-04-18 14:32:39,383 [TELNET: 172.16.0.34] Initializing socket
  37. 2012-04-18 14:32:39,384 [TELNET: 172.16.0.34] Connecting 172.16.0.34:23
  38. 2012-04-18 14:32:39,396 [TELNET: 172.16.0.34] Received IAC WILL SGA (251 3)
  39. 2012-04-18 14:32:39,396 [TELNET: 172.16.0.34] Sending IAC DO SGA (253 3)
  40. 2012-04-18 14:32:39,396 [TELNET: 172.16.0.34] Received IAC WILL ECHO (251 1)
  41. 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Sending IAC DO ECHO (253 1)
  42. 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Received IAC DO NAWS (253 31)
  43. 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Sending IAC WILL NAWS (251 31)
  44. 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Sending SB '\xff\xfa\x1f\xff\xff\xff\xff\xff\xf0'
  45. 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Received IAC DO TTYPE (253 24)
  46. 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Sending IAC WILL TTYPE (251 24)
  47. 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] on_read: '\r\ntelnet session telnet0 on /dev/ptyb0\r\n\r\n'
  48. 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Received IAC WILL SGA (251 3)
  49. 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Sending IAC DO SGA (253 3)
  50. 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Received IAC WILL ECHO (251 1)
  51. 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Sending IAC DO ECHO (253 1)
  52. 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Received IAC DO NAWS (253 31)
  53. 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Sending IAC WILL NAWS (251 31)
  54. 2012-04-18 14:32:39,414 [TELNET: 172.16.0.34] Sending SB '\xff\xfa\x1f\xff\xff\xff\xff\xff\xf0'
  55. 2012-04-18 14:32:39,414 [TELNET: 172.16.0.34] Received IAC DO TTYPE (253 24)
  56. 2012-04-18 14:32:39,414 [TELNET: 172.16.0.34] Sending IAC WILL TTYPE (251 24)
  57. 2012-04-18 14:32:39,435 [TELNET: 172.16.0.34] on_read: '#\r\nkiev-n1-bsw4\r\n#\r\n\r\n'
  58. 2012-04-18 14:32:39,475 [TELNET: 172.16.0.34] on_read: 'login: '
  59. 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] match '([Uu]sername|[Ll]ogin):'
  60. 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] event(USERNAME)
  61. 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] ==> USERNAME
  62. 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] set_patterns([('[Pp]assword:', 'PASSWORD'), ('^(\\*\\s)?\\S+? #', 'PROMPT')])
  63. 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] submit(u'amt',bulk_lines=None)
  64. 2012-04-18 14:32:39,478 [TELNET: 172.16.0.34] on_read: 'amt\r\n\r'
  65. 2012-04-18 14:32:39,515 [TELNET: 172.16.0.34] on_read: 'password: '
  66. 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] match '[Pp]assword:'
  67. 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] event(PASSWORD)
  68. 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] ==> PASSWORD
  69. 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] set_patterns([('^(\\*\\s)?\\S+? #', 'PROMPT'), ('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('(^Press <SPACE> to continue or <Q> to quit:)', 'PAGER')])
  70. 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] submit(u'twtwan',bulk_lines=None)
  71. 2012-04-18 14:32:39,521 [TELNET: 172.16.0.34] on_read: '\r\n\r\r\n'
  72. 2012-04-18 14:32:39,564 [TELNET: 172.16.0.34] on_read: "\rExtremeXOS\r\nCopyright (C) 2000-2011 Extreme Networks. All rights reserved.\r\nProtected by US Patent Nos: 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,954,436; 6,977,891; 6,980,550; 6,981,174; 7,003,705; 7,017,082; 7,046,665; 7,126,923; 7,142,509; 7,149,217; 7,152,124; 7,154,861; 7,245,619; 7,245,629; 7,269,135.\r\n==============================================================================\r\n\r\nPress the <tab> or '?' key at any time for completions.\r\nRemember to save your configuration changes.\r\n\r\n\r\n"
  73. 2012-04-18 14:32:39,576 [TELNET: 172.16.0.34] on_read: 'kiev-n1-bsw4.comstar-ua.net.1 # '
  74. 2012-04-18 14:32:39,576 [TELNET: 172.16.0.34] match '^(\*\s)?\S+? #'
  75. 2012-04-18 14:32:39,576 [TELNET: 172.16.0.34] event(PROMPT)
  76. 2012-04-18 14:32:39,576 [TELNET: 172.16.0.34] ==> PROMPT
  77. 2012-04-18 14:32:39,577 [TELNET: 172.16.0.34] on_PROMPT_enter
  78. 2012-04-18 14:32:39,577 [TELNET: 172.16.0.34] Using prompt pattern: ^(\*\s)?\S+? #
  79. 2012-04-18 14:32:39,577 [TELNET: 172.16.0.34] set_patterns([('^(\\*\\s)?\\S+? #', 'PROMPT'), ('(^Press <SPACE> to continue or <Q> to quit:)', 'PAGER')])
  80. 2012-04-18 14:32:39,607 [script-172.16.0.34-Extreme.XOS.get_interfaces] CLI Provider is ready
  81. 2012-04-18 14:32:39,607 [script-172.16.0.34-Extreme.XOS.get_interfaces] Disable paging
  82. 2012-04-18 14:32:39,607 [script-172.16.0.34-Extreme.XOS.get_interfaces] cli(disable clipaging)
  83. 2012-04-18 14:32:39,607 [TELNET: 172.16.0.34] submit('disable clipaging',bulk_lines=None)
  84. 2012-04-18 14:32:40,578 Tick
  85. 2012-04-18 14:32:40,578 Resetting wait ticks
  86. 2012-04-18 14:32:40,580 [TELNET: 172.16.0.34] on_read: 'disable clipaging\r\n\r'
  87. 2012-04-18 14:32:40,582 [TELNET: 172.16.0.34] on_read: 'kiev-n1-bsw4.comstar-ua.net.2 # '
  88. 2012-04-18 14:32:40,582 [TELNET: 172.16.0.34] match '^(\*\s)?\S+? #'
  89. 2012-04-18 14:32:40,582 [TELNET: 172.16.0.34] event(PROMPT)
  90. 2012-04-18 14:32:40,608 [script-172.16.0.34-Extreme.XOS.get_interfaces] cli(disable clipaging) returns:
  91. ===[ disable clipaging ]================================================
  92. ''
  93. ========================================================================
  94. 2012-04-18 14:32:40,608 [TELNET: 172.16.0.34] submit('show vlan detail',bulk_lines=None)
  95. 2012-04-18 14:32:41,583 Tick
  96. 2012-04-18 14:32:41,583 Resetting wait ticks
  97. 2012-04-18 14:32:41,585 [TELNET: 172.16.0.34] on_read: 'show vlan detail\r\n\r'
  98. 2012-04-18 14:32:41,637 [TELNET: 172.16.0.34] on_read: 'VLAN Interface with name Default created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
  99. 2012-04-18 14:32:41,672 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
  100. 2012-04-18 14:32:41,693 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\t'
  101. 2012-04-18 14:32:41,712 [TELNET: 172.16.0.34] on_read: 'None'
  102. 2012-04-18 14:32:41,725 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
  103. 2012-04-18 14:32:41,731 [TELNET: 172.16.0.34] on_read: 's0('
  104. 2012-04-18 14:32:41,735 [TELNET: 172.16.0.34] on_read: 'Disabled'
  105. 2012-04-18 14:32:41,737 [TELNET: 172.16.0.34] on_read: ',Auto-bind) '
  106. 2012-04-18 14:32:41,784 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
  107. 2012-04-18 14:32:41,895 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 0. \t (Number of active ports=0)\r\n'
  108. 2012-04-18 14:32:41,925 [TELNET: 172.16.0.34] on_read: '\r\n'
  109. 2012-04-18 14:32:41,942 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name ITSystems created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1502 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
  110. 2012-04-18 14:32:41,983 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
  111. 2012-04-18 14:32:42,006 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\t'
  112. 2012-04-18 14:32:42,012 [TELNET: 172.16.0.34] on_read: 'None'
  113. 2012-04-18 14:32:42,039 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
  114. 2012-04-18 14:32:42,064 [TELNET: 172.16.0.34] on_read: 'None'
  115. 2012-04-18 14:32:42,081 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols'
  116. 2012-04-18 14:32:42,095 [TELNET: 172.16.0.34] on_read: '\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
  117. 2012-04-18 14:32:42,201 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 2. \t (Number of active ports=2)'
  118. 2012-04-18 14:32:42,249 [TELNET: 172.16.0.34] on_read: '\r\n Untag: '
  119. 2012-04-18 14:32:42,261 [TELNET: 172.16.0.34] on_read: ' *45g'
  120. 2012-04-18 14:32:42,292 [TELNET: 172.16.0.34] on_read: '\r\n Tag: *1g'
  121. 2012-04-18 14:32:42,370 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port'
  122. 2012-04-18 14:32:42,382 [TELNET: 172.16.0.34] on_read: '\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
  123. 2012-04-18 14:32:42,403 [TELNET: 172.16.0.34] on_read: '\r\n'
  124. 2012-04-18 14:32:42,415 [TELNET: 172.16.0.34] on_read: '\r\n'
  125. 2012-04-18 14:32:42,444 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\n'
  126. 2012-04-18 14:32:42,448 [TELNET: 172.16.0.34] on_read: 'VLAN Interface with name Manage created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1000 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
  127. 2012-04-18 14:32:42,491 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
  128. 2012-04-18 14:32:42,503 [TELNET: 172.16.0.34] on_read: '\r\n\tPrimary IP : 172.16.0.34/28'
  129. 2012-04-18 14:32:42,519 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\tNone'
  130. 2012-04-18 14:32:42,535 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
  131. 2012-04-18 14:32:42,539 [TELNET: 172.16.0.34] on_read: 'None'
  132. 2012-04-18 14:32:42,567 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
  133. 2012-04-18 14:32:42,686 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 1. \t (Number of active ports=1)'
  134. 2012-04-18 14:32:42,686 Tick
  135. 2012-04-18 14:32:42,686 Resetting wait ticks
  136. 2012-04-18 14:32:42,747 [TELNET: 172.16.0.34] on_read: '\r\n Tag: *1g'
  137. 2012-04-18 14:32:42,778 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
  138. 2012-04-18 14:32:42,822 [TELNET: 172.16.0.34] on_read: '\r\n'
  139. 2012-04-18 14:32:42,833 [TELNET: 172.16.0.34] on_read: '\r\n'
  140. 2012-04-18 14:32:42,862 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name Mgmt created by user\r\n\tAdmin State:\tEnabled '
  141. 2012-04-18 14:32:42,865 [TELNET: 172.16.0.34] on_read: '\tTagging:\t802.1Q Tag 4095 \r\n\tDescription:\tManagement VLAN \r\n\tVirtual router:\tVR-Mgmt'
  142. 2012-04-18 14:32:42,905 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
  143. 2012-04-18 14:32:42,924 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\tNone'
  144. 2012-04-18 14:32:42,974 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\tNone'
  145. 2012-04-18 14:32:42,997 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tFlood Rate Limit QosProfile: None configured'
  146. 2012-04-18 14:32:43,114 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 1. \t (Number of active ports=1)\r\n\t Untag: Mgmt-port on Mgmt is active\r\n'
  147. 2012-04-18 14:32:43,134 [TELNET: 172.16.0.34] on_read: '\r\n\r\n'
  148. 2012-04-18 14:32:43,164 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name MYST created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1737 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
  149. 2012-04-18 14:32:43,205 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
  150. 2012-04-18 14:32:43,223 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\t'
  151. 2012-04-18 14:32:43,236 [TELNET: 172.16.0.34] on_read: 'None'
  152. 2012-04-18 14:32:43,253 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
  153. 2012-04-18 14:32:43,276 [TELNET: 172.16.0.34] on_read: 'None'
  154. 2012-04-18 14:32:43,297 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
  155. 2012-04-18 14:32:43,404 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 2. \t (Number of active ports=2)'
  156. 2012-04-18 14:32:43,467 [TELNET: 172.16.0.34] on_read: '\r\n Tag: *46(MYST_IPT)'
  157. 2012-04-18 14:32:43,515 [TELNET: 172.16.0.34] on_read: ', *1g'
  158. 2012-04-18 14:32:43,549 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
  159. 2012-04-18 14:32:43,590 [TELNET: 172.16.0.34] on_read: '\r\n'
  160. 2012-04-18 14:32:43,597 [TELNET: 172.16.0.34] on_read: '\r\n'
  161. 2012-04-18 14:32:43,628 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name Sonico_IPT created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1501 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
  162. 2012-04-18 14:32:43,663 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
  163. 2012-04-18 14:32:43,689 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\t'
  164. 2012-04-18 14:32:43,690 Tick
  165. 2012-04-18 14:32:43,690 Resetting wait ticks
  166. 2012-04-18 14:32:43,719 [TELNET: 172.16.0.34] on_read: 'None\r\n\tSTPD: \t\t'
  167. 2012-04-18 14:32:43,741 [TELNET: 172.16.0.34] on_read: 'None'
  168. 2012-04-18 14:32:43,752 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols'
  169. 2012-04-18 14:32:43,762 [TELNET: 172.16.0.34] on_read: '\r\n\tLoopback: \tDisabled'
  170. 2012-04-18 14:32:43,763 [TELNET: 172.16.0.34] on_read: '\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
  171. 2012-04-18 14:32:43,871 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 2. \t (Number of active ports=2)'
  172. 2012-04-18 14:32:43,934 [TELNET: 172.16.0.34] on_read: '\r\n Tag: *47(Soniko-Full_IPT)'
  173. 2012-04-18 14:32:43,976 [TELNET: 172.16.0.34] on_read: ', *1g'
  174. 2012-04-18 14:32:44,019 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
  175. 2012-04-18 14:32:44,052 [TELNET: 172.16.0.34] on_read: '\r\n'
  176. 2012-04-18 14:32:44,077 [TELNET: 172.16.0.34] on_read: '\r\n'
  177. 2012-04-18 14:32:44,131 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name Telenet_IPT created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1740 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
  178. 2012-04-18 14:32:44,150 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
  179. 2012-04-18 14:32:44,183 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\tNone'
  180. 2012-04-18 14:32:44,203 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
  181. 2012-04-18 14:32:44,216 [TELNET: 172.16.0.34] on_read: 'None'
  182. 2012-04-18 14:32:44,247 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
  183. 2012-04-18 14:32:44,361 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 2. \t (Number of active ports=2)'
  184. 2012-04-18 14:32:44,409 [TELNET: 172.16.0.34] on_read: '\r\n Tag: '
  185. 2012-04-18 14:32:44,433 [TELNET: 172.16.0.34] on_read: '*47(Soniko-Full_IPT)'
  186. 2012-04-18 14:32:44,453 [TELNET: 172.16.0.34] on_read: ', *1g'
  187. 2012-04-18 14:32:44,496 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
  188. 2012-04-18 14:32:44,519 [TELNET: 172.16.0.34] on_read: '\r\n'
  189. 2012-04-18 14:32:44,534 [TELNET: 172.16.0.34] on_read: '\r\n'
  190. 2012-04-18 14:32:44,535 [TELNET: 172.16.0.34] on_read: 'kiev-n1-bsw4.comstar-ua.net.3 # '
  191. 2012-04-18 14:32:44,536 [TELNET: 172.16.0.34] match '^(\*\s)?\S+? #'
  192. 2012-04-18 14:32:44,536 [TELNET: 172.16.0.34] event(PROMPT)
  193. 2012-04-18 14:32:44,573 [script-172.16.0.34-Extreme.XOS.get_interfaces] cli(show vlan detail) returns:
  194. ===[ show vlan detail ]=================================================
  195. 'VLAN Interface with name Default created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\ts0(Disabled,Auto-bind) \n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 0. \t (Number of active ports=0)\n\n#\n#\nVLAN Interface with name ITSystems created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1502 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 2. \t (Number of active ports=2)\n Untag: *45g\n Tag: *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (e) Private-VLAN End Point Port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n\n#\n#\nVLAN Interface with name Manage created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1000 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tPrimary IP : 172.16.0.34/28\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 1. \t (Number of active ports=1)\n Tag: *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (e) Private-VLAN End Point Port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n\n#\n#\nVLAN Interface with name Mgmt created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 4095 \n\tDescription:\tManagement VLAN \n\tVirtual router:\tVR-Mgmt\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 1. \t (Number of active ports=1)\n\t Untag: Mgmt-port on Mgmt is active\n\n\n#\n#\nVLAN Interface with name MYST created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1737 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 2. \t (Number of active ports=2)\n Tag: *46(MYST_IPT), *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n
  196. ========================================================================
  197. 2012-04-18 14:32:44,588 [script-172.16.0.34-Extreme.XOS.get_interfaces] Script traceback:
  198. <type 'exceptions.KeyError'>
  199. 'untagged'
  200. START OF TRACEBACK
  201. ------------------------------------------------------------------------
  202. File: /opt/noc/sa/profiles/Extreme/XOS/get_interfaces.py (Line: 86)
  203. Function: execute
  204. 79 match = self.rx_tagged.match(l)
  205. 80 if match:
  206. 81 current["tagged"] += self.parse_interfaces(match.group("ifaces"))
  207. 82 continue
  208. 83 # Process untagged
  209. 84 match = self.rx_untagged.match(l)
  210. 85 if match:
  211. 86 ==> current["untagged"] += self.parse_interfaces(match.group("ifaces"))
  212. 87 continue
  213. 88 # Save last VLAN
  214. 89 if current:
  215. 90 vlans += [current]
  216. 91 # Process parsed data
  217. 92 interfaces = []
  218. Variables:
  219. self = <Script(script-172.16.0.34-Extreme.XOS.get_interfaces, started 140219681998592)>
  220. l = 'Untag: *45g'
  221. current = {}
  222. v = 'VLAN Interface with name Default created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\ts0(Disabled,Auto-bind) \n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 0. \t (Number of active ports=0)\n\n#\n#\nVLAN Interface with name ITSystems created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1502 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 2. \t (Number of active ports=2)\n Untag: *45g\n Tag: *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (e) Private-VLAN End Point Port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n\n#\n#\nVLAN Interface with name Manage created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1000 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tPrimary IP : 172.16.0.34/28\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 1. \t (Number of active ports=1)\n Tag: *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (e) Private-VLAN End Point Port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n\n#\n#\nVLAN Interface with name Mgmt created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 4095 \n\tDescription:\tManagement VLAN \n\tVirtual router:\tVR-Mgmt\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 1. \t (Number of active ports=1)\n\t Untag: Mgmt-port on Mgmt is active\n\n\n#\n#\nVLAN Interface with name MYST created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1737 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 2. \t (Number of active ports=2)\n Tag: *46(MYST_IPT), *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic
  223. vlans = []
  224. match = <_sre.SRE_Match object at 0x2d2dc60>
  225. ------------------------------------------------------------------------
  226. File: /opt/noc/sa/script/script.py (Line: 412)
  227. Function: guarded_run
  228. 405 return result
  229. 406 except KeyError:
  230. 407 self.debug("Not in call cache: %r, %r" % (self.name,
  231. 408 self.kwargs))
  232. 409 pass
  233. 410 # Calling script body
  234. 411 self._thread_id = thread.get_ident()
  235. 412 ==> result = self.execute(**self.kwargs)
  236. 413 # Enforce interface result checking
  237. 414 for i in self.implements:
  238. 415 result = i.script_clean_result(self.profile, result)
  239. 416 # Cache result when required
  240. 417 if self.cache and self.parent is not None:
  241. 418 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  242. Variables:
  243. i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x260e950>
  244. self = <Script(script-172.16.0.34-Extreme.XOS.get_interfaces, started 140219681998592)>
  245. ------------------------------------------------------------------------
  246. File: /opt/noc/sa/script/script.py (Line: 435)
  247. Function: run
  248. 428
  249. 429 def run(self):
  250. 430 """Script thread worker method"""
  251. 431 self.debug("Running")
  252. 432 result = None
  253. 433 try:
  254. 434 with self.cancelable():
  255. 435 ==> result = self.guarded_run()
  256. 436 except TimeOutError:
  257. 437 self.error("Timed out")
  258. 438 self.e_timeout = True
  259. 439 except CancelledError:
  260. 440 self.error("Cancelled")
  261. 441 self.e_cancel = True
  262. Variables:
  263. self = <Script(script-172.16.0.34-Extreme.XOS.get_interfaces, started 140219681998592)>
  264. r = ["<type 'exceptions.KeyError'>", "'untagged'"]
  265. result = None
  266. v = KeyError('untagged',)
  267. tb = <traceback object at 0x2d3c758>
  268. t = <type 'exceptions.KeyError'>
  269. ------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement