Guest User

Untitled

a guest
May 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.43 KB | None | 0 0
  1. START OF TRACEBACK
  2. ------------------------------------------------------------------------
  3. File: /opt/noc/sa/script/script.py (Line: 803)
  4. Function: re_search
  5. 796 Returns match object.
  6. 797 rx can be string or compiled regular expression
  7. 798 """
  8. 799 if isinstance(rx, basestring):
  9. 800 rx = re.compile(rx, flags)
  10. 801 match = rx.search(s)
  11. 802 if match is None:
  12. 803 ==> raise self.UnexpectedResultError()
  13. 804 return match
  14. 805
  15. 806 def re_match(self, rx, s, flags=0):
  16. 807 """
  17. 808 Match s against regular expression rx using re.match
  18. 809 Raise UnexpectedResultError if regular expression is not matched.
  19. Variables:
  20. rx = <_sre.SRE_Pattern object at 0x295d310>
  21. s = 'eth-switch\n Flags: Is-Primary\n\n'
  22. flags = 0
  23. self = <Script(script-10.0.6.6-Juniper.JUNOS.get_interfaces, started 139967376561920)>
  24. match = None
  25. ------------------------------------------------------------------------
  26. File: /opt/noc/sa/profiles/Juniper/JUNOS/get_interfaces.py (Line: 105)
  27. Function: execute
  28. 98 match=self.rx_phy_description.search(s)
  29. 99 if match:
  30. 100 si["description"]=match.group("description")
  31. 101 # Process protocols
  32. 102 ipv4=[]
  33. 103 iso=[]
  34. 104 for p in self.rx_log_protocol.split(s)[1:]:
  35. 105 ==> match=self.re_search(self.rx_log_pname, p)
  36. 106 proto=match.group("proto")
  37. 107 local_addresses=self.rx_log_address.findall(p)
  38. 108 if proto=="iso":
  39. 109 # Protocol ISO
  40. 110 si["is_iso"]=True
  41. 111 if local_addresses:
  42. Variables:
  43. sname = 'ge-0/0/0.0'
  44. subs = []
  45. self = <Script(script-10.0.6.6-Juniper.JUNOS.get_interfaces, started 139967376561920)>
  46. I = 'ge-0/0/0, Enabled, Physical link is Up\n Interface index: 129, SNMP ifIndex: 504\n Description: DWDM_NMS\n Link-level type: Ethernet, Muto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote resent Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: : 50:c5:8d:a3:a9:40\n Last flapped : 2012-01-11 13:38:08 UTC (1d 02:03 ago)\n Input rate : 6712 bps (11 pps)\n Output rate : 3920 bps (2 pps)\n Activ: None\n\n Logical interface ge-0/0/0.0 (Index 67) (SNMP ifIndex 505) \n Flags: SNMP-Traps Encapsulation: ENET2\n Bandwidth: 0\n Input packets : 3181752 Protocol eth-switch\n Flags: Is-Primary\n\n'
  47. interfaces = []
  48. version = {'platform': 'ex4200-24t', 'version': '10.2R1.8', 'vendor': 'Juniper'}
  49. si = {'oper_status': True, 'snmp_ifindex': '505', 'admin_status': True, 'name': 'ge-0/0/0.0'}
  50. L = ['ge-0/0/0.0 (Index 67) (SNMP ifIndex 505) \n Flags: SNMP-Traps Encapsulation: ENET2\n Bandwidth: 0\n Input packets : 31817526 \n ocol eth-switch\n Flags: Is-Primary\n\n']
  51. phy = 'ge-0/0/0, Enabled, Physical link is Up\n Interface index: 129, SNMP ifIndex: 504\n Description: DWDM_NMS\n Link-level type: Ethernet, Muto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote resent Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: : 50:c5:8d:a3:a9:40\n Last flapped : 2012-01-11 13:38:08 UTC (1d 02:03 ago)\n Input rate : 6712 bps (11 pps)\n Output rate : 3920 bps (2 pps)\n Activ: None\n'
  52. p = 'eth-switch\n Flags: Is-Primary\n\n'
  53. s = 'ge-0/0/0.0 (Index 67) (SNMP ifIndex 505) \n Flags: SNMP-Traps Encapsulation: ENET2\n Bandwidth: 0\n Input packets : 31817526 \n col eth-switch\n Flags: Is-Primary\n\n'
  54. iface = {'name': 'ge-0/0/0', 'admin_status': True, 'mac': '50:c5:8d:a3:a9:40', 'oper_status': True, 'type': 'physical', 'descripti
  55. iso = []
  56. ipv4 = []
  57. internal = <_sre.SRE_Pattern object at 0x2a92fd0>
  58. v = ' \nPhysical interface: ge-0/0/0, Enabled, Physical link is Up\n Interface index: 129, SNMP ifIndex: 504\n Description: DWDM_NMS\n Link-eed: 100mbps, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiatie\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queua9:40, Hardware address: 50:c5:8d:a3:a9:40\n Last flapped : 2012-01-11 13:38:08 UTC (1d 02:03 ago)\n Input rate : 6712 bps (11 pps)\n Output rate : 39None\n Active defects : None\n\n Logical interface ge-0/0/0.0 (Index 67) (SNMP ifIndex 505) \n Flags: SNMP-Traps Encapsulation: ENET2\n Bandwidth: 0\n ut packets: 694078\n Protocol eth-switch\n Flags: Is-Primary\n\nPhysical interface: ge-0/0/1, Enabled, Physical link is Up\n Interface index: 130, SNMP iLink-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, tion: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues eues\n Current address: 50:c5:8d:a3:a9:41, Hardware address: 50:c5:8d:a3:a9:41\n Last flapped : 2011-07-28 16:45:30 UTC (23w6d 22:56 ago)\n Input rate : : 10960 bps (3 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/1.0 (Index 91) (SNMP ifIndex 507) \n Flags: SNMP-Traps Enc000mbps\n Input packets : 1931604 \n Output packets: 501375\n Protocol eth-switch\n Flags: None\n\nPhysical interface: ge-0/0/2, Enabled, Physical lSNMP ifIndex: 508\n Description: EXFO\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback:abled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\ues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:42, Hardware address: 50:c5:8d:a3:a9:42\n Last flapped : 2012-01-01 05:19:08 : 0 bps (0 pps)\n Output rate : 0 bps (0 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/2.0 (Index 90) (SNMP ifIndexsulation: ENET2\n Input packets : 1831 \n Output packets: 512713\n Protocol eth-switch\n Flags: None\n\nPhysical interface: ge-0/0/3, Enabled, Physi132, SNMP ifIndex: 510\n Description: ABB\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopb Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:43, Hardware address: 50:c5:8d:a3:a9:43\n Last flapped : 2011-08-30 13:20rate : 1304 bps (1 pps)\n Output rate : 768 bps (1 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/3.0 (Index 66) (SNraps Encapsulation: ENET2\n Input packets : 0 \n Output packets: 411935\n Protocol eth-switch\n Flags: None\n\nPhysical interface: ge-0/0/4, Enabledindex: 133, SNMP ifIndex: 512\n Description: Abovyan-provider-ADC\n Link-level type: Ethernet, MTU: 1514, Speed: 100mbps, Duplex: Auto,\n BPDU Error: None, MACabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface fink flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:44, Hardware address: 50:c5:8d:a3:a9:44\n Last f(3w1d 21:57 ago)\n Input rate : 0 bps (0 pps)\n Output rate : 0 bps (0 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0) \n Flags: SNMP-Traps Encapsulation: ENET2\n Input packets : 96024 \n Output packets: 739476\n Protocol eth-switch\n Flags: None\n\nPhysical int link is Up\n Interface index: 134, SNMP ifIndex: 514\n Description: AEB\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interf\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:45, Hardware address: 50:c5:8d:a3:a9:45\n L UTC (30w5d 22:23 ago)\n Input rate : 97480 bps (28 pps)\n Output rate : 4112 bps (7 pps)\n Active alarms : None\n Active defects : None\n\n Logical MP ifIndex 515) \n Flags: SNMP-Traps Encapsulation: ENET2\n Input packets : 0 \n Output packets: 725444\n Protocol eth-switch\n Flags: None\n\nPh, Physical link is Up\n Interface index: 135, SNMP ifIndex: 516\n Description: ASHIB\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDUne, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Runninternal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:46, Hardware address: 50:c5:8d:a-19 12:28:09 UTC (20w6d 03:13 ago)\n Input rate : 1312 bps (2 pps)\n Output rate : 3072 bps (6 pps)\n Active alarms : None\n Active defects : None\n\nex 65) (SNMP ifIndex 517) \n Flags: SNMP-Traps Encapsulation: ENET2\n Input packets : 1138 \n Output packets: 417719\n Protocol eth-switch\n Flag/0/7, Enabled, Physical link is Up\n Interface index: 136, SNMP ifIndex: 518\n Description: VTB\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: AuE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : PrNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:47, Hardware address: : 2011-07-09 19:39:39 UTC (26w4d 20:02 ago)\n Input rate : 17984 bps (10 pps)\n Output rate : 50968 bps (11 pps)\n Active alarms : None\n Active defge-0/0/7.0 (Index 84) (SNMP ifIndex 519) \n Flags: SNMP-Traps Encapsulation: ENET2\n Input packets : 50 \n Output packets: 533240\n Protocol eth-switcterface: ge-0/0/8, Enabled, Physical link is Up\n Interface index: 137, SNMP ifIndex: 520\n Description: -->WEB\n Link-level type: Ethernet, MTU: 1548, Speed: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Devterface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:48, Hn Last flapped : 2011-06-10 16:22:22 UTC (30w5d 23:19 ago)\n Input rate : 2711216 bps (1326 pps)\n Output rate : 16860744 bps (2041 pps)\n Active alae\n\n Logical interface ge-0/0/8.0 (Index 73) (SNMP ifIndex 521) \n Flags: SNMP-Traps Encapsulation: ENET2\n Input packets : 2881235 \n Output packets: Flags: None\n\nPhysical interface: ge-0/0/9, Enabled, Physical link is Up\n Interface index: 138, SNMP ifIndex: 522\n Description: Inecobank_Abovyan\n Linkpeed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiationn Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues:49, Hardware address: 50:c5:8d:a3:a9:49\n Last flapped : 2011-06-10 17:11:10 UTC (30w5d 22:30 ago)\n Input rate : 31728 bps (23 pps)\n Output rate : : None\n Active defects : None\n\n Logical interface ge-0/0/9.0 (Index 76) (SNMP ifIndex 523) \n Flags: SNMP-Traps Encapsulation: ENET2\n Bandwidth: 0\npackets: 3271423\n Protocol eth-switch\n Flags: None\n\nPhysical interface: ge-0/0/10, Enabled, Physical link is Up\n Interface index: 139, SNMP ifIndex:ink-level type: Ethernet, MTU: 1514, Speed: 100mbps, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabledtiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues queues\n Current address: 50:c5:8d:a3:a9:4a, Hardware address: 50:c5:8d:a3:a9:4a\n Last flapped : 2011-09-29 12:10:57 UTC (15w0d 03:31 ago)\n Input rate te : 175872 bps (116 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/10.0 (Index 77) (SNMP ifIndex 525) \n Flags: SNMP- Input packets : 2353452 \n Output packets: 881616\n Protocol eth-switch\n Flags: Trunk-Mode\n\nPhysical interface: ge-0/0/11, Enabled, Physical link iifIndex: 526\n Description: UNIBANK\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Dled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n s : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:4b, Hardware address: 50:c5:8d:a3:a9:4b\n Last flapped : 2011-06-15 11:02:59 UT : 0 bps (0 pps)\n Output rate : 0 bps (0 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/11.0 (Index 82) (SNMP ifIndexsulation: ENET2\n Input packets : 0 \n Output packets: 608147\n Protocol eth-switch\n Flags: None\n\nPhysical interface: ge-0/0/12, Enabled, Physica1, SNMP ifIndex: 528\n Description: Rutube-IPMI\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None,ering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Inten CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:4c, Hardware address: 50:c5:8d:a3:a9:4c\n Last flapped : 2011-07-14Input rate : 0 bps (0 pps)\n Output rate : 0 bps (0 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/12.0 (Index 81) (-Traps Encapsulation: ENET2\n Bandwidth: 1000mbps\n Input packets : 1 \n Output packets: 618810\n Protocol eth-switch\n Flags: None\n\nPhysical ical link is Up\n Interface index: 142, SNMP ifIndex: 530\n Description: UCOM_School_2208_Abovyan\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: ATE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : PSNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:4d, Hardware address : 2011-11-15 15:14:47 UTC (8w2d 00:27 ago)\n Input rate : 2976 bps (1 pps)\n Output rate : 56344 bps (7 pps)\n Active alarms : None\n Active defect0/0/13.0 (Index 75) (SNMP ifIndex 531) \n Flags: SNMP-Traps Encapsulation: ENET2\n Input packets : 12689 \n Output packets: 729092\n Protocol eth-switnterface: ge-0/0/14, Enabled, Physical link is Up\n Interface index: 143, SNMP ifIndex: 532\n Description: -->Converse_Bank_Abovyan\n Link-level type: Ethernetuto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote resent Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: : 50:c5:8d:a3:a9:4e\n Last flapped : 2011-06-10 17:11:10 UTC (30w5d 22:30 ago)\n Input rate : 123264 bps (56 pps)\n Output rate : 694424 bps (196 pps) defects : None\n\n Logical interface ge-0/0/14.0 (Index 71) (SNMP ifIndex 533) \n Flags: SNMP-Traps Encapsulation: ENET2\n Input packets : 13 \n Outputswitch\n\nPhysical interface: ge-0/0/15, Enabled, Physical link is Up\n Interface index: 144, SNMP ifIndex: 534\n Description: Zeppelin\n Link-level type: Ethex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Rem : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current addreress: 50:c5:8d:a3:a9:4f\n Last flapped : 2011-12-21 18:23:31 UTC (3w0d 21:18 ago)\n Input rate : 39120 bps (32 pps)\n Output rate : 154808 bps (32 ppse defects : None\n\n Logical interface ge-0/0/15.0 (Index 70) (SNMP ifIndex 535) \n Flags: SNMP-Traps Encapsulation: ENET2\n Input packets : 15305 \n Oueth-switch\n Flags: None\n\nPhysical interface: ge-0/0/16, Enabled, Physical link is Up\n Interface index: 145, SNMP ifIndex: 536\n Description: DLINK-Admi Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: En Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, address: 50:c5:8d:a3:a9:50, Hardware address: 50:c5:8d:a3:a9:50\n Last flapped : 2011-12-19 16:28:03 UTC (3w2d 23:13 ago)\n Input rate : 3074184 bps (406 s (356 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/16.0 (Index 68) (SNMP ifIndex 537) \n Flags: SNMP-Traps 0x0 Encapsu5746625 \n Output packets: 1731341\n Protocol eth-switch\n Flags: Trunk-Mode\n\nPhysical interface: ge-0/0/17, Enabled, Physical link is Up\n InterfacDescription: Uplink-to-SRX\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\ncontrol: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flagsupported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:51, Hardware address: 50:c5:8d:a3:a9:51\n Last flapped : 2011-12-19 16:37:38 UTC (3w2d 234 bps (200 pps)\n Output rate : 611896 bps (189 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/17.0 (Index 69) (SNMP ifIx0 Encapsulation: ENET2\n Input packets : 24342943 \n Output packets: 1700820\n Protocol eth-switch\n Flags: Trunk-Mode\n\nPhysical interface: ge-0/n Interface index: 147, SNMP ifIndex: 540\n Description: Rutube\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWd,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flagsflags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:52, Hardware address: 50:c5:8d:a3:a9:52\n Last flapp6d 02:49 ago)\n Input rate : 16633000 bps (1458 pps)\n Output rate : 564016 bps (1049 pps)\n Active alarms : None\n Active defects : None\n\n LogicalSNMP ifIndex 541) \n Flags: SNMP-Traps Encapsulation: ENET2\n Bandwidth: 0\n Input packets : 60 \n Output packets: 934322\n Protocol eth-switch\n ce: ge-0/0/19, Enabled, Physical link is Down\n Interface index: 148, SNMP ifIndex: 542\n Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPNone, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Runare-Down SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:53, Hardwart flapped : 2011-12-29 18:26:38 UTC (1w6d 21:15 ago)\n Input rate : 0 bps (0 pps)\n Output rate : 0 bps (0 pps)\n Active alarms : LINK\n Active defee-0/0/19.0 (Index 86) (SNMP ifIndex 543) \n Flags: Device-Down SNMP-Traps Encapsulation: ENET2\n Bandwidth: 0\n Input packets : 165074413 \n Output paswitch\n Flags: None\n\nPhysical interface: ge-0/0/20, Enabled, Physical link is Up\n Interface index: 149, SNMP ifIndex: 544\n Link-level type: Ethernet, o,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,\n Remote fasent Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supported, 8 maximum usable queues\n Current address: 5050:c5:8d:a3:a9:54\n Last flapped : 2010-06-07 17:26:09 UTC (83w2d 22:15 ago)\n Input rate : 8560 bps (1 pps)\n Output rate : 8560 bps (1 pps)\n Activ: None\n\n Logical interface ge-0/0/20.0 (Index 87) (SNMP ifIndex 545) \n Flags: SNMP-Traps Encapsulation: ENET2\n Bandwidth: 0\n Input packets : 3253 \rotocol eth-switch\n Flags: None\n\nPhysical interface: ge-0/0/21, Enabled, Physical link is Up\n Interface index: 150, SNMP ifIndex: 546\n Description: Moe: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow control: \n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supportedt address: 50:c5:8d:a3:a9:55, Hardware address: 50:c5:8d:a3:a9:55\n Last flapped : 2011-08-17 11:07:42 UTC (21w1d 04:34 ago)\n Input rate : 0 bps (0 pps)\ Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/21.0 (Index 88) (SNMP ifIndex 547) \n Flags: SNMP-Traps Encapsulation: ENET2\n 1963 \n Output packets: 3271603\n Protocol eth-switch\n Flags: None\n\nPhysical interface: ge-0/0/22, Enabled, Physical link is Up\n Interface index:el type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\n Source filtering: Disabled, Flow conabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flags : None\n CoS queues : 8 supCurrent address: 50:c5:8d:a3:a9:56, Hardware address: 50:c5:8d:a3:a9:56\n Last flapped : 2010-07-26 17:32:59 UTC (76w2d 22:09 ago)\n Input rate : 0 bps (0pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/22.0 (Index 89) (SNMP ifIndex 549) \n Flags: SNMP-Traps Encapsulation: ENEkets : 419 \n Output packets: 3288994\n Protocol eth-switch\n Flags: None\n\nPhysical interface: ge-0/0/23, Enabled, Physical link is Up\n Interface icription: -->MX480_Abovyan\n Link-level type: Ethernet, MTU: 9192, Speed: Auto, Duplex: Auto,\n BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,\ncontrol: Enabled, Auto-negotiation: Enabled,\n Remote fault: Online\n Device flags : Present Running\n Interface flags: SNMP-Traps Internal: 0x0\n Link flagsupported, 8 maximum usable queues\n Current address: 50:c5:8d:a3:a9:57, Hardware address: 50:c5:8d:a3:a9:57\n Last flapped : 2011-11-27 06:16:21 UTC (6w4d 0956 bps (4078 pps)\n Output rate : 23319432 bps (3658 pps)\n Active alarms : None\n Active defects : None\n\n Logical interface ge-0/0/23.0 (Index 74) (SNMaps 0x0 Encapsulation: ENET2\n Input packets : 239643193 \n Output packets: 32645460\n Protocol eth-switch\n Flags: Trunk-Mode\n\nPhysical interfaceDown\n Interface index: 66, SNMP ifIndex: 49\n Type: 105, Link-level type: 70, MTU: 1514, Speed: 32000mbps\n Device flags : Present Running\n Interface flag: Full-Duplex\n Link flags : None\n Last flapped : Never\n Input packets : 0 \n Output packets: 0\n\n Logical interface vcp-0.32768 (Index 3) (SNMPtion: Unspecified\n Input packets : 0 \n Output packets: 0\n\nPhysical interface: vcp-1, Enabled, Physical link is Down\n Interface index: 67, SNMP ifIndex 70, MTU: 1514, Speed: 32000mbps\n Device flags : Present Running\n Interface flags: Hardware-Down\n Link type : Full-Duplex\n Link flags : None\n packets : 0 \n Output packets: 0\n\n Logical interface vcp-1.32768 (Index 4) (SNMP ifIndex 52) \n Flags: Encapsulation: Unspecified\n Input packets : 0 interface: bme0, Enabled, Physical link is Up\n Interface index: 64, SNMP ifIndex: 37\n Type: Ethernet, Link-level type: Ethernet, MTU: 1576\n Device flags : None\n Current address: 00:0b:ca:fe:00:00, Hardware address: 00:0b:ca:fe:00:00\n Last flapped : Never\n Input packets : 0 \n Output packets: 22853222 (Index 5) (SNMP ifIndex 38) \n Flags: Encapsulation: ENET2\n Input packets : 481935573 \n Output packets: 3\n Protocol inet\n Flags: Is-Primary\-Default Is-Preferred Is-Primary\n Destination: 128/2, Local: 128.0.0.1, Broadcast: 191.255.255.255\n Addresses, Flags: Primary\n Destination: : 191.255.255.255\n Addresses, Flags: Primary\n Destination: 128/2, Local: 128.0.0.32, Broadcast: 191.255.255.255\n Protocol tnp\n Flags: Is-Pmary\n Local: 0x10\n\nPhysical interface: dsc, Enabled, Physical link is Up\n Interface index: 5, SNMP ifIndex: 5\n Type: Software-Pseudo, MTU: Unlimitedg\n Interface flags: Point-To-Point SNMP-Traps\n Link flags : None\n Last flapped : Never\n Input packets : 0 \n Output packets: 0\n\nPhysical inteis Up\n Interface index: 10, SNMP ifIndex: 8\n Type: GRE, Link-level type: GRE, MTU: Unlimited, Speed: Unlimited\n Device flags : Present Running\n Interfacn Input packets : 0 \n Output packets: 0\n\nPhysical interface: ipip, Enabled, Physical link is Up\n Interface index: 11, SNMP ifIndex: 9\n Type: IPIP, Liimited, Speed: Unlimited\n Device flags : Present Running\n Interface flags: SNMP-Traps\n Input packets : 0 \n Output packets: 0\n\nPhysical interface: Interface index: 6, SNMP ifIndex: 6\n Type: Loopback, MTU: Unlimited\n Device flags : Present Running Loopback\n Interface flags: SNMP-Traps\n Link flags r\n Input packets : 2552801212 \n Output packets: 2552801212\n\nPhysical interface: lsi, Enabled, Physical link is Up\n Interface index: 4, SNMP ifIndex: 4el type: LSI, MTU: 1496, Speed: Unlimited\n Device flags : Present Running\n Interface flags: SNMP-Traps\n Link flags : None\n Last flapped : Never\n ackets: 0\n\nPhysical interface: me0, Enabled, Physical link is Down\n Interface index: 1, SNMP ifIndex: 33\n Type: Ethernet, Link-level type: Ethernet, MTU: 15ing No-Carrier\n Interface flags: Hardware-Down SNMP-Traps\n Current address: 50:c5:8d:a3:a9:41, Hardware address: 50:c5:8d:a3:a9:7f\n Last flapped : 2010-06n Input packets : 0 \n Output packets: 0\n\n Logical interface me0.0 (Index 6) (SNMP ifIndex 34) \n Flags: Device-Down SNMP-Traps Encapsulation: ENET2\npackets: 0\n Protocol eth-switch\n Flags: Is-Primary\n\nPhysical interface: mtun, Enabled, Physical link is Up\n Interface index: 65, SNMP ifIndex: 12\n pe: GRE, MTU: Unlimited, Speed: Unlimited\n Device flags : Present Running\n Interface flags: SNMP-Traps\n Input packets : 0 \n Output packets: 0\n\nPhysical link is Up\n Interface index: 26, SNMP ifIndex: 11\n Type: PIMD, Link-level type: PIM-Decapsulator, MTU: Unlimited,\n Speed: Unlimited\n Device flags s: SNMP-Traps\n Input packets : 0 \n Output packets: 0\n\nPhysical interface: pime, Enabled, Physical link is Up\n Interface index: 25, SNMP ifIndex: 10\n ncapsulator, MTU: Unlimited,\n Speed: Unlimited\n Device flags : Present Running\n Interface flags: SNMP-Traps\n Input packets : 0 \n Output packets: 0d, Physical link is Up\n Interface index: 12, SNMP ifIndex: 7\n Type: Software-Pseudo, Link-level type: Interface-Specific, MTU: Unlimited,\n Speed: Unlimited\\n Interface flags: SNMP-Traps\n Link flags : None\n Last flapped : Never\n Input packets : 0 \n Output packets: 0\n\nPhysical interface: vlan, Enaace index: 128, SNMP ifIndex: 501\n Type: VLAN, Link-level type: VLAN, MTU: 9216, Speed: 1000mbps\n Device flags : Present Running\n Link type : Full-Durrent address: 50:c5:8d:a3:a9:40, Hardware address: 50:c5:8d:a3:a9:40\n Last flapped : Never\n Input packets : 249955719 \n Output packets: 190614353\n\n92) (SNMP ifIndex 502) \n Flags: SNMP-Traps 0x0 Encapsulation: ENET2\n Input packets : 37552659 \n Output packets: 40500642\n Protocol inet\n Flaresses, Flags: Is-Default Is-Preferred Is-Primary\n Destination: 10.0.6/24, Local: 10.0.6.6, Broadcast: 10.0.6.255\n\n Logical interface vlan.15 (Index 93NMP-Traps 0x0 Encapsulation: ENET2\n Input packets : 23906393 \n Output packets: 6453\n Protocol inet\n Flags: None\n Addresses, Flags: Is-Prefon: 172.16.1/24, Local: 172.16.1.253, Broadcast: 172.16.1.255\n\n Logical interface vlan.140 (Index 94) (SNMP ifIndex 503) \n Flags: Link-Layer-Down SNMP-Traput packets : 0 \n Output packets: 1\n Protocol inet\n Flags: None\n Addresses, Flags: Dest-route-down Is-Preferred Is-Primary\n DestinationBroadcast: 10.20.30.255\n\n Logical interface vlan.156 (Index 95) (SNMP ifIndex 555) \n Flags: Link-Layer-Down SNMP-Traps 0x0 Encapsulation: ENET2\n Input kets: 10668\n Protocol inet\n Flags: None\n Addresses, Flags: Dest-route-down Is-Preferred Is-Primary\n Destination: 172.27.100/24, Local: 172.27.100.255\n\n Logical interface vlan.800 (Index 96) (SNMP ifIndex 552) \n Flags: SNMP-Traps 0x0 Encapsulation: ENET2\n Input packets : 7 \n Output paclags: None\n Addresses, Flags: Is-Preferred Is-Primary\n Destination: 10.10.10.0/29, Local: 10.10.10.1, Broadcast: 10.10.10.7\n\n Logical interface v6) \n Flags: SNMP-Traps 0x0 Encapsulation: ENET2\n Input packets : 0 \n Output packets: 50\n Protocol inet\n Flags: None\n Addresses, Flags:estination: 1.1.1.0/30, Local: 1.1.1.2, Broadcast: 1.1.1.3\n\nPhysical interface: vme, Enabled, Physical link is Down\n Interface index: 68, SNMP ifIndex: 35\n gmt-VLAN, MTU: 1518, Speed: 1000mbps\n Device flags : Present Running\n Interface flags: Hardware-Down SNMP-Traps\n Link type : Full-Duplex\n Link flag:c5:8d:a3:a9:41, Hardware address: 50:c5:8d:a3:a9:41\n Last flapped : Never\n Input packets : 0 \n Output packets: 0\n\n{master:0}\n'
  59. iftype = 'physical'
  60. match = None
  61. name = 'ge-0/0/0'
  62. ------------------------------------------------------------------------
  63. File: /opt/noc/sa/script/script.py (Line: 458)
  64. Function: guarded_run
  65. 451 return result
  66. 452 except KeyError:
  67. 453 self.debug("Not in call cache: %r, %r" % (self.name,
  68. 454 self.kwargs))
  69. 455 pass
  70. 456 # Calling script body
  71. 457 self._thread_id = thread.get_ident()
  72. 458 ==> result = self.execute(**self.kwargs)
  73. 459 # Enforce interface result checking
  74. 460 for i in self.implements:
  75. 461 result = i.script_clean_result(self.profile, result)
  76. 462 # Cache result when required
  77. 463 if self.cache and self.parent is not None:
  78. 464 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  79. Variables:
  80. i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x29644d0>
  81. self = <Script(script-10.0.6.6-Juniper.JUNOS.get_interfaces, started 139967376561920)>
  82. ------------------------------------------------------------------------
  83. File: /opt/noc/sa/script/script.py (Line: 481)
  84. Function: run
  85. 474
  86. 475 def run(self):
  87. 476 """Script thread worker method"""
  88. 477 self.debug("Running")
  89. 478 result = None
  90. 479 try:
  91. 480 with self.cancelable():
  92. 481 ==> result = self.guarded_run()
  93. 482 except TimeOutError:
  94. 483 self.error("Timed out")
  95. 484 self.e_timeout = True
  96. 485 except CancelledError:
  97. 486 self.error("Cancelled")
  98. 487 self.e_cancel = True
  99. Variables:
  100. self = <Script(script-10.0.6.6-Juniper.JUNOS.get_interfaces, started 139967376561920)>
  101. r = ["<class 'noc.sa.script.exception.UnexpectedResultError'>", '']
  102. result = None
  103. v = UnexpectedResultError()
  104. tb = <traceback object at 0x2af63b0>
  105. t = <class 'noc.sa.script.exception.UnexpectedResultError'>
  106. ------------------------------------------------------------------------
  107. END OF TRACEBACK
Add Comment
Please, Sign In to add comment