Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@noc:/opt/noc# ./noc debug-script get_interfaces CoreSwitch
- 2014-04-25 12:11:46,901 SSH: Using gmpy
- 2014-04-25 12:11:47,238 Using JSON library: cjson
- 2014-04-25 12:11:47,399 Loading PeriodicRegistry
- 2014-04-25 12:11:47,410 Loading DownloaderRegistry
- 2014-04-25 12:11:47,508 Loading ProfileRegistry
- 2014-04-25 12:11:48,198 Loading ScriptRegistry
- 2014-04-25 12:11:48,700 Setting up 'select' polling method
- 2014-04-25 12:11:48,701 Activating 'select' poller
- 2014-04-25 12:11:48,702 Loading private ssh key from 'etc/ssh/id_rsa'
- 2014-04-25 12:11:48,702 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "MikroTik.RouterOS"
- scheme: SSH
- address: "172.16.110.1"
- port: 22
- user: "father"
- password: "53110245175006"
- path: "/srv/noc/backup"
- attrs {
- key: "Boot PROM"
- value: "3.10"
- }
- attrs {
- key: "platform"
- value: "CRS125-24G-1S-2HnD"
- }
- attrs {
- key: "Serial Number"
- value: "43C5021C87E3"
- }
- attrs {
- key: "vendor"
- value: "MikroTik"
- }
- attrs {
- key: "version"
- value: "6.8"
- }
- }
- object_name: "CoreSwitch"
- script: "MikroTik.RouterOS.get_interfaces"
- 2014-04-25 12:11:48,710 Running socket factory (SelectPoller)
- 2014-04-25 12:11:48,710 Running script thread
- 2014-04-25 12:11:48,711 Creating transaction id=1109774264 method=None callback=None
- 2014-04-25 12:11:48,712 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] Running
- 2014-04-25 12:11:48,712 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] Running script: MikroTik.RouterOS.get_interfaces ({})
- 2014-04-25 12:11:48,713 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] cli(/interface print detail)
- 2014-04-25 12:11:48,713 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] Running new provider
- 2014-04-25 12:11:48,714 [SSH: 172.16.110.1] ==> SSH_START
- 2014-04-25 12:11:48,714 [SSH: 172.16.110.1] set_timeout(30)
- 2014-04-25 12:11:48,716 register_socket(<CLISSHSocket(0x3dba350, 172.16.110.1:22, )>,None)
- 2014-04-25 12:11:49,712 Tick
- 2014-04-25 12:11:49,712 3 TICKS TO EXIT
- 2014-04-25 12:11:49,712 [SSH: 172.16.110.1] Initializing socket
- 2014-04-25 12:11:49,712 [SSH: 172.16.110.1] Connecting 172.16.110.1:22
- 2014-04-25 12:11:49,719 [SSH: 172.16.110.1] Connected
- 2014-04-25 12:11:49,721 [SSH: 172.16.110.1] event(SSH_VERSION)
- 2014-04-25 12:11:49,721 [SSH: 172.16.110.1] ==> SSH_VERSION
- 2014-04-25 12:11:49,722 [SSH: 172.16.110.1] Remote protocol version 2.0, remote software version ROSSSH
- 2014-04-25 12:11:49,722 [SSH: 172.16.110.1] Setting SSH transforms to: in=none none, out=none none
- 2014-04-25 12:11:49,723 [SSH: 172.16.110.1] Setting SSH transform keys
- 2014-04-25 12:11:49,723 [SSH: 172.16.110.1] Sending message type MSG_KEXINIT (20)
- 2014-04-25 12:11:49,724 [SSH: 172.16.110.1] event(SSH_KEY_EXCHANGE)
- 2014-04-25 12:11:49,724 [SSH: 172.16.110.1] ==> SSH_KEY_EXCHANGE
- 2014-04-25 12:11:49,732 [SSH: 172.16.110.1] Receiving message type MSG_KEXINIT (20)
- 2014-04-25 12:11:49,733 [SSH: 172.16.110.1] Receiving server proposals: kex=['diffie-hellman-group-exchange-sha256', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] key=['ssh-dss'] enc_cs=['aes192-cbc', 'aes128-cbc', 'aes256-cbc', 'blowfish-cbc', '3des-cbc'] enc_sc=['aes192-cbc', 'aes128-cbc', 'aes256-cbc', 'blowfish-cbc', '3des-cbc'] mac_cs=['hmac-sha1', 'hmac-md5'] mac_sc=['hmac-sha1', 'hmac-md5'] comp_cs=['none'] comp_sc['none']
- 2014-04-25 12:11:49,734 [SSH: 172.16.110.1] Setting SSH transforms to: in=aes256-cbc hmac-sha1, out=aes256-cbc hmac-sha1
- 2014-04-25 12:11:49,734 [SSH: 172.16.110.1] Selecting diffie-hellman-group14-sha1 ssh-dss, in=(aes256-cbc hmac-sha1 none) out=(aes256-cbc hmac-sha1 none)
- 2014-04-25 12:11:49,737 [SSH: 172.16.110.1] Sending message type MSG_KEX_DH_GEX_REQUEST_OLD (30)
- 2014-04-25 12:11:50,754 Tick
- 2014-04-25 12:11:50,754 Resetting wait ticks
- 2014-04-25 12:11:51,259 [SSH: 172.16.110.1] Receiving message type MSG_KEXDH_REPLY (31)
- 2014-04-25 12:11:51,259 [SSH: 172.16.110.1] Server PK fingerprint: 92:7a:c3:92:6c:18:c6:9c:2a:d7:ec:e6:3a:d7:dc:89
- 2014-04-25 12:11:51,263 [SSH: 172.16.110.1] Setting SSH transform keys
- 2014-04-25 12:11:51,263 [SSH: 172.16.110.1] Sending message type MSG_NEWKEYS (21)
- 2014-04-25 12:11:51,264 [SSH: 172.16.110.1] Receiving message type MSG_NEWKEYS (21)
- 2014-04-25 12:11:51,264 [SSH: 172.16.110.1] Using new keys
- 2014-04-25 12:11:51,264 [SSH: 172.16.110.1] event(SSH_AUTH)
- 2014-04-25 12:11:51,265 [SSH: 172.16.110.1] ==> SSH_AUTH
- 2014-04-25 12:11:51,265 [SSH: 172.16.110.1] Requesting service ssh-userauth
- 2014-04-25 12:11:51,266 [SSH: 172.16.110.1] Sending message type MSG_SERVICE_REQUEST (5)
- 2014-04-25 12:11:51,269 [SSH: 172.16.110.1] Receiving message type MSG_SERVICE_ACCEPT (6)
- 2014-04-25 12:11:51,269 [SSH: 172.16.110.1] Starting service ssh-userauth
- 2014-04-25 12:11:51,270 [SSH: 172.16.110.1] event(SSH_AUTH_PASSWORD)
- 2014-04-25 12:11:51,270 [SSH: 172.16.110.1] ==> SSH_AUTH_PASSWORD
- 2014-04-25 12:11:51,271 [SSH: 172.16.110.1] Authenticating with 'none' method
- 2014-04-25 12:11:51,271 [SSH: 172.16.110.1] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-04-25 12:11:51,280 [SSH: 172.16.110.1] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2014-04-25 12:11:51,280 [SSH: 172.16.110.1] Authentication method 'none' has been failed. Trying next method (publickey,password)
- 2014-04-25 12:11:51,281 [SSH: 172.16.110.1] Partially authenticated with 'none'. Trying next method
- 2014-04-25 12:11:51,281 [SSH: 172.16.110.1] Authenticating with 'publickey' method
- 2014-04-25 12:11:51,282 [SSH: 172.16.110.1] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-04-25 12:11:51,287 [SSH: 172.16.110.1] Receiving message type MSG_USERAUTH_FAILURE (51)
- 2014-04-25 12:11:51,287 [SSH: 172.16.110.1] Authentication method 'publickey' has been failed. Trying next method (publickey,password)
- 2014-04-25 12:11:51,288 [SSH: 172.16.110.1] Partially authenticated with 'publickey'. Trying next method
- 2014-04-25 12:11:51,288 [SSH: 172.16.110.1] Authenticating with 'password' method
- 2014-04-25 12:11:51,288 [SSH: 172.16.110.1] Sending message type MSG_USERAUTH_REQUEST (50)
- 2014-04-25 12:11:51,298 [SSH: 172.16.110.1] Receiving message type MSG_USERAUTH_SUCCESS (52)
- 2014-04-25 12:11:51,301 [SSH: 172.16.110.1] event(SSH_CHANNEL)
- 2014-04-25 12:11:51,301 [SSH: 172.16.110.1] ==> SSH_CHANNEL
- 2014-04-25 12:11:51,301 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_OPEN (90)
- 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] Receiving message type MSG_CHANNEL_OPEN_CONFIRMATION (91)
- 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] Opening channel. local=0 remote=0
- 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] event(SSH_PTY)
- 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] ==> SSH_PTY
- 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] Requesting PTY
- 2014-04-25 12:11:51,305 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_REQUEST (98)
- 2014-04-25 12:11:51,308 [SSH: 172.16.110.1] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2014-04-25 12:11:51,308 [SSH: 172.16.110.1] event(SSH_SHELL)
- 2014-04-25 12:11:51,309 [SSH: 172.16.110.1] ==> SSH_SHELL
- 2014-04-25 12:11:51,309 [SSH: 172.16.110.1] Requesting shell
- 2014-04-25 12:11:51,309 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_REQUEST (98)
- 2014-04-25 12:11:51,330 [SSH: 172.16.110.1] Receiving message type MSG_CHANNEL_SUCCESS (99)
- 2014-04-25 12:11:51,330 [SSH: 172.16.110.1] event(START)
- 2014-04-25 12:11:51,330 [SSH: 172.16.110.1] ==> START
- 2014-04-25 12:11:51,331 [SSH: 172.16.110.1] set_patterns([('([Uu]sername|[Ll]ogin):', 'USERNAME'), ('[Pp]assword:', 'PASSWORD'), ('\\[(?P<prompt>[^\\]@]+@.+?)\\] > ', 'PROMPT'), ('(Please press "Enter" to continue!)|(\\[Q quit\\|D dump\\|down\\])', 'PAGER')])
- 2014-04-25 12:11:51,334 [SSH: 172.16.110.1] on_read: '\r\r\n\r\r\n\r\r\n\r\r\n\r\r\n\r\r\n\r'
- 2014-04-25 12:11:51,335 [SSH: 172.16.110.1] on_read: '\r\n'
- 2014-04-25 12:11:51,359 [SSH: 172.16.110.1] on_read: '\r\n\r MMM MMM KKK TTTTTTTTTTT KKK\r\n\r MMMM MMMM KKK TTTTTTTTTTT KKK\r\n\r MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK\r\n\r MMM MM MMM III KKKKK '
- 2014-04-25 12:11:51,359 [SSH: 172.16.110.1] on_read: ' RRR RRR OOO OOO TTT III KKKKK\r\n\r MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK\r\n\r MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK\r\n\r\r\n\r MikroTik RouterOS 6.8rc1 (c) 1999-2014 http:'
- 2014-04-25 12:11:51,361 [SSH: 172.16.110.1] on_read: '//www.mikrotik.com/\r\n\r\r\n[?] Gives the list of available commands\r\n\rcommand [?] Gives help on the command and list of arguments\r\n\r\r\n\r[Tab] Completes the command/word. If the input is ambigous,\r\n\r a second [Tab] gives'
- 2014-04-25 12:11:51,362 [SSH: 172.16.110.1] on_read: ' possible options\r\n\r\r\n\r/ Move up to base level\r\n\r.. Move up one level\r\n\r/command Use command at the base level\r\n'
- 2014-04-25 12:11:51,392 [SSH: 172.16.110.1] on_read: '\r\x1b[9999B\r\x1b[9999B\r\r\r\x1b[9999B[father@MikroTik] > '
- 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] Starting synchronous FSM check
- 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] match '\[(?P<prompt>[^\]@]+@.+?)\] > '
- 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] event(PROMPT)
- 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] ==> PROMPT
- 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] on_PROMPT_enter
- 2014-04-25 12:11:51,393 [SSH: 172.16.110.1] Using prompt pattern: \[father\@MikroTik\] >
- 2014-04-25 12:11:51,394 [SSH: 172.16.110.1] set_patterns([('\\[father\\@MikroTik\\] > ', 'PROMPT'), ('(Please press "Enter" to continue!)|(\\[Q quit\\|D dump\\|down\\])', 'PAGER')])
- 2014-04-25 12:11:51,423 [MikroTik.RouterOS.get_interfaces(CoreSwitch, 172.16.110.1)] CLI Provider is ready
- 2014-04-25 12:11:51,423 [SSH: 172.16.110.1] submit('/interface print detail', bulk_lines=None, streaming=False)
- 2014-04-25 12:11:51,423 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_DATA (94)
- 2014-04-25 12:11:52,135 [SSH: 172.16.110.1] on_read: '\x1b7\x1b[r\x1b8'
- 2014-04-25 12:11:52,136 Tick
- 2014-04-25 12:11:52,136 Resetting wait ticks
- 2014-04-25 12:11:52,138 [SSH: 172.16.110.1] on_read: '/interface print detail\r\n'
- 2014-04-25 12:11:52,171 [SSH: 172.16.110.1] on_read: '\rFlags: D - dynamic, X - disabled, R - running, S - slave \x1b[K\r\n 0 RS name="ether1" default-name="ether1" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AA fast-path=yes \x1b[K\r\n\x1b[K\r\n 1 RS ;;; Cloud3 (172.16.30.58)\x1b[K\r'
- 2014-04-25 12:11:52,171 [SSH: 172.16.110.1] on_read: '\n name="ether2" default-name="ether2" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AB fast-path=yes \x1b[K\r\n\x1b[K\r\n 2 RS ;;; Cloud2 (172.16.30.56)\x1b[K\r\n name="ether3" default-name="ether3" type="ether" mtu=1'
- 2014-04-25 12:11:52,172 [SSH: 172.16.110.1] on_read: '500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AC fast-path=yes \x1b[K\r\n\x1b[K\r\n 3 R name="ether4" default-name="ether4" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AD fast-path=yes \x1b[K\r\n\x1b[K\r\n 4 '
- 2014-04-25 12:11:52,172 [SSH: 172.16.110.1] on_read: ' R name="ether5" default-name="ether5" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AE fast-path=yes \x1b[K\r\n\x1b[K\r\n 5 RS ;;; IP-camera servernaya\x1b[K\r\n name="ether6" default-name="ether6" type="ether" mtu=1500 l'
- 2014-04-25 12:11:52,172 [SSH: 172.16.110.1] on_read: '2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:AF fast-path=yes \x1b[K\r\n\x1b[K\r\n 6 name="ether7" default-name="ether7" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B0 fast-path=yes \x1b[K\r\n-- [Q quit|D '
- 2014-04-25 12:11:52,173 [SSH: 172.16.110.1] on_read: 'dump|down]\x1b[K\r'
- 2014-04-25 12:11:52,173 [SSH: 172.16.110.1] Starting synchronous FSM check
- 2014-04-25 12:11:52,173 [SSH: 172.16.110.1] match '(Please press "Enter" to continue!)|(\[Q quit\|D dump\|down\])'
- 2014-04-25 12:11:52,174 [SSH: 172.16.110.1] Starting synchronous FSM check
- 2014-04-25 12:11:52,174 [SSH: 172.16.110.1] event(PAGER)
- 2014-04-25 12:11:52,175 [SSH: 172.16.110.1] Sending message type MSG_CHANNEL_DATA (94)
- 2014-04-25 12:11:52,200 [SSH: 172.16.110.1] on_read: '\x1b[K\r\n 7 name="ether8" default-name="ether8" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B1 fast-path=yes \x1b[K\r\n\x1b[K\r\n 8 name="ether9" default-name="ether9" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2'
- 2014-04-25 12:11:52,201 [SSH: 172.16.110.1] on_read: 'mtu=4064 mac-address=D4:CA:6D:F9:7E:B2 fast-path=yes \x1b[K\r\n\x1b[K\r\n 9 name="ether10" default-name="ether10" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B3 fast-path=yes \x1b[K\r\n\x1b[K\r\n10 name="ether11" default-name'
- 2014-04-25 12:11:52,202 [SSH: 172.16.110.1] on_read: '="ether11" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B4 fast-path=yes \x1b[K\r\n\x1b[K\r\n11 name="ether12" default-name="ether12" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E'
- 2014-04-25 12:11:52,203 [SSH: 172.16.110.1] on_read: ':B5 fast-path=yes \x1b[K\r\n\x1b[K\r\n12 name="ether13" default-name="ether13" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B6 fast-path=yes \x1b[K\r\n\x1b[K\r\n13 name="ether14" default-name="ether14" type="ether" mtu=1500 l2'
- 2014-04-25 12:11:52,204 [SSH: 172.16.110.1] on_read: 'mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B7 fast-path=yes \x1b[K\r\n\x1b[K\r\n14 name="ether15" default-name="ether15" type="ether" mtu=1500 l2mtu=1588 \x1b[K\r\n max-l2mtu=4064 mac-address=D4:CA:6D:F9:7E:B8 fast-path=yes \x1b[K\r\n-- [Q quit|D'
- 2014-04-25 12:11:52,204 [SSH: 172.16.110.1] on_read: ' dump|up|down]\x1b[K\r'
- 2014-04-25 12:11:53,211 Tick
- 2014-04-25 12:11:53,211 Resetting wait ticks
- 2014-04-25 12:11:54,213 Tick
- 2014-04-25 12:11:54,213 Resetting wait ticks
- 2014-04-25 12:11:55,215 Tick
- 2014-04-25 12:11:55,216 Resetting wait ticks
- 2014-04-25 12:11:56,218 Tick
- 2014-04-25 12:11:56,218 Resetting wait ticks
- 2014-04-25 12:11:57,220 Tick
- 2014-04-25 12:11:57,220 Resetting wait ticks
- 2014-04-25 12:11:58,222 Tick
- 2014-04-25 12:11:58,222 Resetting wait ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement