Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 51)
- Function: get_ports_attrs
- 44 "altn": "alternate",
- 45 "back": "backup",
- 46 "root": "root",
- 47 "desg": "designated",
- 48 "???": "master",
- 49 "????": "nonstp",
- 50 "_": "unknown"
- 51 ==> }[R[1].lower()], # @todo: refine roles
- 52 "state": {
- 53 "dis": "disabled",
- 54 "blk": "discarding",
- 55 "bkn": "broken",
- 56 "lrn": "learning",
- 57 "??": "learning",
- Variables:
- instance_sep = '\nVLAN'
- settings = '128.1'
- I = '0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n Thi
- 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
- Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------------
- ---- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi0/2
- 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n'
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- cli_stp = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 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 32770 (priority 32768 sys-id-ex
- 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
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
- ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
- 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
- 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
- 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
- llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
- Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
- -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
- 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
- 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
- )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------
- ------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 33181 000b.be3a.5200 128.1 \nGi0/2
- 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
- 5\n Address 000a.b8fb.6a00\n Cost 37\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max Ag
- 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
- Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Por
- t ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- --------------------
- --------\nFa0/1 128.1 19 FWD 18 33545 0022.56ab.6700 128.4 \nFa0/4 128.4 19 FWD 37 33545 000b.be3a.5
- 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
- Priority 33549\n Address 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 33549 (priority 32768 sys-id-ext 781)\n Address 000b.be3a.5200\n Hello Time 2 sec Max
- Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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
- VLAN1505\n Spanning tree enabled protocol ieee\n Root ID Priority 34273\n Address 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 34273 (priority 32768 sys-id-ext 1505)\n Addr
- 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
- Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- ---
- ------ --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34273 000b.be3a.5200 128.1 \nGi0/2 128.26
- 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
- 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
- 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
- Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
- Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD
- 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
- ocol ieee\n Root ID Priority 34721\n Address 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 34721 (priority 32768 sys-id-ext 1953)\n Address 000b.be3a.5200\n H
- ello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
- Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -----------------
- --- --------\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
- Priority 34768\n Address 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 34768 (priority 32768 sys-id-ext 2000)\n Address 000b.be3a.5200\n Hello Time 2 sec Ma
- x Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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\
- nVLAN2073\n Spanning tree enabled protocol ieee\n Root ID Priority 34841\n Address 000b.be3a.5200\n This bridge is the roo
- 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
- 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
- Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --
- ------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34841 000b.be3a.5200 128.1 \nGi0/2 128.26
- 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
- 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
- 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
- Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
- Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD
- 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
- 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
- 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
- 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID
- Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34990 000b.be3a.
- 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
- Priority 35868\n Address 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 35868 (priority 32768 sys-id-ext 3100)\n Address 000b.be3a.5200\n Hello Time 2 sec M
- ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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
- '
- instance_id = 2
- R = ['Fa0/1', '128.1', '19', 'FWD', '0', '32770 000b.be3a.5200', '128.1']
- interface = 'Fa 0/1'
- ports = {2: {}}
- _ = ' Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n This brid
- 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
- Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port
- ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -
- ------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi0/2
- 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n'
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 79)
- Function: process_pvst
- 72 r"Port path cost (?P<cost>\d+), Port priority (?P<priority>\d+), Port Identifier (?P<port_id>\S+)\..+?"
- 73 r"Designated bridge has priority (?P<designated_bridge_priority>\d+), address (?P<designated_bridge_id>\S+).+?"
- 74 r"Designated port id is (?P<designated_port_id>\S+), designated path cost \d+",
- 75 re.DOTALL | re.IGNORECASE | re.MULTILINE)
- 76
- 77 def process_pvst(self, cli_stp, proto):
- 78 # Save port attributes
- 79 ==> ports = self.get_ports_attrs(cli_stp, "\nVLAN")
- 80 #
- 81 r = {
- 82 "mode": proto,
- 83 "instances": []
- 84 }
- 85 interfaces = {}
- Variables:
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- cli_stp = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 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 32770 (priority 32768 sys-id-ex
- 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
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
- ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
- 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
- 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
- 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
- llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
- Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
- -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
- 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
- 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
- )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------
- ------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 33181 000b.be3a.5200 128.1 \nGi0/2
- 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
- 5\n Address 000a.b8fb.6a00\n Cost 37\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max Ag
- 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
- Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Por
- t ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- --------------------
- --------\nFa0/1 128.1 19 FWD 18 33545 0022.56ab.6700 128.4 \nFa0/4 128.4 19 FWD 37 33545 000b.be3a.5
- 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
- Priority 33549\n Address 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 33549 (priority 32768 sys-id-ext 781)\n Address 000b.be3a.5200\n Hello Time 2 sec Max
- Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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
- VLAN1505\n Spanning tree enabled protocol ieee\n Root ID Priority 34273\n Address 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 34273 (priority 32768 sys-id-ext 1505)\n Addr
- 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
- Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- ---
- ------ --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34273 000b.be3a.5200 128.1 \nGi0/2 128.26
- 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
- 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
- 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
- Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
- Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD
- 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
- ocol ieee\n Root ID Priority 34721\n Address 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 34721 (priority 32768 sys-id-ext 1953)\n Address 000b.be3a.5200\n H
- ello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
- Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -----------------
- --- --------\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
- Priority 34768\n Address 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 34768 (priority 32768 sys-id-ext 2000)\n Address 000b.be3a.5200\n Hello Time 2 sec Ma
- x Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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\
- nVLAN2073\n Spanning tree enabled protocol ieee\n Root ID Priority 34841\n Address 000b.be3a.5200\n This bridge is the roo
- 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
- 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
- Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --
- ------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34841 000b.be3a.5200 128.1 \nGi0/2 128.26
- 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
- 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
- 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
- Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
- Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD
- 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
- 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
- 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
- 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID
- Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34990 000b.be3a.
- 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
- Priority 35868\n Address 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 35868 (priority 32768 sys-id-ext 3100)\n Address 000b.be3a.5200\n Hello Time 2 sec M
- ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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
- '
- proto = 'PVST+'
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 199)
- Function: execute
- 192 for I in r["instances"]:
- 193 I["interfaces"] = interfaces[I["id"]]
- 194 return r
- 195
- 196 def execute(self):
- 197 v = self.cli("show spanning-tree")
- 198 if "Spanning tree enabled protocol ieee" in v:
- 199 ==> return self.process_pvst(v, proto="PVST+")
- 200 elif "Spanning tree enabled protocol rstp" in v:
- 201 return self.process_pvst(v, proto="rapid-PVST+")
- 202 elif "Spanning tree enabled protocol mstp" in v:
- 203 return self.process_mstp(v)
- 204 elif "No spanning tree instance exists" in v \
- 205 or "No spanning tree instances exist" in v:
- Variables:
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- v = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 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 32770 (priority 32768 sys-id-ex
- 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
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
- ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
- 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
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 417)
- Function: guarded_run
- 410 return result
- 411 except KeyError:
- 412 self.debug("Not in call cache: %r, %r" % (self.name,
- 413 self.kwargs))
- 414 pass
- 415 # Calling script body
- 416 self._thread_id = thread.get_ident()
- 417 ==> result = self.execute(**self.kwargs)
- 418 # Enforce interface result checking
- 419 for i in self.implements:
- 420 result = i.script_clean_result(self.profile, result)
- 421 # Cache result when required
- 422 if self.cache and self.parent is not None:
- 423 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetspanningtree.IGetSpanningTree object at 0x2343850>
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 440)
- Function: run
- 433
- 434 def run(self):
- 435 """Script thread worker method"""
- 436 self.debug("Running")
- 437 result = None
- 438 try:
- 439 with self.cancelable():
- 440 ==> result = self.guarded_run()
- 441 except self.TimeOutError:
- 442 self.error("Timed out")
- 443 self.e_timeout = True
- 444 except CancelledError:
- 445 self.error("Cancelled")
- 446 self.e_cancel = True
- Variables:
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- r = ["<type 'exceptions.KeyError'>", "'128.1'"]
- result = None
- v = KeyError('128.1',)
- tb = <traceback object at 0x7f6bf40c2758>
- t = <type 'exceptions.KeyError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 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
- ptions.KeyError'>
- '128.1'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 51)
- Function: get_ports_attrs
- 44 "altn": "alternate",
- 45 "back": "backup",
- 46 "root": "root",
- 47 "desg": "designated",
- 48 "???": "master",
- 49 "????": "nonstp",
- 50 "_": "unknown"
- 51 ==> }[R[1].lower()], # @todo: refine roles
- 52 "state": {
- 53 "dis": "disabled",
- 54 "blk": "discarding",
- 55 "bkn": "broken",
- 56 "lrn": "learning",
- 57 "??": "learning",
- Variables:
- instance_sep = '\nVLAN'
- settings = '128.1'
- I = '0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n Thi
- 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
- Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------------
- ---- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi0/2
- 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n'
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- cli_stp = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 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 32770 (priority 32768 sys-id-ex
- 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
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
- ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
- 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
- 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
- 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
- llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
- Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
- -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
- 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
- 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
- )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------
- ------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 33181 000b.be3a.5200 128.1 \nGi0/2
- 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
- 5\n Address 000a.b8fb.6a00\n Cost 37\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max Ag
- 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
- Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Por
- t ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- --------------------
- --------\nFa0/1 128.1 19 FWD 18 33545 0022.56ab.6700 128.4 \nFa0/4 128.4 19 FWD 37 33545 000b.be3a.5
- 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
- Priority 33549\n Address 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 33549 (priority 32768 sys-id-ext 781)\n Address 000b.be3a.5200\n Hello Time 2 sec Max
- Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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
- VLAN1505\n Spanning tree enabled protocol ieee\n Root ID Priority 34273\n Address 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 34273 (priority 32768 sys-id-ext 1505)\n Addr
- 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
- Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- ---
- ------ --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34273 000b.be3a.5200 128.1 \nGi0/2 128.26
- 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
- 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
- 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
- Aging Time 300\n\nInterface Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost
- 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
- ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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
- '
- instance_id = 2
- R = ['Fa0/1', '128.1', '19', 'FWD', '0', '32770 000b.be3a.5200', '128.1']
- interface = 'Fa 0/1'
- ports = {2: {}}
- _ = ' Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 000b.be3a.5200\n This brid
- 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
- Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port
- ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -
- ------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi0/2
- 128.26 4 FWD 0 32770 000b.be3a.5200 128.26 \n\n'
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 79)
- Function: process_pvst
- 72 r"Port path cost (?P<cost>\d+), Port priority (?P<priority>\d+), Port Identifier (?P<port_id>\S+)\..+?"
- 73 r"Designated bridge has priority (?P<designated_bridge_priority>\d+), address (?P<designated_bridge_id>\S+).+?"
- 74 r"Designated port id is (?P<designated_port_id>\S+), designated path cost \d+",
- 75 re.DOTALL | re.IGNORECASE | re.MULTILINE)
- 76
- 77 def process_pvst(self, cli_stp, proto):
- 78 # Save port attributes
- 79 ==> ports = self.get_ports_attrs(cli_stp, "\nVLAN")
- 80 #
- 81 r = {
- 82 "mode": proto,
- 83 "instances": []
- 84 }
- 85 interfaces = {}
- Variables:
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- cli_stp = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 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 32770 (priority 32768 sys-id-ex
- 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
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
- ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
- 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
- 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
- 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
- llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
- Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
- -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
- 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
- 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
- )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
- Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 34990 000b.be3a.
- 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
- Priority 35868\n Address 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 35868 (priority 32768 sys-id-ext 3100)\n Address 000b.be3a.5200\n Hello Time 2 sec M
- ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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
- '
- proto = 'PVST+'
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 199)
- Function: execute
- 192 for I in r["instances"]:
- 193 I["interfaces"] = interfaces[I["id"]]
- 194 return r
- 195
- 196 def execute(self):
- 197 v = self.cli("show spanning-tree")
- 198 if "Spanning tree enabled protocol ieee" in v:
- 199 ==> return self.process_pvst(v, proto="PVST+")
- 200 elif "Spanning tree enabled protocol rstp" in v:
- 201 return self.process_pvst(v, proto="rapid-PVST+")
- 202 elif "Spanning tree enabled protocol mstp" in v:
- 203 return self.process_mstp(v)
- 204 elif "No spanning tree instance exists" in v \
- 205 or "No spanning tree instances exist" in v:
- Variables:
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- v = '\nVLAN0002\n Spanning tree enabled protocol ieee\n Root ID Priority 32770\n Address 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 32770 (priority 32768 sys-id-ex
- 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
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n------
- ---------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 32770 000b.be3a.5200 128.1 \nGi
- 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
- 3003\n Address 000a.b8fb.6a00\n Cost 33\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max
- 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
- llo Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated
- Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- ------------------
- -- --------\nFa0/1 128.1 19 FWD 14 33003 0022.56ab.6700 128.4 \nGi0/2 128.26 4 FWD 33 33003 000b.be3
- 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
- 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
- )\n Address 000b.be3a.5200\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface
- Port ID Designated Port ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------
- ------- -------- --------- --- --------- -------------------- --------\nFa0/1 128.1 19 FWD 0 33181 000b.be3a.5200 128.1 \nGi0/2
- 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
- 5\n Address 000a.b8fb.6a00\n Cost 37\n Port 1 (FastEthernet0/1)\n Hello Time 2 sec Max Ag
- 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
- Time 2 sec Max Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Por
- t ID\nName Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- --------------------
- --------\nFa0/1 128.1 19 FWD 18 33545 0022.56ab.6700 128.4 \nFa0/4 128.4 19 FWD 37 33545 000b.be3a.5
- 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
- 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
- ax Age 20 sec Forward Delay 15 sec\n Aging Time 300\n\nInterface Port ID Designated Port ID\nName
- Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr\n---------------- -------- --------- --- --------- -------------------- --------\nFa0/1
- 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
- '
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 417)
- Function: guarded_run
- 410 return result
- 411 except KeyError:
- 412 self.debug("Not in call cache: %r, %r" % (self.name,
- 413 self.kwargs))
- 414 pass
- 415 # Calling script body
- 416 self._thread_id = thread.get_ident()
- 417 ==> result = self.execute(**self.kwargs)
- 418 # Enforce interface result checking
- 419 for i in self.implements:
- 420 result = i.script_clean_result(self.profile, result)
- 421 # Cache result when required
- 422 if self.cache and self.parent is not None:
- 423 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetspanningtree.IGetSpanningTree object at 0x2343850>
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 440)
- Function: run
- 433
- 434 def run(self):
- 435 """Script thread worker method"""
- 436 self.debug("Running")
- 437 result = None
- 438 try:
- 439 with self.cancelable():
- 440 ==> result = self.guarded_run()
- 441 except self.TimeOutError:
- 442 self.error("Timed out")
- 443 self.e_timeout = True
- 444 except CancelledError:
- 445 self.error("Cancelled")
- 446 self.e_cancel = True
- Variables:
- self = <Script(script-10.12.174.33-Cisco.IOS.get_spanning_tree, started 140103340218112)>
- r = ["<type 'exceptions.KeyError'>", "'128.1'"]
- result = None
- v = KeyError('128.1',)
- tb = <traceback object at 0x7f6bf40c2758>
- t = <type 'exceptions.KeyError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2013-01-16 10:30:34,556 script(Cisco.IOS.get_lldp_neighbors,crt01-uri-ltc,**{}) failed: Feature is not supported on this platform
- 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
- s not supported on this platform
- 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