Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-08-28 16:06:55,884 SSH: Using gmpy
- 2014-08-28 16:06:56,326 Using JSON library: cjson
- 2014-08-28 16:06:56,739 Loading PeriodicRegistry
- 2014-08-28 16:06:56,757 Loading DownloaderRegistry
- 2014-08-28 16:06:56,847 Loading ProfileRegistry
- 2014-08-28 16:06:58,191 Loading ScriptRegistry
- 2014-08-28 16:06:58,497 Setting up 'select' polling method
- 2014-08-28 16:06:58,498 Activating 'select' poller
- 2014-08-28 16:06:58,498 Loading private ssh key from 'etc/ssh/id_rsa'
- 2014-08-28 16:06:58,498 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Juniper.JUNOS"
- scheme: SSH
- address: "172.30.2.151"
- user: "nimda"
- password: "password"
- attrs {
- key: "platform"
- value: "qfx3500s"
- }
- attrs {
- key: "vendor"
- value: "Juniper"
- }
- attrs {
- key: "version"
- value: "12.3X50-D10.3"
- }
- }
- object_name: "jpqfx3500-1-s10.net.billing.ru"
- script: "Juniper.JUNOS.get_vlans"
- 2014-08-28 16:06:58,503 Running socket factory (SelectPoller)
- 2014-08-28 16:06:58,503 Running script thread
- 2014-08-28 16:06:58,504 Creating transaction id=1198226780 method=None callback=None
- 2014-08-28 16:06:58,504 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running
- 2014-08-28 16:06:58,505 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running script: Juniper.JUNOS.get_vlans ({})
- 2014-08-28 16:06:58,505 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(show vlan brief)
- 2014-08-28 16:06:58,505 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running new provider
- 2014-08-28 16:06:58,506 [SSH: 172.30.2.151] ==> SSH_START
- 2014-08-28 16:06:58,506 [SSH: 172.30.2.151] set_timeout(30)
- 2014-08-28 16:06:58,506 register_socket(<CLISSHSocket(0x412ca10, 172.30.2.151:22, )>,None)
- 2014-08-28 16:06:59,504 Tick
- 2014-08-28 16:06:59,505 3 TICKS TO EXIT
- 2014-08-28 16:06:59,505 [SSH: 172.30.2.151] Initializing socket
- 2014-08-28 16:06:59,505 [SSH: 172.30.2.151] Connecting 172.30.2.151:22
- 2014-08-28 16:06:59,520 [SSH: 172.30.2.151] Connected
- 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] event(SSH_VERSION)
- 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] ==> SSH_VERSION
- 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] Remote protocol version 2.0, remote software version OpenSSH_6.0
- 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] Setting SSH transforms to: in=none none, out=none none
- 2014-08-28 16:06:59,710 [SSH: 172.30.2.151] Setting SSH transform keys
- 2014-08-28 16:06:59,711 [SSH: 172.30.2.151] Sending message type MSG_KEXINIT (20)
- 2014-08-28 16:06:59,711 [SSH: 172.30.2.151] event(SSH_KEY_EXCHANGE)
- 2014-08-28 16:06:59,711 [SSH: 172.30.2.151] ==> SSH_KEY_EXCHANGE
- 2014-08-28 16:06:59,777 [SSH: 172.30.2.151] Receiving message type MSG_KEXINIT (20)
- 2014-08-28 16:06:59,778 [SSH: 172.30.2.151] Receiving server proposals: kex=['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] key=['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] enc_cs=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] enc_sc=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] mac_cs=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] mac_sc=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] comp_cs=['none', 'zlib@openssh.com'] comp_sc['none', 'zlib@openssh.com']
- 2014-08-28 16:06:59,778 [SSH: 172.30.2.151] Setting SSH transforms to: in=aes256-ctr hmac-sha1, out=aes256-ctr hmac-sha1
- 2014-08-28 16:06:59,778 [SSH: 172.30.2.151] Selecting diffie-hellman-group-exchange-sha1 ssh-rsa, in=(aes256-ctr hmac-sha1 none) out=(aes256-ctr hmac-sha1 none)
- 2014-08-28 16:06:59,778 [SSH: 172.30.2.151] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
- 2014-08-28 16:06:59,827 [SSH: 172.30.2.151] Receiving message type MSG_KEXDH_REPLY (31)
- 2014-08-28 16:06:59,829 [SSH: 172.30.2.151] Sending message type MSG_KEX_DH_GEX_INIT (32)
- 2014-08-28 16:07:00,593 [SSH: 172.30.2.151] Receiving message type MSG_KEX_DH_GEX_REPLY (33)
- 2014-08-28 16:07:00,593 [SSH: 172.30.2.151] Server PK fingerprint: 3a:21:a2:49:17:0c:4d:c5:e4:d0:58:55:33:c7:a0:ec
- 2014-08-28 16:07:00,596 [SSH: 172.30.2.151] Setting SSH transform keys
- 2014-08-28 16:07:00,597 [SSH: 172.30.2.151] Sending message type MSG_NEWKEYS (21)
- 2014-08-28 16:07:00,597 [SSH: 172.30.2.151] Receiving message type MSG_NEWKEYS (21)
- 2014-08-28 16:07:00,597 [SSH: 172.30.2.151] Using new keys
- 2014-08-28 16:07:00,598 [SSH: 172.30.2.151] event(SSH_AUTH)
- 2014-08-28 16:07:00,598 [SSH: 172.30.2.151] ==> SSH_AUTH
- 2014-08-28 16:07:00,598 [SSH: 172.30.2.151] Requesting service ssh-userauth
- 2014-08-28 16:07:00,599 [SSH: 172.30.2.151] Sending message type MSG_SERVICE_REQUEST (5)
- 2014-08-28 16:07:00,599 Tick
- 2014-08-28 16:07:00,599 Resetting wait ticks
- 2014-08-28 16:07:00,602 [SSH: 172.30.2.151] Receiving message type MSG_SERVICE_ACCEPT (6)
- 2014-08-28 16:07:00,602 [SSH: 172.30.2.151] Starting service ssh-userauth
- 2014-08-28 16:07:00,603 [SSH: 172.30.2.151] event(SSH_AUTH_PASSWORD)
- 2014-08-28 16:07:00,603 [SSH: 172.30.2.151] ==> SSH_AUTH_PASSWORD
- 2014-08-28 16:07:00,603 [SSH: 172.30.2.151] Authenticating with 'none' method
- 2014-08-28 16:07:00,603 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:07:00,614 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2014-08-28 16:07:00,614 [SSH: 172.30.2.151] Authentication method 'none' has been failed. Trying next method (publickey,password,keyboard-interactive)
- 2014-08-28 16:07:00,615 [SSH: 172.30.2.151] Partially authenticated with 'none'. Trying next method
- 2014-08-28 16:07:00,615 [SSH: 172.30.2.151] Authenticating with 'publickey' method
- 2014-08-28 16:07:00,616 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:07:00,624 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2014-08-28 16:07:00,624 [SSH: 172.30.2.151] Authentication method 'publickey' has been failed. Trying next method (publickey,password,keyboard-interactive)
- 2014-08-28 16:07:00,625 [SSH: 172.30.2.151] Partially authenticated with 'publickey'. Trying next method
- 2014-08-28 16:07:00,625 [SSH: 172.30.2.151] Authenticating with 'password' method
- 2014-08-28 16:07:00,625 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:07:00,639 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_SUCCESS (52)
- 2014-08-28 16:07:00,639 [SSH: 172.30.2.151] event(SSH_CHANNEL)
- 2014-08-28 16:07:00,639 [SSH: 172.30.2.151] ==> SSH_CHANNEL
- 2014-08-28 16:07:00,639 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_OPEN (90)
- 2014-08-28 16:07:00,651 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
- 2014-08-28 16:07:00,651 [SSH: 172.30.2.151] Opening channel. local=0 remote=0
- 2014-08-28 16:07:00,651 [SSH: 172.30.2.151] event(SSH_PTY)
- 2014-08-28 16:07:00,652 [SSH: 172.30.2.151] ==> SSH_PTY
- 2014-08-28 16:07:00,652 [SSH: 172.30.2.151] Requesting PTY
- 2014-08-28 16:07:00,652 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_REQUEST (98)
- 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] event(SSH_SHELL)
- 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] ==> SSH_SHELL
- 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] Requesting shell
- 2014-08-28 16:07:00,661 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_REQUEST (98)
- 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_WINDOW_ADJUST (93)
- 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] event(START)
- 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] ==> START
- 2014-08-28 16:07:00,671 [SSH: 172.30.2.151] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-08-28 16:07:00,761 [SSH: 172.30.2.151] on_read: '--- JUNOS 12.3X50-D10.3 built 2012-12-08 09:01:50 UTC\r\n'
- 2014-08-28 16:07:01,430 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
- 2014-08-28 16:07:01,432 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:07:01,433 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:07:01,434 [SSH: 172.30.2.151] event(PROMPT)
- 2014-08-28 16:07:01,435 [SSH: 172.30.2.151] ==> PROMPT
- 2014-08-28 16:07:01,436 [SSH: 172.30.2.151] on_PROMPT_enter
- 2014-08-28 16:07:01,437 [SSH: 172.30.2.151] Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
- 2014-08-28 16:07:01,438 [SSH: 172.30.2.151] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-08-28 16:07:01,477 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] CLI Provider is ready
- 2014-08-28 16:07:01,478 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Disable paging
- 2014-08-28 16:07:01,478 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(set cli screen-length 0)
- 2014-08-28 16:07:01,480 [SSH: 172.30.2.151] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
- 2014-08-28 16:07:01,481 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_DATA (94)
- 2014-08-28 16:07:02,441 Tick
- 2014-08-28 16:07:02,441 Resetting wait ticks
- 2014-08-28 16:07:02,445 [SSH: 172.30.2.151] on_read: 's'
- 2014-08-28 16:07:02,446 [SSH: 172.30.2.151] on_read: 'et'
- 2014-08-28 16:07:02,450 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:07:02,451 [SSH: 172.30.2.151] on_read: 'cl'
- 2014-08-28 16:07:02,453 [SSH: 172.30.2.151] on_read: 'i'
- 2014-08-28 16:07:02,456 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:07:02,457 [SSH: 172.30.2.151] on_read: 'screen-length'
- 2014-08-28 16:07:02,459 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:07:02,461 [SSH: 172.30.2.151] on_read: '0'
- 2014-08-28 16:07:02,465 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:07:02,467 [SSH: 172.30.2.151] on_read: '\r\n'
- 2014-08-28 16:07:02,470 [SSH: 172.30.2.151] on_read: 'Screen length set to 0\r\n'
- 2014-08-28 16:07:02,471 [SSH: 172.30.2.151] on_read: '\r\n'
- 2014-08-28 16:07:02,472 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
- 2014-08-28 16:07:02,472 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:07:02,472 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:07:02,473 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:07:02,473 [SSH: 172.30.2.151] event(PROMPT)
- 2014-08-28 16:07:02,482 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(set cli screen-length 0) returns:
- ===[ set cli screen-length 0 ]==========================================
- ' \nScreen length set to 0\n\n'
- ========================================================================
- 2014-08-28 16:07:02,482 [SSH: 172.30.2.151] submit('show vlan brief', bulk_lines=None, streaming=False)
- 2014-08-28 16:07:02,483 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_DATA (94)
- 2014-08-28 16:07:03,474 Tick
- 2014-08-28 16:07:03,474 Resetting wait ticks
- 2014-08-28 16:07:03,479 [SSH: 172.30.2.151] on_read: 'show'
- 2014-08-28 16:07:03,482 [SSH: 172.30.2.151] on_read: ' vlan'
- 2014-08-28 16:07:03,491 [SSH: 172.30.2.151] on_read: 's br'
- 2014-08-28 16:07:03,493 [SSH: 172.30.2.151] on_read: 'ief'
- 2014-08-28 16:07:03,583 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:07:03,586 [SSH: 172.30.2.151] on_read: '\r\n'
- 2014-08-28 16:07:03,597 [SSH: 172.30.2.151] on_read: ' Ports \r\nName Tag Primary Address Active/Total\r\nDC_AUX 323 172.30.123.253/24 2/2\r\n'
- 2014-08-28 16:07:03,609 [SSH: 172.30.2.151] on_read: 'DC_MNG 302 172.30.2.151/23 2/2\r\n'
- 2014-08-28 16:07:03,610 [SSH: 172.30.2.151] on_read: 'DC_SRV0 300 24/26\r\nDC_SRV5 305 4/4\r\n'
- 2014-08-28 16:07:03,613 [SSH: 172.30.2.151] on_read: 'DC_STORE 413 33/42\r\n'
- 2014-08-28 16:07:03,613 [SSH: 172.30.2.151] on_read: 'DC_STORE2 415 25/27\r\nDC_TVM_STOR 325 3/7\r\n'
- 2014-08-28 16:07:03,615 [SSH: 172.30.2.151] on_read: 'DC_VBACKUP 416 21/22\r\n'
- 2014-08-28 16:07:03,618 [SSH: 172.30.2.151] on_read: 'DC_VCLOUD_RELEASE 417 5/5\r\nDC_VDI_EDU 370 11/12\r\n'
- 2014-08-28 16:07:03,620 [SSH: 172.30.2.151] on_read: 'DC_VMWARE 424 23/25\r\n'
- 2014-08-28 16:07:03,623 [SSH: 172.30.2.151] on_read: 'DC_VM_TSTLAB 259 3/3\r\n'
- 2014-08-28 16:07:03,624 [SSH: 172.30.2.151] on_read: 'DC_vlan1 1 \r\n'
- 2014-08-28 16:07:03,626 [SSH: 172.30.2.151] on_read: 'MC_AE_QFX1-2 500 3.3.3.1/30 1/1\r\n'
- 2014-08-28 16:07:03,628 [SSH: 172.30.2.151] on_read: 'default \r\n'
- 2014-08-28 16:07:03,629 [SSH: 172.30.2.151] on_read: '\r\n'
- 2014-08-28 16:07:03,630 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
- 2014-08-28 16:07:03,631 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:07:03,631 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:07:03,631 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:07:03,632 [SSH: 172.30.2.151] event(PROMPT)
- 2014-08-28 16:07:03,648 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(show vlan brief) returns:
- ===[ show vlan brief ]==================================================
- [{'name': 'DC_AUX', 'vlan_id': '323'}, {'name': 'DC_MNG', 'vlan_id': '302'}, {'name': 'DC_SRV0', 'vlan_id': '300'}, {'name': 'DC_SRV5', 'vlan_id': '305'}, {'name': 'DC_STORE', 'vlan_id': '413'}, {'name': 'DC_STORE2', 'vlan_id': '415'}, {'name': 'DC_TVM_STOR', 'vlan_id': '325'}, {'name': 'DC_VBACKUP', 'vlan_id': '416'}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': '417'}, {'name': 'DC_VDI_EDU', 'vlan_id': '370'}, {'name': 'DC_VMWARE', 'vlan_id': '424'}, {'name': 'DC_VM_TSTLAB', 'vlan_id': '259'}, {'name': 'DC_vlan1', 'vlan_id': '1'}, {'name': 'MC_AE_QFX1-2', 'vlan_id': '500'}]
- ========================================================================
- 2014-08-28 16:07:03,649 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Script returns with result: [{'name': 'DC_AUX', 'vlan_id': 323}, {'name': 'DC_MNG', 'vlan_id': 302}, {'name': 'DC_SRV0', 'vlan_id': 300}, {'name': 'DC_SRV5', 'vlan_id': 305}, {'name': 'DC_STORE', 'vlan_id': 413}, {'name': 'DC_STORE2', 'vlan_id': 415}, {'name': 'DC_TVM_STOR', 'vlan_id': 325}, {'name': 'DC_VBACKUP', 'vlan_id': 416}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417}, {'name': 'DC_VDI_EDU', 'vlan_id': 370}, {'name': 'DC_VMWARE', 'vlan_id': 424}, {'name': 'DC_VM_TSTLAB', 'vlan_id': 259}, {'name': 'DC_vlan1', 'vlan_id': 1}, {'name': 'MC_AE_QFX1-2', 'vlan_id': 500}]
- 2014-08-28 16:07:03,649 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Closing
- 2014-08-28 16:07:03,649 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x412ca10, 172.30.2.151:22, connected)>>(*(), **{'flush': True})
- 2014-08-28 16:07:04,633 Tick
- 2014-08-28 16:07:04,634 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x412ca10, 172.30.2.151:22, connected)>>(*(), **{'flush': True})
- 2014-08-28 16:07:04,634 [SSH: 172.30.2.151] Closing socket
- 2014-08-28 16:07:04,634 unregister_socket(<CLISSHSocket(0x412ca10, 172.30.2.151:22, closing)>)
- 2014-08-28 16:07:04,634 3 TICKS TO EXIT
- 2014-08-28 16:07:05,636 Tick
- 2014-08-28 16:07:05,636 2 TICKS TO EXIT
- 2014-08-28 16:07:06,637 Tick
- 2014-08-28 16:07:06,637 1 TICKS TO EXIT
- 2014-08-28 16:07:07,638 Tick
- 2014-08-28 16:07:07,639 EXIT
- 2014-08-28 16:07:07,641 SCRIPT RESULT: Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)
- [{'name': 'DC_AUX', 'vlan_id': 323},
- {'name': 'DC_MNG', 'vlan_id': 302},
- {'name': 'DC_SRV0', 'vlan_id': 300},
- {'name': 'DC_SRV5', 'vlan_id': 305},
- {'name': 'DC_STORE', 'vlan_id': 413},
- {'name': 'DC_STORE2', 'vlan_id': 415},
- {'name': 'DC_TVM_STOR', 'vlan_id': 325},
- {'name': 'DC_VBACKUP', 'vlan_id': 416},
- {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417},
- {'name': 'DC_VDI_EDU', 'vlan_id': 370},
- {'name': 'DC_VMWARE', 'vlan_id': 424},
- {'name': 'DC_VM_TSTLAB', 'vlan_id': 259},
- {'name': 'DC_vlan1', 'vlan_id': 1},
- {'name': 'MC_AE_QFX1-2', 'vlan_id': 500}]
- 2014-08-28 16:07:07,644 Shutting down the factory
- 2014-08-28 16:07:07,644 0 TICKS TO EXIT
- 2014-08-28 16:07:07,644 Stopping socket factory
- root@noc:/opt/noc# nano sa/profiles/Juniper/JUNOS/get_vlans.py
- root@noc:/opt/noc# ./noc debug-script get_vlans jpqfx3500-1-s10.net.billing.ru
- 2014-08-28 16:38:30,894 SSH: Using gmpy
- 2014-08-28 16:38:31,111 Using JSON library: cjson
- 2014-08-28 16:38:31,409 Loading PeriodicRegistry
- 2014-08-28 16:38:31,419 Loading DownloaderRegistry
- 2014-08-28 16:38:31,495 Loading ProfileRegistry
- 2014-08-28 16:38:33,118 Loading ScriptRegistry
- 2014-08-28 16:38:33,866 Setting up 'select' polling method
- 2014-08-28 16:38:33,868 Activating 'select' poller
- 2014-08-28 16:38:33,870 Loading private ssh key from 'etc/ssh/id_rsa'
- 2014-08-28 16:38:33,870 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Juniper.JUNOS"
- scheme: SSH
- address: "172.30.2.151"
- user: "nimda"
- password: "password"
- attrs {
- key: "platform"
- value: "qfx3500s"
- }
- attrs {
- key: "vendor"
- value: "Juniper"
- }
- attrs {
- key: "version"
- value: "12.3X50-D10.3"
- }
- }
- object_name: "jpqfx3500-1-s10.net.billing.ru"
- script: "Juniper.JUNOS.get_vlans"
- 2014-08-28 16:38:33,882 Running socket factory (SelectPoller)
- 2014-08-28 16:38:33,883 Running script thread
- 2014-08-28 16:38:33,883 Creating transaction id=802721418 method=None callback=None
- 2014-08-28 16:38:33,885 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running
- 2014-08-28 16:38:33,885 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running script: Juniper.JUNOS.get_vlans ({})
- 2014-08-28 16:38:33,886 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(show vlan brief)
- 2014-08-28 16:38:33,886 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Running new provider
- 2014-08-28 16:38:33,886 [SSH: 172.30.2.151] ==> SSH_START
- 2014-08-28 16:38:33,887 [SSH: 172.30.2.151] set_timeout(30)
- 2014-08-28 16:38:33,887 register_socket(<CLISSHSocket(0x32bda10, 172.30.2.151:22, )>,None)
- 2014-08-28 16:38:34,883 Tick
- 2014-08-28 16:38:34,883 3 TICKS TO EXIT
- 2014-08-28 16:38:34,883 [SSH: 172.30.2.151] Initializing socket
- 2014-08-28 16:38:34,883 [SSH: 172.30.2.151] Connecting 172.30.2.151:22
- 2014-08-28 16:38:34,893 [SSH: 172.30.2.151] Connected
- 2014-08-28 16:38:35,041 [SSH: 172.30.2.151] event(SSH_VERSION)
- 2014-08-28 16:38:35,041 [SSH: 172.30.2.151] ==> SSH_VERSION
- 2014-08-28 16:38:35,042 [SSH: 172.30.2.151] Remote protocol version 2.0, remote software version OpenSSH_6.0
- 2014-08-28 16:38:35,042 [SSH: 172.30.2.151] Setting SSH transforms to: in=none none, out=none none
- 2014-08-28 16:38:35,042 [SSH: 172.30.2.151] Setting SSH transform keys
- 2014-08-28 16:38:35,043 [SSH: 172.30.2.151] Sending message type MSG_KEXINIT (20)
- 2014-08-28 16:38:35,043 [SSH: 172.30.2.151] event(SSH_KEY_EXCHANGE)
- 2014-08-28 16:38:35,044 [SSH: 172.30.2.151] ==> SSH_KEY_EXCHANGE
- 2014-08-28 16:38:35,088 [SSH: 172.30.2.151] Receiving message type MSG_KEXINIT (20)
- 2014-08-28 16:38:35,089 [SSH: 172.30.2.151] Receiving server proposals: kex=['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] key=['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] enc_cs=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] enc_sc=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] mac_cs=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] mac_sc=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] comp_cs=['none', 'zlib@openssh.com'] comp_sc['none', 'zlib@openssh.com']
- 2014-08-28 16:38:35,089 [SSH: 172.30.2.151] Setting SSH transforms to: in=aes256-ctr hmac-sha1, out=aes256-ctr hmac-sha1
- 2014-08-28 16:38:35,089 [SSH: 172.30.2.151] Selecting diffie-hellman-group-exchange-sha1 ssh-rsa, in=(aes256-ctr hmac-sha1 none) out=(aes256-ctr hmac-sha1 none)
- 2014-08-28 16:38:35,089 [SSH: 172.30.2.151] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
- 2014-08-28 16:38:35,126 [SSH: 172.30.2.151] Receiving message type MSG_KEXDH_REPLY (31)
- 2014-08-28 16:38:35,128 [SSH: 172.30.2.151] Sending message type MSG_KEX_DH_GEX_INIT (32)
- 2014-08-28 16:38:35,714 [SSH: 172.30.2.151] Receiving message type MSG_KEX_DH_GEX_REPLY (33)
- 2014-08-28 16:38:35,714 [SSH: 172.30.2.151] Server PK fingerprint: 3a:21:a2:49:17:0c:4d:c5:e4:d0:58:55:33:c7:a0:ec
- 2014-08-28 16:38:35,717 [SSH: 172.30.2.151] Setting SSH transform keys
- 2014-08-28 16:38:35,717 [SSH: 172.30.2.151] Sending message type MSG_NEWKEYS (21)
- 2014-08-28 16:38:35,718 [SSH: 172.30.2.151] Receiving message type MSG_NEWKEYS (21)
- 2014-08-28 16:38:35,718 [SSH: 172.30.2.151] Using new keys
- 2014-08-28 16:38:35,718 [SSH: 172.30.2.151] event(SSH_AUTH)
- 2014-08-28 16:38:35,719 [SSH: 172.30.2.151] ==> SSH_AUTH
- 2014-08-28 16:38:35,719 [SSH: 172.30.2.151] Requesting service ssh-userauth
- 2014-08-28 16:38:35,719 [SSH: 172.30.2.151] Sending message type MSG_SERVICE_REQUEST (5)
- 2014-08-28 16:38:35,722 [SSH: 172.30.2.151] Receiving message type MSG_SERVICE_ACCEPT (6)
- 2014-08-28 16:38:35,722 [SSH: 172.30.2.151] Starting service ssh-userauth
- 2014-08-28 16:38:35,722 [SSH: 172.30.2.151] event(SSH_AUTH_PASSWORD)
- 2014-08-28 16:38:35,723 [SSH: 172.30.2.151] ==> SSH_AUTH_PASSWORD
- 2014-08-28 16:38:35,723 [SSH: 172.30.2.151] Authenticating with 'none' method
- 2014-08-28 16:38:35,723 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:38:35,733 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2014-08-28 16:38:35,734 [SSH: 172.30.2.151] Authentication method 'none' has been failed. Trying next method (publickey,password,keyboard-interactive)
- 2014-08-28 16:38:35,734 [SSH: 172.30.2.151] Partially authenticated with 'none'. Trying next method
- 2014-08-28 16:38:35,734 [SSH: 172.30.2.151] Authenticating with 'publickey' method
- 2014-08-28 16:38:35,735 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:38:35,740 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2014-08-28 16:38:35,740 [SSH: 172.30.2.151] Authentication method 'publickey' has been failed. Trying next method (publickey,password,keyboard-interactive)
- 2014-08-28 16:38:35,741 [SSH: 172.30.2.151] Partially authenticated with 'publickey'. Trying next method
- 2014-08-28 16:38:35,741 [SSH: 172.30.2.151] Authenticating with 'password' method
- 2014-08-28 16:38:35,741 [SSH: 172.30.2.151] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:38:35,752 [SSH: 172.30.2.151] Receiving message type MSG_USERAUTH_SUCCESS (52)
- 2014-08-28 16:38:35,752 [SSH: 172.30.2.151] event(SSH_CHANNEL)
- 2014-08-28 16:38:35,752 [SSH: 172.30.2.151] ==> SSH_CHANNEL
- 2014-08-28 16:38:35,752 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_OPEN (90)
- 2014-08-28 16:38:35,758 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
- 2014-08-28 16:38:35,758 [SSH: 172.30.2.151] Opening channel. local=0 remote=0
- 2014-08-28 16:38:35,758 [SSH: 172.30.2.151] event(SSH_PTY)
- 2014-08-28 16:38:35,759 [SSH: 172.30.2.151] ==> SSH_PTY
- 2014-08-28 16:38:35,759 [SSH: 172.30.2.151] Requesting PTY
- 2014-08-28 16:38:35,759 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_REQUEST (98)
- 2014-08-28 16:38:35,767 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2014-08-28 16:38:35,767 [SSH: 172.30.2.151] event(SSH_SHELL)
- 2014-08-28 16:38:35,767 [SSH: 172.30.2.151] ==> SSH_SHELL
- 2014-08-28 16:38:35,767 [SSH: 172.30.2.151] Requesting shell
- 2014-08-28 16:38:35,768 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_REQUEST (98)
- 2014-08-28 16:38:35,775 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_WINDOW_ADJUST (93)
- 2014-08-28 16:38:35,775 [SSH: 172.30.2.151] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2014-08-28 16:38:35,776 [SSH: 172.30.2.151] event(START)
- 2014-08-28 16:38:35,776 [SSH: 172.30.2.151] ==> START
- 2014-08-28 16:38:35,776 [SSH: 172.30.2.151] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-08-28 16:38:35,781 [SSH: 172.30.2.151] on_read: '--- JUNOS 12.3X50-D10.3 built 2012-12-08 09:01:50 UTC\r\n'
- 2014-08-28 16:38:36,282 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
- 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] event(PROMPT)
- 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] ==> PROMPT
- 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] on_PROMPT_enter
- 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
- 2014-08-28 16:38:36,283 [SSH: 172.30.2.151] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-08-28 16:38:36,284 Tick
- 2014-08-28 16:38:36,284 Resetting wait ticks
- 2014-08-28 16:38:36,303 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] CLI Provider is ready
- 2014-08-28 16:38:36,304 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Disable paging
- 2014-08-28 16:38:36,304 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(set cli screen-length 0)
- 2014-08-28 16:38:36,304 [SSH: 172.30.2.151] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
- 2014-08-28 16:38:36,304 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_DATA (94)
- 2014-08-28 16:38:37,285 Tick
- 2014-08-28 16:38:37,285 Resetting wait ticks
- 2014-08-28 16:38:37,289 [SSH: 172.30.2.151] on_read: 'set'
- 2014-08-28 16:38:37,295 [SSH: 172.30.2.151] on_read: ' cli'
- 2014-08-28 16:38:37,298 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:38:37,300 [SSH: 172.30.2.151] on_read: 's'
- 2014-08-28 16:38:37,301 [SSH: 172.30.2.151] on_read: 'creen-length'
- 2014-08-28 16:38:37,303 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:38:37,305 [SSH: 172.30.2.151] on_read: '0'
- 2014-08-28 16:38:37,310 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:38:37,311 [SSH: 172.30.2.151] on_read: '\r\n'
- 2014-08-28 16:38:37,314 [SSH: 172.30.2.151] on_read: 'Screen length set to 0\r\n'
- 2014-08-28 16:38:37,316 [SSH: 172.30.2.151] on_read: '\r\n'
- 2014-08-28 16:38:37,316 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
- 2014-08-28 16:38:37,317 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:38:37,317 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:38:37,317 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:38:37,317 [SSH: 172.30.2.151] event(PROMPT)
- 2014-08-28 16:38:37,320 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(set cli screen-length 0) returns:
- ===[ set cli screen-length 0 ]==========================================
- ' \nScreen length set to 0\n\n'
- ========================================================================
- 2014-08-28 16:38:37,320 [SSH: 172.30.2.151] submit('show vlan brief', bulk_lines=None, streaming=False)
- 2014-08-28 16:38:37,320 [SSH: 172.30.2.151] Sending message type MSG_CHANNEL_DATA (94)
- 2014-08-28 16:38:38,318 Tick
- 2014-08-28 16:38:38,318 Resetting wait ticks
- 2014-08-28 16:38:38,323 [SSH: 172.30.2.151] on_read: 'show'
- 2014-08-28 16:38:38,325 [SSH: 172.30.2.151] on_read: ' vlan'
- 2014-08-28 16:38:38,336 [SSH: 172.30.2.151] on_read: 's brief'
- 2014-08-28 16:38:38,433 [SSH: 172.30.2.151] on_read: ' '
- 2014-08-28 16:38:38,436 [SSH: 172.30.2.151] on_read: '\r\n'
- 2014-08-28 16:38:38,449 [SSH: 172.30.2.151] on_read: ' Ports \r\nName Tag Primary Address Active/Total\r\n'
- 2014-08-28 16:38:38,449 [SSH: 172.30.2.151] on_read: 'DC_AUX 323 172.30.123.253/24 2/2\r\n'
- 2014-08-28 16:38:38,460 [SSH: 172.30.2.151] on_read: 'DC_MNG 302 172.30.2.151/23 2/2\r\nDC_SRV0 \r\nDC_SRV5 \r\n'
- 2014-08-28 16:38:38,461 [SSH: 172.30.2.151] on_read: 'DC_STORE 413 32/42\r\n'
- 2014-08-28 16:38:38,465 [SSH: 172.30.2.151] on_read: 'DC_STORE2 415 25/27\r\n'
- 2014-08-28 16:38:38,465 [SSH: 172.30.2.151] on_read: 'DC_TVM_STOR 325 3/3\r\nDC_VBACKUP 416 21/22\r\n'
- 2014-08-28 16:38:38,467 [SSH: 172.30.2.151] on_read: 'DC_VCLOUD_RELEASE 417 5/5\r\n'
- 2014-08-28 16:38:38,469 [SSH: 172.30.2.151] on_read: 'DC_VDI_EDU 370 11/12\r\n'
- 2014-08-28 16:38:38,470 [SSH: 172.30.2.151] on_read: 'DC_VMWARE 424 23/25\r\n'
- 2014-08-28 16:38:38,472 [SSH: 172.30.2.151] on_read: 'DC_VM_TSTLAB 259 3/3\r\n'
- 2014-08-28 16:38:38,474 [SSH: 172.30.2.151] on_read: 'DC_vlan1 1 \r\n'
- 2014-08-28 16:38:38,477 [SSH: 172.30.2.151] on_read: 'MC_AE_QFX1-2 500 3.3.3.1/30 1/1\r\ndefault \r\n\r\n'
- 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] on_read: 'nimda@jpqfx3500-1-s10> '
- 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] Starting synchronous FSM check
- 2014-08-28 16:38:38,478 [SSH: 172.30.2.151] event(PROMPT)
- 2014-08-28 16:38:38,485 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] cli(show vlan brief) returns:
- ===[ show vlan brief ]==================================================
- [{'name': 'DC_AUX', 'vlan_id': '323'}, {'name': 'DC_MNG', 'vlan_id': '302'}, {'name': 'DC_STORE', 'vlan_id': '413'}, {'name': 'DC_STORE2', 'vlan_id': '415'}, {'name': 'DC_TVM_STOR', 'vlan_id': '325'}, {'name': 'DC_VBACKUP', 'vlan_id': '416'}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': '417'}, {'name': 'DC_VDI_EDU', 'vlan_id': '370'}, {'name': 'DC_VMWARE', 'vlan_id': '424'}, {'name': 'DC_VM_TSTLAB', 'vlan_id': '259'}, {'name': 'MC_AE_QFX1-2', 'vlan_id': '500'}]
- ========================================================================
- 2014-08-28 16:38:38,485 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Script returns with result: [{'name': 'DC_AUX', 'vlan_id': 323}, {'name': 'DC_MNG', 'vlan_id': 302}, {'name': 'DC_STORE', 'vlan_id': 413}, {'name': 'DC_STORE2', 'vlan_id': 415}, {'name': 'DC_TVM_STOR', 'vlan_id': 325}, {'name': 'DC_VBACKUP', 'vlan_id': 416}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417}, {'name': 'DC_VDI_EDU', 'vlan_id': 370}, {'name': 'DC_VMWARE', 'vlan_id': 424}, {'name': 'DC_VM_TSTLAB', 'vlan_id': 259}, {'name': 'MC_AE_QFX1-2', 'vlan_id': 500}]
- 2014-08-28 16:38:38,486 [Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)] Closing
- 2014-08-28 16:38:38,486 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x32bda10, 172.30.2.151:22, connected)>>(*(), **{'flush': True})
- 2014-08-28 16:38:39,479 Tick
- 2014-08-28 16:38:39,480 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x32bda10, 172.30.2.151:22, connected)>>(*(), **{'flush': True})
- 2014-08-28 16:38:39,480 [SSH: 172.30.2.151] Closing socket
- 2014-08-28 16:38:39,480 unregister_socket(<CLISSHSocket(0x32bda10, 172.30.2.151:22, closing)>)
- 2014-08-28 16:38:39,480 3 TICKS TO EXIT
- 2014-08-28 16:38:40,481 Tick
- 2014-08-28 16:38:40,481 2 TICKS TO EXIT
- 2014-08-28 16:38:41,482 Tick
- 2014-08-28 16:38:41,483 1 TICKS TO EXIT
- 2014-08-28 16:38:42,483 Tick
- 2014-08-28 16:38:42,483 EXIT
- 2014-08-28 16:38:42,485 SCRIPT RESULT: Juniper.JUNOS.get_vlans(jpqfx3500-1-s10.net.billing.ru, 172.30.2.151)
- [{'name': 'DC_AUX', 'vlan_id': 323},
- {'name': 'DC_MNG', 'vlan_id': 302},
- {'name': 'DC_STORE', 'vlan_id': 413},
- {'name': 'DC_STORE2', 'vlan_id': 415},
- {'name': 'DC_TVM_STOR', 'vlan_id': 325},
- {'name': 'DC_VBACKUP', 'vlan_id': 416},
- {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417},
- {'name': 'DC_VDI_EDU', 'vlan_id': 370},
- {'name': 'DC_VMWARE', 'vlan_id': 424},
- {'name': 'DC_VM_TSTLAB', 'vlan_id': 259},
- {'name': 'MC_AE_QFX1-2', 'vlan_id': 500}]
- 2014-08-28 16:38:42,486 Shutting down the factory
- 2014-08-28 16:38:42,487 0 TICKS TO EXIT
- 2014-08-28 16:38:42,487 Stopping socket factory
- root@noc:/opt/noc# ./noc debug-script get_vlans jpqfx3500-4-s10.net.billing.ru
- 2014-08-28 16:38:54,692 SSH: Using gmpy
- 2014-08-28 16:38:54,786 Using JSON library: cjson
- 2014-08-28 16:38:54,868 Loading PeriodicRegistry
- 2014-08-28 16:38:54,873 Loading DownloaderRegistry
- 2014-08-28 16:38:54,905 Loading ProfileRegistry
- 2014-08-28 16:38:55,755 Loading ScriptRegistry
- 2014-08-28 16:38:56,140 Setting up 'select' polling method
- 2014-08-28 16:38:56,141 Activating 'select' poller
- 2014-08-28 16:38:56,142 Loading private ssh key from 'etc/ssh/id_rsa'
- 2014-08-28 16:38:56,142 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Juniper.JUNOS"
- scheme: SSH
- address: "172.30.2.229"
- user: "nimda"
- password: "password"
- attrs {
- key: "platform"
- value: "qfx3500s"
- }
- attrs {
- key: "vendor"
- value: "Juniper"
- }
- attrs {
- key: "version"
- value: "12.3X50-D35"
- }
- }
- object_name: "jpqfx3500-4-s10.net.billing.ru"
- script: "Juniper.JUNOS.get_vlans"
- 2014-08-28 16:38:56,147 Running socket factory (SelectPoller)
- 2014-08-28 16:38:56,147 Running script thread
- 2014-08-28 16:38:56,148 Creating transaction id=1402731400 method=None callback=None
- 2014-08-28 16:38:56,148 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Running
- 2014-08-28 16:38:56,149 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Running script: Juniper.JUNOS.get_vlans ({})
- 2014-08-28 16:38:56,149 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] cli(show vlan brief)
- 2014-08-28 16:38:56,149 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Running new provider
- 2014-08-28 16:38:56,150 [SSH: 172.30.2.229] ==> SSH_START
- 2014-08-28 16:38:56,150 [SSH: 172.30.2.229] set_timeout(30)
- 2014-08-28 16:38:56,150 register_socket(<CLISSHSocket(0x4a56a10, 172.30.2.229:22, )>,None)
- 2014-08-28 16:38:57,148 Tick
- 2014-08-28 16:38:57,148 3 TICKS TO EXIT
- 2014-08-28 16:38:57,148 [SSH: 172.30.2.229] Initializing socket
- 2014-08-28 16:38:57,148 [SSH: 172.30.2.229] Connecting 172.30.2.229:22
- 2014-08-28 16:38:57,162 [SSH: 172.30.2.229] Connected
- 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] event(SSH_VERSION)
- 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] ==> SSH_VERSION
- 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] Remote protocol version 2.0, remote software version OpenSSH_6.0
- 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] Setting SSH transforms to: in=none none, out=none none
- 2014-08-28 16:38:57,303 [SSH: 172.30.2.229] Setting SSH transform keys
- 2014-08-28 16:38:57,304 [SSH: 172.30.2.229] Sending message type MSG_KEXINIT (20)
- 2014-08-28 16:38:57,304 [SSH: 172.30.2.229] event(SSH_KEY_EXCHANGE)
- 2014-08-28 16:38:57,304 [SSH: 172.30.2.229] ==> SSH_KEY_EXCHANGE
- 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Receiving message type MSG_KEXINIT (20)
- 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Receiving server proposals: kex=['ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521', 'diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] key=['ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256'] enc_cs=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] enc_sc=['aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', 'rijndael-cbc@lysator.liu.se'] mac_cs=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] mac_sc=['hmac-md5', 'hmac-sha1', 'umac-64@openssh.com', 'hmac-sha2-256', 'hmac-sha2-256-96', 'hmac-sha2-512', 'hmac-sha2-512-96', 'hmac-ripemd160', 'hmac-ripemd160@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] comp_cs=['none', 'zlib@openssh.com'] comp_sc['none', 'zlib@openssh.com']
- 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Setting SSH transforms to: in=aes256-ctr hmac-sha1, out=aes256-ctr hmac-sha1
- 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Selecting diffie-hellman-group-exchange-sha1 ssh-rsa, in=(aes256-ctr hmac-sha1 none) out=(aes256-ctr hmac-sha1 none)
- 2014-08-28 16:38:57,349 [SSH: 172.30.2.229] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
- 2014-08-28 16:38:57,385 [SSH: 172.30.2.229] Receiving message type MSG_KEXDH_REPLY (31)
- 2014-08-28 16:38:57,387 [SSH: 172.30.2.229] Sending message type MSG_KEX_DH_GEX_INIT (32)
- 2014-08-28 16:38:57,964 [SSH: 172.30.2.229] Receiving message type MSG_KEX_DH_GEX_REPLY (33)
- 2014-08-28 16:38:57,964 [SSH: 172.30.2.229] Server PK fingerprint: c3:46:20:ce:64:88:ec:d4:93:40:33:27:d9:2f:d9:55
- 2014-08-28 16:38:57,967 [SSH: 172.30.2.229] Setting SSH transform keys
- 2014-08-28 16:38:57,967 [SSH: 172.30.2.229] Sending message type MSG_NEWKEYS (21)
- 2014-08-28 16:38:57,967 [SSH: 172.30.2.229] Receiving message type MSG_NEWKEYS (21)
- 2014-08-28 16:38:57,967 [SSH: 172.30.2.229] Using new keys
- 2014-08-28 16:38:57,968 [SSH: 172.30.2.229] event(SSH_AUTH)
- 2014-08-28 16:38:57,968 [SSH: 172.30.2.229] ==> SSH_AUTH
- 2014-08-28 16:38:57,968 [SSH: 172.30.2.229] Requesting service ssh-userauth
- 2014-08-28 16:38:57,968 [SSH: 172.30.2.229] Sending message type MSG_SERVICE_REQUEST (5)
- 2014-08-28 16:38:57,970 [SSH: 172.30.2.229] Receiving message type MSG_SERVICE_ACCEPT (6)
- 2014-08-28 16:38:57,971 [SSH: 172.30.2.229] Starting service ssh-userauth
- 2014-08-28 16:38:57,972 [SSH: 172.30.2.229] event(SSH_AUTH_PASSWORD)
- 2014-08-28 16:38:57,972 [SSH: 172.30.2.229] ==> SSH_AUTH_PASSWORD
- 2014-08-28 16:38:57,973 [SSH: 172.30.2.229] Authenticating with 'none' method
- 2014-08-28 16:38:57,974 [SSH: 172.30.2.229] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:38:57,983 [SSH: 172.30.2.229] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2014-08-28 16:38:57,983 [SSH: 172.30.2.229] Authentication method 'none' has been failed. Trying next method (publickey,password,keyboard-interactive)
- 2014-08-28 16:38:57,983 [SSH: 172.30.2.229] Partially authenticated with 'none'. Trying next method
- 2014-08-28 16:38:57,983 [SSH: 172.30.2.229] Authenticating with 'publickey' method
- 2014-08-28 16:38:57,984 [SSH: 172.30.2.229] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Authentication method 'publickey' has been failed. Trying next method (publickey,password,keyboard-interactive)
- 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Partially authenticated with 'publickey'. Trying next method
- 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Authenticating with 'password' method
- 2014-08-28 16:38:57,990 [SSH: 172.30.2.229] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-08-28 16:38:58,008 [SSH: 172.30.2.229] Receiving message type MSG_USERAUTH_SUCCESS (52)
- 2014-08-28 16:38:58,008 [SSH: 172.30.2.229] event(SSH_CHANNEL)
- 2014-08-28 16:38:58,008 [SSH: 172.30.2.229] ==> SSH_CHANNEL
- 2014-08-28 16:38:58,008 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_OPEN (90)
- 2014-08-28 16:38:58,011 [SSH: 172.30.2.229] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
- 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] Opening channel. local=0 remote=0
- 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] event(SSH_PTY)
- 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] ==> SSH_PTY
- 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] Requesting PTY
- 2014-08-28 16:38:58,012 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_REQUEST (98)
- 2014-08-28 16:38:58,018 [SSH: 172.30.2.229] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2014-08-28 16:38:58,018 [SSH: 172.30.2.229] event(SSH_SHELL)
- 2014-08-28 16:38:58,019 [SSH: 172.30.2.229] ==> SSH_SHELL
- 2014-08-28 16:38:58,019 [SSH: 172.30.2.229] Requesting shell
- 2014-08-28 16:38:58,019 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_REQUEST (98)
- 2014-08-28 16:38:58,027 [SSH: 172.30.2.229] Receiving message type MSG_CHANNEL_WINDOW_ADJUST (93)
- 2014-08-28 16:38:58,027 [SSH: 172.30.2.229] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2014-08-28 16:38:58,027 [SSH: 172.30.2.229] event(START)
- 2014-08-28 16:38:58,027 [SSH: 172.30.2.229] ==> START
- 2014-08-28 16:38:58,028 [SSH: 172.30.2.229] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-08-28 16:38:58,032 [SSH: 172.30.2.229] on_read: '--- JUNOS 12.3X50-D35 built 2013-10-22 07:02:18 UTC\r\n'
- 2014-08-28 16:38:58,513 [SSH: 172.30.2.229] on_read: 'nimda@jpqfx3500-4-s10> '
- 2014-08-28 16:38:58,513 [SSH: 172.30.2.229] Starting synchronous FSM check
- 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] event(PROMPT)
- 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] ==> PROMPT
- 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] on_PROMPT_enter
- 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] Using prompt pattern: ^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])
- 2014-08-28 16:38:58,514 [SSH: 172.30.2.229] set_patterns([('^(({master(?::\\d+)}\\n)?\\S+>)|(({master(?::\\d+)})?\\[edit.*?\\]\\n\\S+#)|(\\[Type \\^D at a new line to end input\\])', 'PROMPT'), ('(^---\\(more.*?\\)---)', 'PAGER')])
- 2014-08-28 16:38:58,514 Tick
- 2014-08-28 16:38:58,514 Resetting wait ticks
- 2014-08-28 16:38:58,518 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] CLI Provider is ready
- 2014-08-28 16:38:58,518 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Disable paging
- 2014-08-28 16:38:58,518 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] cli(set cli screen-length 0)
- 2014-08-28 16:38:58,518 [SSH: 172.30.2.229] submit('set cli screen-length 0', bulk_lines=None, streaming=False)
- 2014-08-28 16:38:58,518 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_DATA (94)
- 2014-08-28 16:38:59,516 Tick
- 2014-08-28 16:38:59,516 Resetting wait ticks
- 2014-08-28 16:38:59,519 [SSH: 172.30.2.229] on_read: 's'
- 2014-08-28 16:38:59,522 [SSH: 172.30.2.229] on_read: 'e'
- 2014-08-28 16:38:59,524 [SSH: 172.30.2.229] on_read: 't'
- 2014-08-28 16:38:59,525 [SSH: 172.30.2.229] on_read: ' '
- 2014-08-28 16:38:59,527 [SSH: 172.30.2.229] on_read: 'cl'
- 2014-08-28 16:38:59,529 [SSH: 172.30.2.229] on_read: 'i'
- 2014-08-28 16:38:59,530 [SSH: 172.30.2.229] on_read: ' '
- 2014-08-28 16:38:59,531 [SSH: 172.30.2.229] on_read: 'screen-'
- 2014-08-28 16:38:59,532 [SSH: 172.30.2.229] on_read: 'length'
- 2014-08-28 16:38:59,534 [SSH: 172.30.2.229] on_read: ' '
- 2014-08-28 16:38:59,535 [SSH: 172.30.2.229] on_read: '0'
- 2014-08-28 16:38:59,537 [SSH: 172.30.2.229] on_read: ' '
- 2014-08-28 16:38:59,539 [SSH: 172.30.2.229] on_read: '\r\n'
- 2014-08-28 16:38:59,546 [SSH: 172.30.2.229] on_read: 'Screen length set to 0\r\n'
- 2014-08-28 16:38:59,547 [SSH: 172.30.2.229] on_read: '\r\n'
- 2014-08-28 16:38:59,547 [SSH: 172.30.2.229] on_read: 'nimda@jpqfx3500-4-s10> '
- 2014-08-28 16:38:59,547 [SSH: 172.30.2.229] Starting synchronous FSM check
- 2014-08-28 16:38:59,548 [SSH: 172.30.2.229] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:38:59,548 [SSH: 172.30.2.229] Starting synchronous FSM check
- 2014-08-28 16:38:59,548 [SSH: 172.30.2.229] event(PROMPT)
- 2014-08-28 16:38:59,550 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] cli(set cli screen-length 0) returns:
- ===[ set cli screen-length 0 ]==========================================
- ' \nScreen length set to 0\n\n'
- ========================================================================
- 2014-08-28 16:38:59,550 [SSH: 172.30.2.229] submit('show vlan brief', bulk_lines=None, streaming=False)
- 2014-08-28 16:38:59,550 [SSH: 172.30.2.229] Sending message type MSG_CHANNEL_DATA (94)
- 2014-08-28 16:39:00,549 Tick
- 2014-08-28 16:39:00,549 Resetting wait ticks
- 2014-08-28 16:39:00,554 [SSH: 172.30.2.229] on_read: 'show'
- 2014-08-28 16:39:00,556 [SSH: 172.30.2.229] on_read: ' vlan'
- 2014-08-28 16:39:00,564 [SSH: 172.30.2.229] on_read: 's brief'
- 2014-08-28 16:39:00,656 [SSH: 172.30.2.229] on_read: ' '
- 2014-08-28 16:39:00,660 [SSH: 172.30.2.229] on_read: '\r\n'
- 2014-08-28 16:39:00,670 [SSH: 172.30.2.229] on_read: ' Ports \r\nName Tag Primary Address Active/Total\r\nDC_AUX 323 \r\n'
- 2014-08-28 16:39:00,671 [SSH: 172.30.2.229] on_read: 'DC_MNG 302 \r\n'
- 2014-08-28 16:39:00,682 [SSH: 172.30.2.229] on_read: 'DC_SRV0 300 \r\nDC_SRV5 305 3/3\r\n'
- 2014-08-28 16:39:00,683 [SSH: 172.30.2.229] on_read: 'DC_STORE 413 6/8\r\n'
- 2014-08-28 16:39:00,684 [SSH: 172.30.2.229] on_read: 'DC_STORE2 415 \r\n'
- 2014-08-28 16:39:00,686 [SSH: 172.30.2.229] on_read: 'DC_STORE_DVLP 411 7/7\r\n'
- 2014-08-28 16:39:00,686 [SSH: 172.30.2.229] on_read: 'DC_TVM_STOR 325 5/5\r\n'
- 2014-08-28 16:39:00,688 [SSH: 172.30.2.229] on_read: 'DC_VBACKUP_DVLP 412 2/2\r\n'
- 2014-08-28 16:39:00,690 [SSH: 172.30.2.229] on_read: 'DC_VCLOUD_RELEASE 417 3/3\r\nDC_VDI_EDU 370 \r\n'
- 2014-08-28 16:39:00,692 [SSH: 172.30.2.229] on_read: 'DC_VMWARE 424 1/1\r\n'
- 2014-08-28 16:39:00,693 [SSH: 172.30.2.229] on_read: 'DC_VM_TSTLAB 259 \r\nDC_vlan1 1 \r\n'
- 2014-08-28 16:39:00,695 [SSH: 172.30.2.229] on_read: 'default 0/21\r\nv100 100 \r\n'
- 2014-08-28 16:39:00,695 [SSH: 172.30.2.229] on_read: 'v500 500 3.3.3.6/30 1/1\r\n'
- 2014-08-28 16:39:00,696 [SSH: 172.30.2.229] on_read: '\r\n'
- 2014-08-28 16:39:00,697 [SSH: 172.30.2.229] on_read: 'nimda@jpqfx3500-4-s10> '
- 2014-08-28 16:39:00,697 [SSH: 172.30.2.229] Starting synchronous FSM check
- 2014-08-28 16:39:00,697 [SSH: 172.30.2.229] match '^(({master(?::\d+)}\n)?\S+>)|(({master(?::\d+)})?\[edit.*?\]\n\S+#)|(\[Type \^D at a new line to end input\])'
- 2014-08-28 16:39:00,698 [SSH: 172.30.2.229] Starting synchronous FSM check
- 2014-08-28 16:39:00,698 [SSH: 172.30.2.229] event(PROMPT)
- 2014-08-28 16:39:00,718 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] cli(show vlan brief) returns:
- ===[ show vlan brief ]==================================================
- [{'name': 'DC_SRV5', 'vlan_id': '305'}, {'name': 'DC_STORE', 'vlan_id': '413'}, {'name': 'DC_STORE_DVLP', 'vlan_id': '411'}, {'name': 'DC_TVM_STOR', 'vlan_id': '325'}, {'name': 'DC_VBACKUP_DVLP', 'vlan_id': '412'}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': '417'}, {'name': 'DC_VMWARE', 'vlan_id': '424'}, {'name': 'v500', 'vlan_id': '500'}]
- ========================================================================
- 2014-08-28 16:39:00,718 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Script returns with result: [{'name': 'DC_SRV5', 'vlan_id': 305}, {'name': 'DC_STORE', 'vlan_id': 413}, {'name': 'DC_STORE_DVLP', 'vlan_id': 411}, {'name': 'DC_TVM_STOR', 'vlan_id': 325}, {'name': 'DC_VBACKUP_DVLP', 'vlan_id': 412}, {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417}, {'name': 'DC_VMWARE', 'vlan_id': 424}, {'name': 'v500', 'vlan_id': 500}]
- 2014-08-28 16:39:00,718 [Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)] Closing
- 2014-08-28 16:39:00,719 Requesting call: <bound method CLISSHSocket.close of <CLISSHSocket(0x4a56a10, 172.30.2.229:22, connected)>>(*(), **{'flush': True})
- 2014-08-28 16:39:01,699 Tick
- 2014-08-28 16:39:01,700 Calling delayed <bound method CLISSHSocket.close of <CLISSHSocket(0x4a56a10, 172.30.2.229:22, connected)>>(*(), **{'flush': True})
- 2014-08-28 16:39:01,700 [SSH: 172.30.2.229] Closing socket
- 2014-08-28 16:39:01,700 unregister_socket(<CLISSHSocket(0x4a56a10, 172.30.2.229:22, closing)>)
- 2014-08-28 16:39:01,700 3 TICKS TO EXIT
- 2014-08-28 16:39:02,701 Tick
- 2014-08-28 16:39:02,701 2 TICKS TO EXIT
- 2014-08-28 16:39:03,702 Tick
- 2014-08-28 16:39:03,702 1 TICKS TO EXIT
- 2014-08-28 16:39:04,703 Tick
- 2014-08-28 16:39:04,704 EXIT
- 2014-08-28 16:39:04,705 SCRIPT RESULT: Juniper.JUNOS.get_vlans(jpqfx3500-4-s10.net.billing.ru, 172.30.2.229)
- [{'name': 'DC_SRV5', 'vlan_id': 305},
- {'name': 'DC_STORE', 'vlan_id': 413},
- {'name': 'DC_STORE_DVLP', 'vlan_id': 411},
- {'name': 'DC_TVM_STOR', 'vlan_id': 325},
- {'name': 'DC_VBACKUP_DVLP', 'vlan_id': 412},
- {'name': 'DC_VCLOUD_RELEASE', 'vlan_id': 417},
- {'name': 'DC_VMWARE', 'vlan_id': 424},
- {'name': 'v500', 'vlan_id': 500}]
- 2014-08-28 16:39:04,706 Shutting down the factory
- 2014-08-28 16:39:04,706 0 TICKS TO EXIT
- 2014-08-28 16:39:04,707 Stopping socket factory
- root@noc:/opt/noc#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement