Details
Description
На Cisco ASA 5505 можно создавить VLAN'ы. get_inventory этого не учитывает. Приложил исправление.
2015-06-13 19:13:59,103 [Cisco.ASA.get_interfaces(mst-fw01, 192.168.203.2)] cli(show interface) returns: ===[ show interface ]=================================================== 'Interface Ethernet0/0 "", is up, line protocol is up\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex(Full-duplex), Auto-Speed(100 Mbps)\n\tInput flow control is unsupported, output flow control is unsupported\n\tDescription: ISP provider\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66cb, MTU not set\n\tIP address unassigned\n\t71279724 packets input, 46539518962 bytes, 0 no buffer\n\tReceived 8281297 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t1163104 switch ingress policy drops\n\t49827207 packets output, 16921806062 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/1 "", is up, line protocol is up\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex(Full-duplex), Auto-Speed(100 Mbps)\n\tInput flow control is unsupported, output flow control is unsupported\n \tDescription: mst-sw01\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66cc, MTU not set\n\tIP address unassigned\n\t64232575 packets input, 37969885147 bytes, 0 no buffer\n\tReceived 1026669 broadcasts, 0 runts, 0 giants\n\t176 input errors, 0 CRC, 0 frame, 176 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t555108 switch ingress policy drops\n\t59259242 packets output, 31995273081 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/2 "", is up, line protocol is up\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex(Full-duplex), Auto-Speed(100 Mbps)\n\tInput flow control is unsupported, output flow control is unsupported\n\tDescription: mst-sw03\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66cd, MTU not set\n \tIP address unassigned\n\t41955621 packets input, 7715344868 bytes, 0 no buffer\n\tReceived 456931 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t554923 switch ingress policy drops\n\t59264354 packets output, 42338686219 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/3 "", is down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tDescription: mst-sw02\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66ce, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n \t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n\t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/4 "", is administratively down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66cf, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n \t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/5 "", is administratively down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66d0, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n\t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n \t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/6 "", is administratively down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66d1, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n\t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/7 "", is administratively down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66d2, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n\t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Vlan1 "inside", is up, line protocol is up\n Hardware is EtherSVI, BW 100 Mbps, DLY 100 usec\n\tMAC address 649e.f389.66d3, MTU 1500\n\tIP address 192.168.203.2, subnet mask 255.255.255.0\n Traffic Statistics for "inside":\n \t50384916 packets input, 13782435640 bytes\n\t61464170 packets output, 42138903072 bytes\n\t2022010 packets dropped\n 1 minute input rate 1 pkts/sec, 253 bytes/sec\n 1 minute output rate 1 pkts/sec, 299 bytes/sec\n 1 minute drop rate, 0 pkts/sec\n 5 minute input rate 1 pkts/sec, 194 bytes/sec\n 5 minute output rate 1 pkts/sec, 203 bytes/sec\n 5 minute drop rate, 0 pkts/sec\nInterface Vlan2 "outside", is up, line protocol is up\n Hardware is EtherSVI, BW 100 Mbps, DLY 100 usec\n\tMAC address 649e.f389.66d3, MTU 1500\n\tIP address 83.166.112.55, subnet mask 255.255.255.0\n Traffic Statistics for "outside":\n\t70116532 packets input, 45156875842 bytes\n\t49827607 packets output, 15962880571 bytes\n\t678113 packets dropped\n 1 minute input rate 2 pkts/sec, 466 bytes/sec\n 1 minute output rate 1 pkts/sec, 335 bytes/sec\n 1 minute drop rate, 0 pkts/sec\n 5 minute input rate 2 pkts/sec, 354 bytes/sec\n 5 minute output rate 1 pkts/sec, 264 bytes/sec\n 5 minute drop rate, 0 pkts/sec\n' ======================================================================== 2015-06-13 19:13:59,105 [Cisco.ASA.get_interfaces(mst-fw01, 192.168.203.2)] Unhandled exception 2015-06-13 19:13:59,124 [Cisco.ASA.get_interfaces(mst-fw01, 192.168.203.2)] Script traceback: <type 'exceptions.KeyError'> 'V' START OF TRACEBACK ------------------------------------------------------------------------ File: /opt/noc/sa/profiles/Cisco/ASA/get_interfaces.py (Line: 91) Function: execute 84 phys = ifname.find('.') == -1 85 if phys: 86 iface = { 87 "name": ifname, 88 "admin_status": a_stat, 89 "oper_status": o_stat, 90 "description": alias, 91 ==> "type": types[ifname[0]], 92 "mac": mac, 93 'subinterfaces': [sub] 94 } 95 interfaces.append(iface) 96 else: 97 if interfaces[-1]['name'] == interfaces[-1]['subinterfaces'][-1]['name']: Variables: o_stat = True iface = {'admin_status': False, 'description': '', 'mac': '649e.f389.66d2', 'name': 'Ethernet0/7', 'oper_status': False, 'subinterfaces': [{'admin_status': False, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66d2', 'name': 'Ethernet0/7', 'oper_status': False}], 'type': 'physical'} phys = True sub = {'admin_status': True, 'description': 'inside', 'enabled_afi': ['IPv4'], 'enabled_protocols': [], 'ipv4_addresses': ['192.168.203.2/24'], 'mac': '649e.f389.66d3', 'name': 'Vlan1', 'oper_status': True} ip = '192.168.203.2/24' interfaces = [{'admin_status': True, 'description': '', 'mac': '649e.f389.66cb', 'name': 'Ethernet0/0', 'oper_status': True, 'subinterfaces': [{'admin_status': True, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66cb', 'name': 'Ethernet0/0', 'oper_status': True}], 'type': 'physical'}, {'admin_status': True, 'description': '', 'mac': '649e.f389.66cc', 'name': 'Ethernet0/1', 'oper_status': True, 'subinterfaces': [{'admin_status': True, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66cc', 'name': 'Ethernet0/1', 'oper_status': True}], 'type': 'physical'}, {'admin_status': True, 'description': '', 'mac': '649e.f389.66cd', 'name': 'Ethernet0/2', 'oper_status': True, 'subinterfaces': [{'admin_status': True, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66cd', 'name': 'Ethernet0/2', 'oper_status': True}], 'type': 'physical'}, {'admin_status': False, 'description': '', 'mac': '649e.f389.66ce', 'name': 'Ethernet0/3', 'oper_status': False, 'subinterfaces': [{'admin_status': False, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66ce', 'name': 'Ethernet0/3', 'oper_status': False}], 'type': 'physical'}, {'admin_status': False, 'description': '', 'mac': '649e.f389.66cf', 'name': 'Ethernet0/4', 'oper_status': False, 'subinterfaces': [{'admin_status': False, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66cf', 'name': 'Ethernet0/4', 'oper_status': False}], 'type': 'physical'}, {'admin_status': False, 'description': '', 'mac': '649e.f389.66d0', 'name': 'Ethernet0/5', 'oper_status': False, 'subinterfaces': [{'admin_status': False, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66d0', 'name': 'Ethernet0/5', 'oper_status': False}], 'type': 'physical'}, {'admin_status': False, 'description': '', 'mac': '649e.f389.66d1', 'name': 'Ethernet0/6', 'oper_status': False, 'subinterfaces': [{'admin_status': False, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66d1', 'name': 'Ethernet0/6', 'oper_status': False}], 'type': 'physical'}, {'admin_status': False, 'description': '', 'mac': '649e.f389.66d2', 'name': 'Ethernet0/7', 'oper_status': False, 'subinterfaces': [{'admin_status': False, 'description': '', 'enabled_afi': [], 'enabled_protocols': [], 'mac': '649e.f389.66d2', 'name': 'Ethernet0/7', 'oper_status': False}], 'type': 'physical'}] s = 'Vlan1 "inside", is up, line protocol is up\n Hardware is EtherSVI, BW 100 Mbps, DLY 100 usec\n\tMAC address 649e.f389.66d3, MTU 1500\n\tIP address 192.168.203.2, subnet mask 255.255.255.0\n Traffic Statistics for "inside":\n \t50384916 packets input, 13782435640 bytes\n\t61464170 packets output, 42138903072 bytes\n\t2022010 packets dropped\n 1 minute input rate 1 pkts/sec, 253 bytes/sec\n 1 minute output rate 1 pkts/sec, 299 bytes/sec\n 1 minute drop rate, 0 pkts/sec\n 5 minute input rate 1 pkts/sec, 194 bytes/sec\n 5 minute output rate 1 pkts/sec, 203 bytes/sec\n 5 minute drop rate, 0 pkts/sec' alias = 'inside' mac = '649e.f389.66d3' a_stat = True types = {'E': 'physical', 'G': 'physical', 'L': 'loopback', 'M': 'management', 'P': 'aggregated', 'R': 'aggregated', 'T': 'physical'} v = 'Interface Ethernet0/0 "", is up, line protocol is up\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex(Full-duplex), Auto-Speed(100 Mbps)\n\tInput flow control is unsupported, output flow control is unsupported\n\tDescription: ISP provider\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66cb, MTU not set\n\tIP address unassigned\n\t71279724 packets input, 46539518962 bytes, 0 no buffer\n\tReceived 8281297 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t1163104 switch ingress policy drops\n\t49827207 packets output, 16921806062 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/1 "", is up, line protocol is up\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex(Full-duplex), Auto-Speed(100 Mbps)\n\tInput flow control is unsupported, output flow control is unsupported\n \tDescription: mst-sw01\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66cc, MTU not set\n\tIP address unassigned\n\t64232575 packets input, 37969885147 bytes, 0 no buffer\n\tReceived 1026669 broadcasts, 0 runts, 0 giants\n\t176 input errors, 0 CRC, 0 frame, 176 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t555108 switch ingress policy drops\n\t59259242 packets output, 31995273081 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/2 "", is up, line protocol is up\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex(Full-duplex), Auto-Speed(100 Mbps)\n\tInput flow control is unsupported, output flow control is unsupported\n\tDescription: mst-sw03\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66cd, MTU not set\n \tIP address unassigned\n\t41955621 packets input, 7715344868 bytes, 0 no buffer\n\tReceived 456931 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t554923 switch ingress policy drops\n\t59264354 packets output, 42338686219 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/3 "", is down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tDescription: mst-sw02\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66ce, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n \t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n\t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/4 "", is administratively down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66cf, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n \t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/5 "", is administratively down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66d0, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n\t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n \t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/6 "", is administratively down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66d1, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n\t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Ethernet0/7 "", is administratively down, line protocol is down\n Hardware is 88E6095, BW 100 Mbps, DLY 100 usec\n\tAuto-Duplex, Auto-Speed\n\tInput flow control is unsupported, output flow control is unsupported\n\tAvailable but not configured via nameif\n\tMAC address 649e.f389.66d2, MTU not set\n\tIP address unassigned\n\t0 packets input, 0 bytes, 0 no buffer\n\tReceived 0 broadcasts, 0 runts, 0 giants\n\t0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\n\t0 pause input, 0 resume input\n\t0 L2 decode drops\n\t0 switch ingress policy drops\n\t0 packets output, 0 bytes, 0 underruns\n\t0 pause output, 0 resume output\n\t0 output errors, 0 collisions, 0 interface resets\n\t0 late collisions, 0 deferred\n\t0 rate limit drops\n\t0 switch egress policy drops\n\t0 input reset drops, 0 output reset drops\nInterface Vlan1 "inside", is up, line protocol is up\n Hardware is EtherSVI, BW 100 Mbps, DLY 100 usec\n\tMAC address 649e.f389.66d3, MTU 1500\n\tIP address 192.168.203.2, subnet mask 255.255.255.0\n Traffic Statistics for "inside":\n \t50384916 packets input, 13782435640 bytes\n\t61464170 packets output, 42138903072 bytes\n\t2022010 packets dropped\n 1 minute input rate 1 pkts/sec, 253 bytes/sec\n 1 minute output rate 1 pkts/sec, 299 bytes/sec\n 1 minute drop rate, 0 pkts/sec\n 5 minute input rate 1 pkts/sec, 194 bytes/sec\n 5 minute output rate 1 pkts/sec, 203 bytes/sec\n 5 minute drop rate, 0 pkts/sec\nInterface Vlan2 "outside", is up, line protocol is up\n Hardware is EtherSVI, BW 100 Mbps, DLY 100 usec\n\tMAC address 649e.f389.66d3, MTU 1500\n\tIP address 83.166.112.55, subnet mask 255.255.255.0\n Traffic Statistics for "outside":\n\t70116532 packets input, 45156875842 bytes\n\t49827607 packets output, 15962880571 bytes\n\t678113 packets dropped\n 1 minute input rate 2 pkts/sec, 466 bytes/sec\n 1 minute output rate 1 pkts/sec, 335 bytes/sec\n 1 minute drop rate, 0 pkts/sec\n 5 minute input rate 2 pkts/sec, 354 bytes/sec\n 5 minute output rate 1 pkts/sec, 264 bytes/sec\n 5 minute drop rate, 0 pkts/sec\n' ifname = 'Vlan1' ospfs = [] self = <Script(Thread-2, started 140705036818176)> match = None ------------------------------------------------------------------------ File: /opt/noc/sa/script/script.py (Line: 422) Function: guarded_run 415 return result 416 except KeyError: 417 self.debug("Not in call cache: %r, %r" % (self.name, 418 self.kwargs)) 419 pass 420 # Calling script body 421 self._thread_id = thread.get_ident() 422 ==> result = self.execute(**self.kwargs) 423 # Enforce interface result checking 424 for i in self.implements: 425 result = i.script_clean_result(self.profile, result) 426 # Cache result when required 427 if self.cache and self.parent is not None: 428 self.debug("Write to call cache: %s, %s, %r" % (self.name, Variables: i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x3479810> self = <Script(Thread-2, started 140705036818176)> ------------------------------------------------------------------------ File: /opt/noc/sa/script/script.py (Line: 445) Function: run 438 439 def run(self): 440 """Script thread worker method""" 441 self.debug("Running") 442 result = None 443 try: 444 with self.cancelable(): 445 ==> result = self.guarded_run() 446 except self.TimeOutError: 447 self.error("Timed out") 448 self.e_timeout = True 449 except CancelledError: 450 self.error("Cancelled") 451 self.e_cancel = True Variables: self = <Script(Thread-2, started 140705036818176)> r = ["<type 'exceptions.KeyError'>", "'V'"] result = None v = KeyError('V',) tb = <traceback object at 0x401b1b8> t = <type 'exceptions.KeyError'> ------------------------------------------------------------------------ END OF TRACEBACK 2015-06-13 19:13:59,142 [Cisco.ASA.get_interfaces(mst-fw01, 192.168.203.2)] Closing 2015-06-13 19:13:59,142 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x3f0b4d0, 192.168.203.2:22, connected)>>(*(), **{'flush': True}) 2015-06-13 19:14:00,098 Tick 2015-06-13 19:14:00,099 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x3f0b4d0, 192.168.203.2:22, connected)>>(*(), **{'flush': True}) 2015-06-13 19:14:00,099 [SSH: 192.168.203.2] Closing socket 2015-06-13 19:14:00,099 unregister_socket(<CLISSHSocket(0x3f0b4d0, 192.168.203.2:22, closing)>) 2015-06-13 19:14:00,099 3 TICKS TO EXIT 2015-06-13 19:14:01,101 Tick 2015-06-13 19:14:01,101 2 TICKS TO EXIT 2015-06-13 19:14:02,102 Tick 2015-06-13 19:14:02,102 1 TICKS TO EXIT 2015-06-13 19:14:03,104 Tick 2015-06-13 19:14:03,104 EXIT 2015-06-13 19:14:03,104 Shutting down the factory 2015-06-13 19:14:03,104 0 TICKS TO EXIT 2015-06-13 19:14:03,104 Stopping socket factory