Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./noc debug-script get_interfaces kiev-n1-bsw4
- /opt/noc/contrib/lib/pycrypto-2.5-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
- _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
- 2012-04-18 14:32:36,728 SSH: Using gmpy
- 2012-04-18 14:32:37,244 Using JSON library: django_simplejson
- 2012-04-18 14:32:37,262 Loading PeriodicRegistry
- 2012-04-18 14:32:37,324 Loading DownloaderRegistry
- 2012-04-18 14:32:37,365 Loading ProfileRegistry
- 2012-04-18 14:32:38,068 Loading ScriptRegistry
- 2012-04-18 14:32:38,376 Setting up 'select' polling method
- 2012-04-18 14:32:38,376 Set up select() poller
- 2012-04-18 14:32:38,376 Loading private ssh key from 'etc/ssh/id_rsa'
- 2012-04-18 14:32:38,377 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Extreme.XOS"
- scheme: TELNET
- address: "172.16.0.34"
- user: "amt"
- password: "twtwan"
- }
- script: "Extreme.XOS.get_interfaces"
- 2012-04-18 14:32:38,382 Running socket factory
- 2012-04-18 14:32:38,382 Running script thread
- 2012-04-18 14:32:38,382 Creating transaction id=126489933 method=None callback=None
- 2012-04-18 14:32:38,383 [script-172.16.0.34-Extreme.XOS.get_interfaces] Running
- 2012-04-18 14:32:38,383 [script-172.16.0.34-Extreme.XOS.get_interfaces] Running script: Extreme.XOS.get_interfaces ({})
- 2012-04-18 14:32:38,383 [script-172.16.0.34-Extreme.XOS.get_interfaces] cli(show vlan detail)
- 2012-04-18 14:32:38,383 [script-172.16.0.34-Extreme.XOS.get_interfaces] Running new provider
- 2012-04-18 14:32:38,384 [TELNET: 172.16.0.34] ==> START
- 2012-04-18 14:32:38,384 [TELNET: 172.16.0.34] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^(\\*\\s)?\\S+? #', 'PROMPT'), ('(^Press <SPACE> to continue or <Q> to quit:)', 'PAGER')])
- 2012-04-18 14:32:38,385 [TELNET: 172.16.0.34] set_timeout(30)
- 2012-04-18 14:32:38,386 register_socket(<noc.sa.script.telnet.CLITelnetSocket object at 0x2d32cd0>,None)
- 2012-04-18 14:32:39,383 Tick
- 2012-04-18 14:32:39,383 3 TICKS TO EXIT
- 2012-04-18 14:32:39,383 [TELNET: 172.16.0.34] Initializing socket
- 2012-04-18 14:32:39,384 [TELNET: 172.16.0.34] Connecting 172.16.0.34:23
- 2012-04-18 14:32:39,396 [TELNET: 172.16.0.34] Received IAC WILL SGA (251 3)
- 2012-04-18 14:32:39,396 [TELNET: 172.16.0.34] Sending IAC DO SGA (253 3)
- 2012-04-18 14:32:39,396 [TELNET: 172.16.0.34] Received IAC WILL ECHO (251 1)
- 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Sending IAC DO ECHO (253 1)
- 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Received IAC DO NAWS (253 31)
- 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Sending IAC WILL NAWS (251 31)
- 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Sending SB '\xff\xfa\x1f\xff\xff\xff\xff\xff\xf0'
- 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Received IAC DO TTYPE (253 24)
- 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] Sending IAC WILL TTYPE (251 24)
- 2012-04-18 14:32:39,397 [TELNET: 172.16.0.34] on_read: '\r\ntelnet session telnet0 on /dev/ptyb0\r\n\r\n'
- 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Received IAC WILL SGA (251 3)
- 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Sending IAC DO SGA (253 3)
- 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Received IAC WILL ECHO (251 1)
- 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Sending IAC DO ECHO (253 1)
- 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Received IAC DO NAWS (253 31)
- 2012-04-18 14:32:39,413 [TELNET: 172.16.0.34] Sending IAC WILL NAWS (251 31)
- 2012-04-18 14:32:39,414 [TELNET: 172.16.0.34] Sending SB '\xff\xfa\x1f\xff\xff\xff\xff\xff\xf0'
- 2012-04-18 14:32:39,414 [TELNET: 172.16.0.34] Received IAC DO TTYPE (253 24)
- 2012-04-18 14:32:39,414 [TELNET: 172.16.0.34] Sending IAC WILL TTYPE (251 24)
- 2012-04-18 14:32:39,435 [TELNET: 172.16.0.34] on_read: '#\r\nkiev-n1-bsw4\r\n#\r\n\r\n'
- 2012-04-18 14:32:39,475 [TELNET: 172.16.0.34] on_read: 'login: '
- 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] match '([Uu]sername|[Ll]ogin):'
- 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] event(USERNAME)
- 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] ==> USERNAME
- 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] set_patterns([('[Pp]assword:', 'PASSWORD'), ('^(\\*\\s)?\\S+? #', 'PROMPT')])
- 2012-04-18 14:32:39,476 [TELNET: 172.16.0.34] submit(u'amt',bulk_lines=None)
- 2012-04-18 14:32:39,478 [TELNET: 172.16.0.34] on_read: 'amt\r\n\r'
- 2012-04-18 14:32:39,515 [TELNET: 172.16.0.34] on_read: 'password: '
- 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] match '[Pp]assword:'
- 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] event(PASSWORD)
- 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] ==> PASSWORD
- 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] set_patterns([('^(\\*\\s)?\\S+? #', 'PROMPT'), ('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('(^Press <SPACE> to continue or <Q> to quit:)', 'PAGER')])
- 2012-04-18 14:32:39,516 [TELNET: 172.16.0.34] submit(u'twtwan',bulk_lines=None)
- 2012-04-18 14:32:39,521 [TELNET: 172.16.0.34] on_read: '\r\n\r\r\n'
- 2012-04-18 14:32:39,564 [TELNET: 172.16.0.34] on_read: "\rExtremeXOS\r\nCopyright (C) 2000-2011 Extreme Networks. All rights reserved.\r\nProtected by US Patent Nos: 6,678,248; 6,104,700; 6,766,482; 6,618,388; 6,034,957; 6,859,438; 6,912,592; 6,954,436; 6,977,891; 6,980,550; 6,981,174; 7,003,705; 7,017,082; 7,046,665; 7,126,923; 7,142,509; 7,149,217; 7,152,124; 7,154,861; 7,245,619; 7,245,629; 7,269,135.\r\n==============================================================================\r\n\r\nPress the <tab> or '?' key at any time for completions.\r\nRemember to save your configuration changes.\r\n\r\n\r\n"
- 2012-04-18 14:32:39,576 [TELNET: 172.16.0.34] on_read: 'kiev-n1-bsw4.comstar-ua.net.1 # '
- 2012-04-18 14:32:39,576 [TELNET: 172.16.0.34] match '^(\*\s)?\S+? #'
- 2012-04-18 14:32:39,576 [TELNET: 172.16.0.34] event(PROMPT)
- 2012-04-18 14:32:39,576 [TELNET: 172.16.0.34] ==> PROMPT
- 2012-04-18 14:32:39,577 [TELNET: 172.16.0.34] on_PROMPT_enter
- 2012-04-18 14:32:39,577 [TELNET: 172.16.0.34] Using prompt pattern: ^(\*\s)?\S+? #
- 2012-04-18 14:32:39,577 [TELNET: 172.16.0.34] set_patterns([('^(\\*\\s)?\\S+? #', 'PROMPT'), ('(^Press <SPACE> to continue or <Q> to quit:)', 'PAGER')])
- 2012-04-18 14:32:39,607 [script-172.16.0.34-Extreme.XOS.get_interfaces] CLI Provider is ready
- 2012-04-18 14:32:39,607 [script-172.16.0.34-Extreme.XOS.get_interfaces] Disable paging
- 2012-04-18 14:32:39,607 [script-172.16.0.34-Extreme.XOS.get_interfaces] cli(disable clipaging)
- 2012-04-18 14:32:39,607 [TELNET: 172.16.0.34] submit('disable clipaging',bulk_lines=None)
- 2012-04-18 14:32:40,578 Tick
- 2012-04-18 14:32:40,578 Resetting wait ticks
- 2012-04-18 14:32:40,580 [TELNET: 172.16.0.34] on_read: 'disable clipaging\r\n\r'
- 2012-04-18 14:32:40,582 [TELNET: 172.16.0.34] on_read: 'kiev-n1-bsw4.comstar-ua.net.2 # '
- 2012-04-18 14:32:40,582 [TELNET: 172.16.0.34] match '^(\*\s)?\S+? #'
- 2012-04-18 14:32:40,582 [TELNET: 172.16.0.34] event(PROMPT)
- 2012-04-18 14:32:40,608 [script-172.16.0.34-Extreme.XOS.get_interfaces] cli(disable clipaging) returns:
- ===[ disable clipaging ]================================================
- ''
- ========================================================================
- 2012-04-18 14:32:40,608 [TELNET: 172.16.0.34] submit('show vlan detail',bulk_lines=None)
- 2012-04-18 14:32:41,583 Tick
- 2012-04-18 14:32:41,583 Resetting wait ticks
- 2012-04-18 14:32:41,585 [TELNET: 172.16.0.34] on_read: 'show vlan detail\r\n\r'
- 2012-04-18 14:32:41,637 [TELNET: 172.16.0.34] on_read: 'VLAN Interface with name Default created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
- 2012-04-18 14:32:41,672 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
- 2012-04-18 14:32:41,693 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\t'
- 2012-04-18 14:32:41,712 [TELNET: 172.16.0.34] on_read: 'None'
- 2012-04-18 14:32:41,725 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
- 2012-04-18 14:32:41,731 [TELNET: 172.16.0.34] on_read: 's0('
- 2012-04-18 14:32:41,735 [TELNET: 172.16.0.34] on_read: 'Disabled'
- 2012-04-18 14:32:41,737 [TELNET: 172.16.0.34] on_read: ',Auto-bind) '
- 2012-04-18 14:32:41,784 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
- 2012-04-18 14:32:41,895 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 0. \t (Number of active ports=0)\r\n'
- 2012-04-18 14:32:41,925 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:41,942 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name ITSystems created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1502 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
- 2012-04-18 14:32:41,983 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
- 2012-04-18 14:32:42,006 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\t'
- 2012-04-18 14:32:42,012 [TELNET: 172.16.0.34] on_read: 'None'
- 2012-04-18 14:32:42,039 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
- 2012-04-18 14:32:42,064 [TELNET: 172.16.0.34] on_read: 'None'
- 2012-04-18 14:32:42,081 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols'
- 2012-04-18 14:32:42,095 [TELNET: 172.16.0.34] on_read: '\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
- 2012-04-18 14:32:42,201 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 2. \t (Number of active ports=2)'
- 2012-04-18 14:32:42,249 [TELNET: 172.16.0.34] on_read: '\r\n Untag: '
- 2012-04-18 14:32:42,261 [TELNET: 172.16.0.34] on_read: ' *45g'
- 2012-04-18 14:32:42,292 [TELNET: 172.16.0.34] on_read: '\r\n Tag: *1g'
- 2012-04-18 14:32:42,370 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port'
- 2012-04-18 14:32:42,382 [TELNET: 172.16.0.34] on_read: '\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
- 2012-04-18 14:32:42,403 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:42,415 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:42,444 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\n'
- 2012-04-18 14:32:42,448 [TELNET: 172.16.0.34] on_read: 'VLAN Interface with name Manage created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1000 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
- 2012-04-18 14:32:42,491 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
- 2012-04-18 14:32:42,503 [TELNET: 172.16.0.34] on_read: '\r\n\tPrimary IP : 172.16.0.34/28'
- 2012-04-18 14:32:42,519 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\tNone'
- 2012-04-18 14:32:42,535 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
- 2012-04-18 14:32:42,539 [TELNET: 172.16.0.34] on_read: 'None'
- 2012-04-18 14:32:42,567 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
- 2012-04-18 14:32:42,686 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 1. \t (Number of active ports=1)'
- 2012-04-18 14:32:42,686 Tick
- 2012-04-18 14:32:42,686 Resetting wait ticks
- 2012-04-18 14:32:42,747 [TELNET: 172.16.0.34] on_read: '\r\n Tag: *1g'
- 2012-04-18 14:32:42,778 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
- 2012-04-18 14:32:42,822 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:42,833 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:42,862 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name Mgmt created by user\r\n\tAdmin State:\tEnabled '
- 2012-04-18 14:32:42,865 [TELNET: 172.16.0.34] on_read: '\tTagging:\t802.1Q Tag 4095 \r\n\tDescription:\tManagement VLAN \r\n\tVirtual router:\tVR-Mgmt'
- 2012-04-18 14:32:42,905 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
- 2012-04-18 14:32:42,924 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\tNone'
- 2012-04-18 14:32:42,974 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\tNone'
- 2012-04-18 14:32:42,997 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tFlood Rate Limit QosProfile: None configured'
- 2012-04-18 14:32:43,114 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 1. \t (Number of active ports=1)\r\n\t Untag: Mgmt-port on Mgmt is active\r\n'
- 2012-04-18 14:32:43,134 [TELNET: 172.16.0.34] on_read: '\r\n\r\n'
- 2012-04-18 14:32:43,164 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name MYST created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1737 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
- 2012-04-18 14:32:43,205 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
- 2012-04-18 14:32:43,223 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\t'
- 2012-04-18 14:32:43,236 [TELNET: 172.16.0.34] on_read: 'None'
- 2012-04-18 14:32:43,253 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
- 2012-04-18 14:32:43,276 [TELNET: 172.16.0.34] on_read: 'None'
- 2012-04-18 14:32:43,297 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
- 2012-04-18 14:32:43,404 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 2. \t (Number of active ports=2)'
- 2012-04-18 14:32:43,467 [TELNET: 172.16.0.34] on_read: '\r\n Tag: *46(MYST_IPT)'
- 2012-04-18 14:32:43,515 [TELNET: 172.16.0.34] on_read: ', *1g'
- 2012-04-18 14:32:43,549 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
- 2012-04-18 14:32:43,590 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:43,597 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:43,628 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name Sonico_IPT created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1501 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
- 2012-04-18 14:32:43,663 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
- 2012-04-18 14:32:43,689 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\t'
- 2012-04-18 14:32:43,690 Tick
- 2012-04-18 14:32:43,690 Resetting wait ticks
- 2012-04-18 14:32:43,719 [TELNET: 172.16.0.34] on_read: 'None\r\n\tSTPD: \t\t'
- 2012-04-18 14:32:43,741 [TELNET: 172.16.0.34] on_read: 'None'
- 2012-04-18 14:32:43,752 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols'
- 2012-04-18 14:32:43,762 [TELNET: 172.16.0.34] on_read: '\r\n\tLoopback: \tDisabled'
- 2012-04-18 14:32:43,763 [TELNET: 172.16.0.34] on_read: '\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
- 2012-04-18 14:32:43,871 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 2. \t (Number of active ports=2)'
- 2012-04-18 14:32:43,934 [TELNET: 172.16.0.34] on_read: '\r\n Tag: *47(Soniko-Full_IPT)'
- 2012-04-18 14:32:43,976 [TELNET: 172.16.0.34] on_read: ', *1g'
- 2012-04-18 14:32:44,019 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
- 2012-04-18 14:32:44,052 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:44,077 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:44,131 [TELNET: 172.16.0.34] on_read: '#\r\n#\r\nVLAN Interface with name Telenet_IPT created by user\r\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1740 \r\n\tDescription:\tNone\r\n\tVirtual router:\tVR-Default'
- 2012-04-18 14:32:44,150 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv4 Forwarding: Disabled'
- 2012-04-18 14:32:44,183 [TELNET: 172.16.0.34] on_read: '\r\n\tIPv6 Forwarding: Disabled\r\n\tIPv6: \t\tNone'
- 2012-04-18 14:32:44,203 [TELNET: 172.16.0.34] on_read: '\r\n\tSTPD: \t\t'
- 2012-04-18 14:32:44,216 [TELNET: 172.16.0.34] on_read: 'None'
- 2012-04-18 14:32:44,247 [TELNET: 172.16.0.34] on_read: '\r\n\tProtocol: \tMatch all unfiltered protocols\r\n\tLoopback: \tDisabled\r\n\tNetLogin: \tDisabled\r\n\tQosProfile: \tNone configured\r\n\tEgress Rate Limit Designated Port: None configured\r\n\tFlood Rate Limit QosProfile: None configured'
- 2012-04-18 14:32:44,361 [TELNET: 172.16.0.34] on_read: '\r\n\tPorts:\t 2. \t (Number of active ports=2)'
- 2012-04-18 14:32:44,409 [TELNET: 172.16.0.34] on_read: '\r\n Tag: '
- 2012-04-18 14:32:44,433 [TELNET: 172.16.0.34] on_read: '*47(Soniko-Full_IPT)'
- 2012-04-18 14:32:44,453 [TELNET: 172.16.0.34] on_read: ', *1g'
- 2012-04-18 14:32:44,496 [TELNET: 172.16.0.34] on_read: '\r\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\r\n (b) Port blocked on the vlan, (m) Mac-Based port\r\n (a) Egress traffic allowed for NetLogin\r\n (u) Egress traffic unallowed for NetLogin\r\n (t) Translate VLAN tag for Private-VLAN\r\n (s) Private-VLAN System Port, (L) Loopback port\r\n (e) Private-VLAN End Point Port\r\n (x) VMAN Tag Translated port\r\n (G) Multi-switch LAG Group port'
- 2012-04-18 14:32:44,519 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:44,534 [TELNET: 172.16.0.34] on_read: '\r\n'
- 2012-04-18 14:32:44,535 [TELNET: 172.16.0.34] on_read: 'kiev-n1-bsw4.comstar-ua.net.3 # '
- 2012-04-18 14:32:44,536 [TELNET: 172.16.0.34] match '^(\*\s)?\S+? #'
- 2012-04-18 14:32:44,536 [TELNET: 172.16.0.34] event(PROMPT)
- 2012-04-18 14:32:44,573 [script-172.16.0.34-Extreme.XOS.get_interfaces] cli(show vlan detail) returns:
- ===[ show vlan detail ]=================================================
- 'VLAN Interface with name Default created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\ts0(Disabled,Auto-bind) \n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 0. \t (Number of active ports=0)\n\n#\n#\nVLAN Interface with name ITSystems created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1502 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 2. \t (Number of active ports=2)\n Untag: *45g\n Tag: *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (e) Private-VLAN End Point Port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n\n#\n#\nVLAN Interface with name Manage created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1000 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tPrimary IP : 172.16.0.34/28\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 1. \t (Number of active ports=1)\n Tag: *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (e) Private-VLAN End Point Port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n\n#\n#\nVLAN Interface with name Mgmt created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 4095 \n\tDescription:\tManagement VLAN \n\tVirtual router:\tVR-Mgmt\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 1. \t (Number of active ports=1)\n\t Untag: Mgmt-port on Mgmt is active\n\n\n#\n#\nVLAN Interface with name MYST created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1737 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 2. \t (Number of active ports=2)\n Tag: *46(MYST_IPT), *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n
- ========================================================================
- 2012-04-18 14:32:44,588 [script-172.16.0.34-Extreme.XOS.get_interfaces] Script traceback:
- <type 'exceptions.KeyError'>
- 'untagged'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Extreme/XOS/get_interfaces.py (Line: 86)
- Function: execute
- 79 match = self.rx_tagged.match(l)
- 80 if match:
- 81 current["tagged"] += self.parse_interfaces(match.group("ifaces"))
- 82 continue
- 83 # Process untagged
- 84 match = self.rx_untagged.match(l)
- 85 if match:
- 86 ==> current["untagged"] += self.parse_interfaces(match.group("ifaces"))
- 87 continue
- 88 # Save last VLAN
- 89 if current:
- 90 vlans += [current]
- 91 # Process parsed data
- 92 interfaces = []
- Variables:
- self = <Script(script-172.16.0.34-Extreme.XOS.get_interfaces, started 140219681998592)>
- l = 'Untag: *45g'
- current = {}
- v = 'VLAN Interface with name Default created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\ts0(Disabled,Auto-bind) \n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 0. \t (Number of active ports=0)\n\n#\n#\nVLAN Interface with name ITSystems created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1502 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 2. \t (Number of active ports=2)\n Untag: *45g\n Tag: *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (e) Private-VLAN End Point Port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n\n#\n#\nVLAN Interface with name Manage created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1000 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tPrimary IP : 172.16.0.34/28\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 1. \t (Number of active ports=1)\n Tag: *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic allowed for NetLogin\n (u) Egress traffic unallowed for NetLogin\n (t) Translate VLAN tag for Private-VLAN\n (s) Private-VLAN System Port, (L) Loopback port\n (e) Private-VLAN End Point Port\n (x) VMAN Tag Translated port\n (G) Multi-switch LAG Group port\n\n#\n#\nVLAN Interface with name Mgmt created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 4095 \n\tDescription:\tManagement VLAN \n\tVirtual router:\tVR-Mgmt\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 1. \t (Number of active ports=1)\n\t Untag: Mgmt-port on Mgmt is active\n\n\n#\n#\nVLAN Interface with name MYST created by user\n\tAdmin State:\tEnabled \tTagging:\t802.1Q Tag 1737 \n\tDescription:\tNone\n\tVirtual router:\tVR-Default\n\tIPv4 Forwarding: Disabled\n\tIPv6 Forwarding: Disabled\n\tIPv6: \t\tNone\n\tSTPD: \t\tNone\n\tProtocol: \tMatch all unfiltered protocols\n\tLoopback: \tDisabled\n\tNetLogin: \tDisabled\n\tQosProfile: \tNone configured\n\tEgress Rate Limit Designated Port: None configured\n\tFlood Rate Limit QosProfile: None configured\n\tPorts:\t 2. \t (Number of active ports=2)\n Tag: *46(MYST_IPT), *1g\n\tFlags: (*) Active, (!) Disabled, (g) Load Sharing port\n (b) Port blocked on the vlan, (m) Mac-Based port\n (a) Egress traffic
- vlans = []
- match = <_sre.SRE_Match object at 0x2d2dc60>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 412)
- Function: guarded_run
- 405 return result
- 406 except KeyError:
- 407 self.debug("Not in call cache: %r, %r" % (self.name,
- 408 self.kwargs))
- 409 pass
- 410 # Calling script body
- 411 self._thread_id = thread.get_ident()
- 412 ==> result = self.execute(**self.kwargs)
- 413 # Enforce interface result checking
- 414 for i in self.implements:
- 415 result = i.script_clean_result(self.profile, result)
- 416 # Cache result when required
- 417 if self.cache and self.parent is not None:
- 418 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x260e950>
- self = <Script(script-172.16.0.34-Extreme.XOS.get_interfaces, started 140219681998592)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 435)
- Function: run
- 428
- 429 def run(self):
- 430 """Script thread worker method"""
- 431 self.debug("Running")
- 432 result = None
- 433 try:
- 434 with self.cancelable():
- 435 ==> result = self.guarded_run()
- 436 except TimeOutError:
- 437 self.error("Timed out")
- 438 self.e_timeout = True
- 439 except CancelledError:
- 440 self.error("Cancelled")
- 441 self.e_cancel = True
- Variables:
- self = <Script(script-172.16.0.34-Extreme.XOS.get_interfaces, started 140219681998592)>
- r = ["<type 'exceptions.KeyError'>", "'untagged'"]
- result = None
- v = KeyError('untagged',)
- tb = <traceback object at 0x2d3c758>
- t = <type 'exceptions.KeyError'>
- ------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement