Advertisement
Guest User

Untitled

a guest
Jan 16th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.54 KB | None | 0 0
  1. START OF TRACEBACK
  2. ------------------------------------------------------------------------
  3. File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 51)
  4. Function: get_ports_attrs
  5. 44 "altn": "alternate",
  6. 45 "back": "backup",
  7. 46 "root": "root",
  8. 47 "desg": "designated",
  9. 48 "???": "master",
  10. 49 "????": "nonstp",
  11. 50 "_": "unknown"
  12. 51 ==> }[R[1].lower()], # @todo: refine roles
  13. 52 "state": {
  14. 53 "dis": "disabled",
  15. 54 "blk": "discarding",
  16. 55 "bkn": "broken",
  17. 56 "lrn": "learning",
  18. 57 "??": "learning",
  19. Variables:
  20. instance_sep = '\nVLAN'
  21. settings = '128.1'
  22. I = '0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n Thi
  23. s bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)\n
  24. Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  25. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------------
  26. ---- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi0/2
  27. 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n'
  28. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  29. cli_stp = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n
  30. This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ex
  31. t 2)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  32. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
  33. ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
  34. 0/2 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n\nVLAN0235\n Spanning tree enabled protocol ieee\n Root ID Priority 3
  35. 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
  36. Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33003 (priority 32768 sys-id-ext 235)\n Address 000b.be3a.5200\n He
  37. llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
  38. Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
  39. -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
  40. a.5200 128.26 \n\n\nVLAN0413\n Spanning tree enabled protocol ieee\n Root ID Priority 33181\n Address 000b.be3a.5200\n Th
  41. is bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33181 (priority 32768 sys-id-ext 413
  42. )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  43. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------
  44. ------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 33181 000b.be3a.5200 128.1 \nGi0/2
  45. 128.26 4 FWD 0 33181 000b.be3a.5200 128.26 \n\n\nVLAN0777\n Spanning tree enabled protocol ieee\n Root ID Priority 3354
  46. 5\n Address 000a.b8fb.6a00\n Cost 37\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max Ag
  47. e 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33545 (priority 32768 sys-id-ext 777)\n Address 000b.be3a.5200\n Hello
  48. Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Por
  49. t ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- --------------------
  50. --------\nFa0/1 128.1 19 FWD 18 33545 0022.56ab.6700 128.4 \nFa0/4 128.4 19 FWD 37 33545 000b.be3a.5
  51. 200 128.4 \nGi0/2 128.26 4 FWD 37 33545 000b.be3a.5200 128.26 \n\n\nVLAN0781\n Spanning tree enabled protocol ieee\n Root ID
  52. Priority 33549\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward
  53. Delay 15 sec\n\n Bridge ID Priority 33549 (priority 32768 sys-id-ext 781)\n Address 000b.be3a.5200\n Hello Time 2 sec Max
  54. Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  55. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  56. 128.1 19 FWD 0 33549 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 33549 000b.be3a.5200 128.26 \n\n\n
  57. VLAN1505\n Spanning tree enabled protocol ieee\n Root ID Priority 34273\n Address 000b.be3a.5200\n This bridge is the root
  58. \n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34273 (priority 32768 sys-id-ext 1505)\n Addr
  59. ess 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID
  60. Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- ---
  61. ------ --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34273 000b.be3a.5200 128.1 \nGi0/2 128.26
  62. 4 FWD 0 34273 000b.be3a.5200 128.26 \n\n\nVLAN1811\n Spanning tree enabled protocol ieee\n Root ID Priority 34579\n Addr
  63. ess 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority
  64. 34579 (priority 32768 sys-id-ext 1811)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n
  65. Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
  66. Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD
  67. 0 34579 000b.be3a.5200 128.1 \nFa0/3 128.3 19 FWD 0 34579 000b.be3a.5200 128.3 \n\n\nVLAN1953\n Spanning tree enabled prot
  68. ocol ieee\n Root ID Priority 34721\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max
  69. Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34721 (priority 32768 sys-id-ext 1953)\n Address 000b.be3a.5200\n H
  70. ello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
  71. Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -----------------
  72. --- --------\nFa0/1 128.1 19 FWD 0 34721 000b.be3a.5200 128.1 \n\n\nVLAN2000\n Spanning tree enabled protocol ieee\n Root ID
  73. Priority 34768\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward
  74. Delay 15 sec\n\n Bridge ID Priority 34768 (priority 32768 sys-id-ext 2000)\n Address 000b.be3a.5200\n Hello Time 2 sec Ma
  75. x Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  76. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  77. 128.1 19 FWD 0 34768 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 34768 000b.be3a.5200 128.26 \n\n\
  78. nVLAN2073\n Spanning tree enabled protocol ieee\n Root ID Priority 34841\n Address 000b.be3a.5200\n This bridge is the roo
  79. t\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34841 (priority 32768 sys-id-ext 2073)\n Add
  80. ress 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID
  81. Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --
  82. ------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34841 000b.be3a.5200 128.1 \nGi0/2 128.26
  83. 4 FWD 0 34841 000b.be3a.5200 128.26 \n\n\nVLAN2074\n Spanning tree enabled protocol ieee\n Root ID Priority 34842\n Add
  84. ress 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority
  85. 34842 (priority 32768 sys-id-ext 2074)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n
  86. Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
  87. Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD
  88. 0 34842 000b.be3a.5200 128.1 \n\n\nVLAN2222\n Spanning tree enabled protocol ieee\n Root ID Priority 34990\n Address 000b.be3a.52
  89. 00\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34990 (priority 3
  90. 2768 sys-id-ext 2222)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time
  91. 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID
  92. Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34990 000b.be3a.
  93. 5200 128.1 \nGi0/2 128.26 4 FWD 0 34990 000b.be3a.5200 128.26 \n\n\nVLAN3100\n Spanning tree enabled protocol ieee\n Root ID
  94. Priority 35868\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward
  95. Delay 15 sec\n\n Bridge ID Priority 35868 (priority 32768 sys-id-ext 3100)\n Address 000b.be3a.5200\n Hello Time 2 sec M
  96. ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  97. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  98. 128.1 19 FWD 0 35868 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 35868 000b.be3a.5200 128.26 \n\n
  99. '
  100. instance_id = 2
  101. R = ['Fa0/1', '128.1', '19', 'FWD', '0', '32770 000b.be3a.5200', '128.1']
  102. interface = 'Fa 0/1'
  103. ports = {2: {}}
  104. _ = ' Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n This brid
  105. ge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)\n
  106. Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port
  107. ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -
  108. ------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi0/2
  109. 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n'
  110. ------------------------------------------------------------------------
  111. File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 79)
  112. Function: process_pvst
  113. 72 r"Port path cost (?P<cost>\d+), Port priority (?P<priority>\d+), Port Identifier (?P<port_id>\S+)\..+?"
  114. 73 r"Designated bridge has priority (?P<designated_bridge_priority>\d+), address (?P<designated_bridge_id>\S+).+?"
  115. 74 r"Designated port id is (?P<designated_port_id>\S+), designated path cost \d+",
  116. 75 re.DOTALL | re.IGNORECASE | re.MULTILINE)
  117. 76
  118. 77 def process_pvst(self, cli_stp, proto):
  119. 78 # Save port attributes
  120. 79 ==> ports = self.get_ports_attrs(cli_stp, "\nVLAN")
  121. 80 #
  122. 81 r = {
  123. 82 "mode": proto,
  124. 83 "instances": []
  125. 84 }
  126. 85 interfaces = {}
  127. Variables:
  128. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  129. cli_stp = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n
  130. This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ex
  131. t 2)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  132. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
  133. ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
  134. 0/2 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n\nVLAN0235\n Spanning tree enabled protocol ieee\n Root ID Priority 3
  135. 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
  136. Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33003 (priority 32768 sys-id-ext 235)\n Address 000b.be3a.5200\n He
  137. llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
  138. Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
  139. -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
  140. a.5200 128.26 \n\n\nVLAN0413\n Spanning tree enabled protocol ieee\n Root ID Priority 33181\n Address 000b.be3a.5200\n Th
  141. is bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33181 (priority 32768 sys-id-ext 413
  142. )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  143. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------
  144. ------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 33181 000b.be3a.5200 128.1 \nGi0/2
  145. 128.26 4 FWD 0 33181 000b.be3a.5200 128.26 \n\n\nVLAN0777\n Spanning tree enabled protocol ieee\n Root ID Priority 3354
  146. 5\n Address 000a.b8fb.6a00\n Cost 37\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max Ag
  147. e 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33545 (priority 32768 sys-id-ext 777)\n Address 000b.be3a.5200\n Hello
  148. Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Por
  149. t ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- --------------------
  150. --------\nFa0/1 128.1 19 FWD 18 33545 0022.56ab.6700 128.4 \nFa0/4 128.4 19 FWD 37 33545 000b.be3a.5
  151. 200 128.4 \nGi0/2 128.26 4 FWD 37 33545 000b.be3a.5200 128.26 \n\n\nVLAN0781\n Spanning tree enabled protocol ieee\n Root ID
  152. Priority 33549\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward
  153. Delay 15 sec\n\n Bridge ID Priority 33549 (priority 32768 sys-id-ext 781)\n Address 000b.be3a.5200\n Hello Time 2 sec Max
  154. Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  155. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  156. 128.1 19 FWD 0 33549 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 33549 000b.be3a.5200 128.26 \n\n\n
  157. VLAN1505\n Spanning tree enabled protocol ieee\n Root ID Priority 34273\n Address 000b.be3a.5200\n This bridge is the root
  158. \n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34273 (priority 32768 sys-id-ext 1505)\n Addr
  159. ess 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID
  160. Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- ---
  161. ------ --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34273 000b.be3a.5200 128.1 \nGi0/2 128.26
  162. 4 FWD 0 34273 000b.be3a.5200 128.26 \n\n\nVLAN1811\n Spanning tree enabled protocol ieee\n Root ID Priority 34579\n Addr
  163. ess 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority
  164. 34579 (priority 32768 sys-id-ext 1811)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n
  165. Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
  166. Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD
  167. 0 34579 000b.be3a.5200 128.1 \nFa0/3 128.3 19 FWD 0 34579 000b.be3a.5200 128.3 \n\n\nVLAN1953\n Spanning tree enabled prot
  168. ocol ieee\n Root ID Priority 34721\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max
  169. Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34721 (priority 32768 sys-id-ext 1953)\n Address 000b.be3a.5200\n H
  170. ello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
  171. Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -----------------
  172. --- --------\nFa0/1 128.1 19 FWD 0 34721 000b.be3a.5200 128.1 \n\n\nVLAN2000\n Spanning tree enabled protocol ieee\n Root ID
  173. Priority 34768\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward
  174. Delay 15 sec\n\n Bridge ID Priority 34768 (priority 32768 sys-id-ext 2000)\n Address 000b.be3a.5200\n Hello Time 2 sec Ma
  175. x Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  176. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  177. 128.1 19 FWD 0 34768 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 34768 000b.be3a.5200 128.26 \n\n\
  178. nVLAN2073\n Spanning tree enabled protocol ieee\n Root ID Priority 34841\n Address 000b.be3a.5200\n This bridge is the roo
  179. t\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34841 (priority 32768 sys-id-ext 2073)\n Add
  180. ress 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID
  181. Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --
  182. ------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34841 000b.be3a.5200 128.1 \nGi0/2 128.26
  183. 4 FWD 0 34841 000b.be3a.5200 128.26 \n\n\nVLAN2074\n Spanning tree enabled protocol ieee\n Root ID Priority 34842\n Add
  184. ress 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority
  185. 34842 (priority 32768 sys-id-ext 2074)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n
  186. Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
  187. Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD
  188. 0 34842 000b.be3a.5200 128.1 \n\n\nVLAN2222\n Spanning tree enabled protocol ieee\n Root ID Priority 34990\n Address 000b.be3a.52
  189. 00\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34990 (priority 3
  190. 2768 sys-id-ext 2222)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time
  191. 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID
  192. Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34990 000b.be3a.
  193. 5200 128.1 \nGi0/2 128.26 4 FWD 0 34990 000b.be3a.5200 128.26 \n\n\nVLAN3100\n Spanning tree enabled protocol ieee\n Root ID
  194. Priority 35868\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward
  195. Delay 15 sec\n\n Bridge ID Priority 35868 (priority 32768 sys-id-ext 3100)\n Address 000b.be3a.5200\n Hello Time 2 sec M
  196. ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  197. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  198. 128.1 19 FWD 0 35868 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 35868 000b.be3a.5200 128.26 \n\n
  199. '
  200. proto = 'PVST+'
  201. ------------------------------------------------------------------------
  202. File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 199)
  203. Function: execute
  204. 192 for I in r["instances"]:
  205. 193 I["interfaces"] = interfaces[I["id"]]
  206. 194 return r
  207. 195
  208. 196 def execute(self):
  209. 197 v = self.cli("show spanning-tree")
  210. 198 if "Spanning tree enabled protocol ieee" in v:
  211. 199 ==> return self.process_pvst(v, proto="PVST+")
  212. 200 elif "Spanning tree enabled protocol rstp" in v:
  213. 201 return self.process_pvst(v, proto="rapid-PVST+")
  214. 202 elif "Spanning tree enabled protocol mstp" in v:
  215. 203 return self.process_mstp(v)
  216. 204 elif "No spanning tree instance exists" in v \
  217. 205 or "No spanning tree instances exist" in v:
  218. Variables:
  219. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  220. v = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n
  221. This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ex
  222. t 2)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  223. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
  224. ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
  225. 0/2 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n\nVLAN0235\n Spanning tree enabled protocol ieee\n Root ID Priority 3
  226. ------------------------------------------------------------------------
  227. File: /opt/noc/sa/script/script.py (Line: 417)
  228. Function: guarded_run
  229. 410 return result
  230. 411 except KeyError:
  231. 412 self.debug("Not in call cache: %r, %r" % (self.name,
  232. 413 self.kwargs))
  233. 414 pass
  234. 415 # Calling script body
  235. 416 self._thread_id = thread.get_ident()
  236. 417 ==> result = self.execute(**self.kwargs)
  237. 418 # Enforce interface result checking
  238. 419 for i in self.implements:
  239. 420 result = i.script_clean_result(self.profile, result)
  240. 421 # Cache result when required
  241. 422 if self.cache and self.parent is not None:
  242. 423 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  243. Variables:
  244. i = <noc.sa.interfaces.igetspanningtree.IGetSpanningTree object at 0x2343850>
  245. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  246. ------------------------------------------------------------------------
  247. File: /opt/noc/sa/script/script.py (Line: 440)
  248. Function: run
  249. 433
  250. 434 def run(self):
  251. 435 """Script thread worker method"""
  252. 436 self.debug("Running")
  253. 437 result = None
  254. 438 try:
  255. 439 with self.cancelable():
  256. 440 ==> result = self.guarded_run()
  257. 441 except self.TimeOutError:
  258. 442 self.error("Timed out")
  259. 443 self.e_timeout = True
  260. 444 except CancelledError:
  261. 445 self.error("Cancelled")
  262. 446 self.e_cancel = True
  263. Variables:
  264. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  265. r = ["<type 'exceptions.KeyError'>", "'128.1'"]
  266. result = None
  267. v = KeyError('128.1',)
  268. tb = <traceback object at 0x7f6bf40c2758>
  269. t = <type 'exceptions.KeyError'>
  270. ------------------------------------------------------------------------
  271. END OF TRACEBACK
  272. 2013-01-16 10:30:31,737 MRT task=3096710/3114236 object=cct01-med-ezh(10.12.174.33) script=Cisco.IOS.get_spanning_tree status=failed code=14 error=<type 'exce
  273. ptions.KeyError'>
  274. '128.1'
  275. START OF TRACEBACK
  276. ------------------------------------------------------------------------
  277. File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 51)
  278. Function: get_ports_attrs
  279. 44 "altn": "alternate",
  280. 45 "back": "backup",
  281. 46 "root": "root",
  282. 47 "desg": "designated",
  283. 48 "???": "master",
  284. 49 "????": "nonstp",
  285. 50 "_": "unknown"
  286. 51 ==> }[R[1].lower()], # @todo: refine roles
  287. 52 "state": {
  288. 53 "dis": "disabled",
  289. 54 "blk": "discarding",
  290. 55 "bkn": "broken",
  291. 56 "lrn": "learning",
  292. 57 "??": "learning",
  293. Variables:
  294. instance_sep = '\nVLAN'
  295. settings = '128.1'
  296. I = '0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n Thi
  297. s bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)\n
  298. Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  299. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------------
  300. ---- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi0/2
  301. 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n'
  302. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  303. cli_stp = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n
  304. This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ex
  305. t 2)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  306. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
  307. ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
  308. 0/2 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n\nVLAN0235\n Spanning tree enabled protocol ieee\n Root ID Priority 3
  309. 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
  310. Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33003 (priority 32768 sys-id-ext 235)\n Address 000b.be3a.5200\n He
  311. llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
  312. Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
  313. -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
  314. a.5200 128.26 \n\n\nVLAN0413\n Spanning tree enabled protocol ieee\n Root ID Priority 33181\n Address 000b.be3a.5200\n Th
  315. is bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33181 (priority 32768 sys-id-ext 413
  316. )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  317. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------
  318. ------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 33181 000b.be3a.5200 128.1 \nGi0/2
  319. 128.26 4 FWD 0 33181 000b.be3a.5200 128.26 \n\n\nVLAN0777\n Spanning tree enabled protocol ieee\n Root ID Priority 3354
  320. 5\n Address 000a.b8fb.6a00\n Cost 37\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max Ag
  321. e 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33545 (priority 32768 sys-id-ext 777)\n Address 000b.be3a.5200\n Hello
  322. Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Por
  323. t ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- --------------------
  324. --------\nFa0/1 128.1 19 FWD 18 33545 0022.56ab.6700 128.4 \nFa0/4 128.4 19 FWD 37 33545 000b.be3a.5
  325. 200 128.4 \nGi0/2 128.26 4 FWD 37 33545 000b.be3a.5200 128.26 \n\n\nVLAN0781\n Spanning tree enabled protocol ieee\n Root ID
  326. Priority 33549\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward
  327. Delay 15 sec\n\n Bridge ID Priority 33549 (priority 32768 sys-id-ext 781)\n Address 000b.be3a.5200\n Hello Time 2 sec Max
  328. Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  329. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  330. 128.1 19 FWD 0 33549 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 33549 000b.be3a.5200 128.26 \n\n\n
  331. VLAN1505\n Spanning tree enabled protocol ieee\n Root ID Priority 34273\n Address 000b.be3a.5200\n This bridge is the root
  332. \n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 34273 (priority 32768 sys-id-ext 1505)\n Addr
  333. ess 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID
  334. Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- ---
  335. ------ --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34273 000b.be3a.5200 128.1 \nGi0/2 128.26
  336. 4 FWD 0 34273 000b.be3a.5200 128.26 \n\n\nVLAN1811\n Spanning tree enabled protocol ieee\n Root ID Priority 34579\n Addr
  337. ess 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority
  338. 34579 (priority 32768 sys-id-ext 1811)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n
  339. Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
  340. Delay 15 sec\n\n Bridge ID Priority 35868 (priority 32768 sys-id-ext 3100)\n Address 000b.be3a.5200\n Hello Time 2 sec M
  341. ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  342. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  343. 128.1 19 FWD 0 35868 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 35868 000b.be3a.5200 128.26 \n\n
  344. '
  345. instance_id = 2
  346. R = ['Fa0/1', '128.1', '19', 'FWD', '0', '32770 000b.be3a.5200', '128.1']
  347. interface = 'Fa 0/1'
  348. ports = {2: {}}
  349. _ = ' Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n This brid
  350. ge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)\n
  351. Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port
  352. ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -
  353. ------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi0/2
  354. 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n'
  355. ------------------------------------------------------------------------
  356. File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 79)
  357. Function: process_pvst
  358. 72 r"Port path cost (?P<cost>\d+), Port priority (?P<priority>\d+), Port Identifier (?P<port_id>\S+)\..+?"
  359. 73 r"Designated bridge has priority (?P<designated_bridge_priority>\d+), address (?P<designated_bridge_id>\S+).+?"
  360. 74 r"Designated port id is (?P<designated_port_id>\S+), designated path cost \d+",
  361. 75 re.DOTALL | re.IGNORECASE | re.MULTILINE)
  362. 76
  363. 77 def process_pvst(self, cli_stp, proto):
  364. 78 # Save port attributes
  365. 79 ==> ports = self.get_ports_attrs(cli_stp, "\nVLAN")
  366. 80 #
  367. 81 r = {
  368. 82 "mode": proto,
  369. 83 "instances": []
  370. 84 }
  371. 85 interfaces = {}
  372. Variables:
  373. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  374. cli_stp = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n
  375. This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ex
  376. t 2)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  377. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
  378. ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
  379. 0/2 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n\nVLAN0235\n Spanning tree enabled protocol ieee\n Root ID Priority 3
  380. 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
  381. Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33003 (priority 32768 sys-id-ext 235)\n Address 000b.be3a.5200\n He
  382. llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
  383. Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
  384. -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
  385. a.5200 128.26 \n\n\nVLAN0413\n Spanning tree enabled protocol ieee\n Root ID Priority 33181\n Address 000b.be3a.5200\n Th
  386. is bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33181 (priority 32768 sys-id-ext 413
  387. )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  388. Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34990 000b.be3a.
  389. 5200 128.1 \nGi0/2 128.26 4 FWD 0 34990 000b.be3a.5200 128.26 \n\n\nVLAN3100\n Spanning tree enabled protocol ieee\n Root ID
  390. Priority 35868\n Address 000b.be3a.5200\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward
  391. Delay 15 sec\n\n Bridge ID Priority 35868 (priority 32768 sys-id-ext 3100)\n Address 000b.be3a.5200\n Hello Time 2 sec M
  392. ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  393. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  394. 128.1 19 FWD 0 35868 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 35868 000b.be3a.5200 128.26 \n\n
  395. '
  396. proto = 'PVST+'
  397. ------------------------------------------------------------------------
  398. File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 199)
  399. Function: execute
  400. 192 for I in r["instances"]:
  401. 193 I["interfaces"] = interfaces[I["id"]]
  402. 194 return r
  403. 195
  404. 196 def execute(self):
  405. 197 v = self.cli("show spanning-tree")
  406. 198 if "Spanning tree enabled protocol ieee" in v:
  407. 199 ==> return self.process_pvst(v, proto="PVST+")
  408. 200 elif "Spanning tree enabled protocol rstp" in v:
  409. 201 return self.process_pvst(v, proto="rapid-PVST+")
  410. 202 elif "Spanning tree enabled protocol mstp" in v:
  411. 203 return self.process_mstp(v)
  412. 204 elif "No spanning tree instance exists" in v \
  413. 205 or "No spanning tree instances exist" in v:
  414. Variables:
  415. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  416. v = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n
  417. This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32770 (priority 32768 sys-id-ex
  418. t 2)\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  419. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
  420. ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
  421. 0/2 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n\nVLAN0235\n Spanning tree enabled protocol ieee\n Root ID Priority 3
  422. 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
  423. Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33003 (priority 32768 sys-id-ext 235)\n Address 000b.be3a.5200\n He
  424. llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
  425. Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
  426. -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
  427. a.5200 128.26 \n\n\nVLAN0413\n Spanning tree enabled protocol ieee\n Root ID Priority 33181\n Address 000b.be3a.5200\n Th
  428. is bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33181 (priority 32768 sys-id-ext 413
  429. )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
  430. Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------
  431. ------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 33181 000b.be3a.5200 128.1 \nGi0/2
  432. 128.26 4 FWD 0 33181 000b.be3a.5200 128.26 \n\n\nVLAN0777\n Spanning tree enabled protocol ieee\n Root ID Priority 3354
  433. 5\n Address 000a.b8fb.6a00\n Cost 37\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max Ag
  434. e 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 33545 (priority 32768 sys-id-ext 777)\n Address 000b.be3a.5200\n Hello
  435. Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Por
  436. t ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- --------------------
  437. --------\nFa0/1 128.1 19 FWD 18 33545 0022.56ab.6700 128.4 \nFa0/4 128.4 19 FWD 37 33545 000b.be3a.5
  438. 200 128.4 \nGi0/2 128.26 4 FWD 37 33545 000b.be3a.5200 128.26 \n\n\nVLAN0781\n Spanning tree enabled protocol ieee\n Root ID
  439. Delay 15 sec\n\n Bridge ID Priority 35868 (priority 32768 sys-id-ext 3100)\n Address 000b.be3a.5200\n Hello Time 2 sec M
  440. ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
  441. Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
  442. 128.1 19 FWD 0 35868 000b.be3a.5200 128.1 \nGi0/2 128.26 4 FWD 0 35868 000b.be3a.5200 128.26 \n\n
  443. '
  444. ------------------------------------------------------------------------
  445. File: /opt/noc/sa/script/script.py (Line: 417)
  446. Function: guarded_run
  447. 410 return result
  448. 411 except KeyError:
  449. 412 self.debug("Not in call cache: %r, %r" % (self.name,
  450. 413 self.kwargs))
  451. 414 pass
  452. 415 # Calling script body
  453. 416 self._thread_id = thread.get_ident()
  454. 417 ==> result = self.execute(**self.kwargs)
  455. 418 # Enforce interface result checking
  456. 419 for i in self.implements:
  457. 420 result = i.script_clean_result(self.profile, result)
  458. 421 # Cache result when required
  459. 422 if self.cache and self.parent is not None:
  460. 423 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  461. Variables:
  462. i = <noc.sa.interfaces.igetspanningtree.IGetSpanningTree object at 0x2343850>
  463. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  464. ------------------------------------------------------------------------
  465. File: /opt/noc/sa/script/script.py (Line: 440)
  466. Function: run
  467. 433
  468. 434 def run(self):
  469. 435 """Script thread worker method"""
  470. 436 self.debug("Running")
  471. 437 result = None
  472. 438 try:
  473. 439 with self.cancelable():
  474. 440 ==> result = self.guarded_run()
  475. 441 except self.TimeOutError:
  476. 442 self.error("Timed out")
  477. 443 self.e_timeout = True
  478. 444 except CancelledError:
  479. 445 self.error("Cancelled")
  480. 446 self.e_cancel = True
  481. Variables:
  482. self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
  483. r = ["<type 'exceptions.KeyError'>", "'128.1'"]
  484. result = None
  485. v = KeyError('128.1',)
  486. tb = <traceback object at 0x7f6bf40c2758>
  487. t = <type 'exceptions.KeyError'>
  488. ------------------------------------------------------------------------
  489. END OF TRACEBACK
  490. 2013-01-16 10:30:34,556 script(Cisco.IOS.get_lldp_neighbors,crt01-uri-ltc,**{}) failed: Feature is not supported on this platform
  491. 2013-01-16 10:30:34,571 MRT task=3096711/3114237 object=crt01-uri-ltc(192.168.65.39) script=Cisco.IOS.get_lldp_neighbors status=failed code=21 error=Feature i
  492. s not supported on this platform
  493. 2013-01-16 10:30:34,584 script(DLink.DxS.get_lldp_neighbors,dsw01-kil-vis,**{}) failed: Timed out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement