From Jittery Parakeet, 4 Years ago, written in Plain Text.
Embed
  1. /opt/librenms# ./discovery.php -h ord-edge02.int -d -m bgp-peers | ./pbin.sh
  2. Paste endpoint: https://p.libren.ms/api/create
  3. SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 0.62ms]
  4.  
  5. SQL[select count(*) as aggregate from `migrations` limit 1 [] 0.47ms]
  6.  
  7. SQL[SELECT version() [] 0.42ms]
  8.  
  9. Updating os_def.cache...
  10. Done
  11. Override discovery modules: bgp-peers
  12. SQL[SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 AND `hostname` LIKE 'ord-edge02.int' ORDER BY device_id DESC [] 1.7ms]
  13.  
  14. SQL[SELECT * FROM devices_attribs WHERE `device_id` = ? [310] 0.47ms]
  15.  
  16. [FPING] /usr/bin/fping -e -q -c 3 -p 500 -t 500 ord-edge02.int
  17. array (
  18.   'xmt' => '3',
  19.   'rcv' => '3',
  20.   'loss' => '0',
  21.   'min' => '42.4',
  22.   'max' => '42.5',
  23.   'avg' => '42.4',
  24.   'exitcode' => 0,
  25. )
  26. SQL[INSERT IGNORE INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`,`debug`)  VALUES (:xmt,:rcv,:loss,:min,:max,:avg,:device_id,NOW(),:debug) {"xmt":"3","rcv":"3","loss":"0","min":"42.4","max":"42.5","avg":"42.4","device_id":310,"debug":"[]"} 2.88ms]
  27.  
  28. SNMP Check response code: 0
  29. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ?  [310,"poll_mib"] 0.58ms]
  30.  
  31. Attempting to initialize OS: iosxr
  32. Attempting to initialize OS: cisco
  33. OS initialized: LibreNMS\OS\Shared\Cisco
  34. Modules status: Global+
  35. OS
  36. Device
  37. .*.*.0 = ord-edge02.widevoice.com
  38. .*.*.0 = .*.*.1639
  39. .*.*.0 = Cisco IOS XR Software (Cisco ASR9K Series),  Version 6.5.3[Default]
  40. Copyright (c) 2019 by Cisco Systems, Inc.
  41.  
  42. Modules status: Global+
  43. OS+
  44. Device
  45. 63225
  46.  
  47. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 209
  48. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 701
  49. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 63225
  50. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 63225
  51. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 63225
  52. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 6939
  53.  
  54. Peers : CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.67.133.22.45 209
  55. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.70.104.240.245 701
  56. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.162.251.183.225 63225
  57. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.162.251.183.226 63225
  58. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.162.251.183.240 63225
  59. CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.216.66.74.9 6939
  60. Found peer 67.133.22.45 (AS209)
  61. Found peer 70.104.240.245 (AS701)
  62. Found peer 162.251.183.225 (AS63225)
  63. Found peer 162.251.183.226 (AS63225)
  64. Found peer 162.251.183.240 (AS63225)
  65. Found peer 216.66.74.9 (AS6939)
  66. SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"67.133.22.45"] 1.1ms]
  67.  
  68. SQL[UPDATE `bgpPeers` set `bgpPeerRemoteAs`=?,`astext`=? WHERE device_id=? AND bgpPeerIdentifier=? ["209","CENTURYLINK-US-LEGACY-QWEST - CenturyLink Communications, LLC, US",310,"67.133.22.45"] 2.71ms]
  69.  
  70. cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
  71. cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
  72. cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
  73. cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
  74. cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
  75. cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
  76.  
  77. afi data ::
  78. array (
  79.   'ipv4.67.133.22.45.ipv4.unicast' =>
  80.   array (
  81.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  82.   ),
  83.   'ipv4.70.104.240.245.ipv4.unicast' =>
  84.   array (
  85.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  86.   ),
  87.   'ipv4.162.251.183.225.ipv4.unicast' =>
  88.   array (
  89.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  90.   ),
  91.   'ipv4.162.251.183.226.ipv4.unicast' =>
  92.   array (
  93.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  94.   ),
  95.   'ipv4.162.251.183.240.ipv4.unicast' =>
  96.   array (
  97.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  98.   ),
  99.   'ipv4.216.66.74.9.ipv4.unicast' =>
  100.   array (
  101.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  102.   ),
  103. )
  104. AFISAFI = 67.133.22.45.ipv4.unicast
  105. SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"67.133.22.45","ipv4","unicast"] 0.97ms]
  106.  
  107. AFISAFI = 70.104.240.245.ipv4.unicast
  108. AFISAFI = 162.251.183.225.ipv4.unicast
  109. AFISAFI = 162.251.183.226.ipv4.unicast
  110. AFISAFI = 162.251.183.240.ipv4.unicast
  111. AFISAFI = 216.66.74.9.ipv4.unicast
  112. SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"67.133.22.45",""] 0.81ms]
  113.  
  114. SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"70.104.240.245"] 0.71ms]
  115.  
  116. SQL[UPDATE `bgpPeers` set `bgpPeerRemoteAs`=?,`astext`=? WHERE device_id=? AND bgpPeerIdentifier=? ["701","UUNET - MCI Communications Services, Inc. d\/b\/a Verizon Business, US",310,"70.104.240.245"] 2.43ms]
  117.  
  118. afi data ::
  119. array (
  120.   'ipv4.67.133.22.45.ipv4.unicast' =>
  121.   array (
  122.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  123.   ),
  124.   'ipv4.70.104.240.245.ipv4.unicast' =>
  125.   array (
  126.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  127.   ),
  128.   'ipv4.162.251.183.225.ipv4.unicast' =>
  129.   array (
  130.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  131.   ),
  132.   'ipv4.162.251.183.226.ipv4.unicast' =>
  133.   array (
  134.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  135.   ),
  136.   'ipv4.162.251.183.240.ipv4.unicast' =>
  137.   array (
  138.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  139.   ),
  140.   'ipv4.216.66.74.9.ipv4.unicast' =>
  141.   array (
  142.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  143.   ),
  144. )
  145. AFISAFI = 67.133.22.45.ipv4.unicast
  146. AFISAFI = 70.104.240.245.ipv4.unicast
  147. SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"70.104.240.245","ipv4","unicast"] 0.68ms]
  148.  
  149. AFISAFI = 162.251.183.225.ipv4.unicast
  150. AFISAFI = 162.251.183.226.ipv4.unicast
  151. AFISAFI = 162.251.183.240.ipv4.unicast
  152. AFISAFI = 216.66.74.9.ipv4.unicast
  153. SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"70.104.240.245",""] 0.7ms]
  154.  
  155. SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"162.251.183.225"] 0.71ms]
  156.  
  157. SQL[UPDATE `bgpPeers` set `bgpPeerRemoteAs`=?,`astext`=? WHERE device_id=? AND bgpPeerIdentifier=? ["63225","WIDEVOICE-ORD - WideVoice Communications, Inc., US",310,"162.251.183.225"] 2.14ms]
  158.  
  159. afi data ::
  160. array (
  161.   'ipv4.67.133.22.45.ipv4.unicast' =>
  162.   array (
  163.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  164.   ),
  165.   'ipv4.70.104.240.245.ipv4.unicast' =>
  166.   array (
  167.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  168.   ),
  169.   'ipv4.162.251.183.225.ipv4.unicast' =>
  170.   array (
  171.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  172.   ),
  173.   'ipv4.162.251.183.226.ipv4.unicast' =>
  174.   array (
  175.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  176.   ),
  177.   'ipv4.162.251.183.240.ipv4.unicast' =>
  178.   array (
  179.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  180.   ),
  181.   'ipv4.216.66.74.9.ipv4.unicast' =>
  182.   array (
  183.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  184.   ),
  185. )
  186. AFISAFI = 67.133.22.45.ipv4.unicast
  187. AFISAFI = 70.104.240.245.ipv4.unicast
  188. AFISAFI = 162.251.183.225.ipv4.unicast
  189. SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"162.251.183.225","ipv4","unicast"] 0.63ms]
  190.  
  191. AFISAFI = 162.251.183.226.ipv4.unicast
  192. AFISAFI = 162.251.183.240.ipv4.unicast
  193. AFISAFI = 216.66.74.9.ipv4.unicast
  194. SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"162.251.183.225",""] 0.72ms]
  195.  
  196. SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"162.251.183.226"] 0.69ms]
  197.  
  198. SQL[UPDATE `bgpPeers` set `bgpPeerRemoteAs`=?,`astext`=? WHERE device_id=? AND bgpPeerIdentifier=? ["63225","WIDEVOICE-ORD - WideVoice Communications, Inc., US",310,"162.251.183.226"] 2.12ms]
  199.  
  200. afi data ::
  201. array (
  202.   'ipv4.67.133.22.45.ipv4.unicast' =>
  203.   array (
  204.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  205.   ),
  206.   'ipv4.70.104.240.245.ipv4.unicast' =>
  207.   array (
  208.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  209.   ),
  210.   'ipv4.162.251.183.225.ipv4.unicast' =>
  211.   array (
  212.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  213.   ),
  214.   'ipv4.162.251.183.226.ipv4.unicast' =>
  215.   array (
  216.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  217.   ),
  218.   'ipv4.162.251.183.240.ipv4.unicast' =>
  219.   array (
  220.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  221.   ),
  222.   'ipv4.216.66.74.9.ipv4.unicast' =>
  223.   array (
  224.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  225.   ),
  226. )
  227. AFISAFI = 67.133.22.45.ipv4.unicast
  228. AFISAFI = 70.104.240.245.ipv4.unicast
  229. AFISAFI = 162.251.183.225.ipv4.unicast
  230. AFISAFI = 162.251.183.226.ipv4.unicast
  231. SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"162.251.183.226","ipv4","unicast"] 0.69ms]
  232.  
  233. AFISAFI = 162.251.183.240.ipv4.unicast
  234. AFISAFI = 216.66.74.9.ipv4.unicast
  235. SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"162.251.183.226",""] 0.7ms]
  236.  
  237. SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"162.251.183.240"] 0.72ms]
  238.  
  239. SQL[UPDATE `bgpPeers` set `bgpPeerRemoteAs`=?,`astext`=? WHERE device_id=? AND bgpPeerIdentifier=? ["63225","WIDEVOICE-ORD - WideVoice Communications, Inc., US",310,"162.251.183.240"] 2.03ms]
  240.  
  241. afi data ::
  242. array (
  243.   'ipv4.67.133.22.45.ipv4.unicast' =>
  244.   array (
  245.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  246.   ),
  247.   'ipv4.70.104.240.245.ipv4.unicast' =>
  248.   array (
  249.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  250.   ),
  251.   'ipv4.162.251.183.225.ipv4.unicast' =>
  252.   array (
  253.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  254.   ),
  255.   'ipv4.162.251.183.226.ipv4.unicast' =>
  256.   array (
  257.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  258.   ),
  259.   'ipv4.162.251.183.240.ipv4.unicast' =>
  260.   array (
  261.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  262.   ),
  263.   'ipv4.216.66.74.9.ipv4.unicast' =>
  264.   array (
  265.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  266.   ),
  267. )
  268. AFISAFI = 67.133.22.45.ipv4.unicast
  269. AFISAFI = 70.104.240.245.ipv4.unicast
  270. AFISAFI = 162.251.183.225.ipv4.unicast
  271. AFISAFI = 162.251.183.226.ipv4.unicast
  272. AFISAFI = 162.251.183.240.ipv4.unicast
  273. SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"162.251.183.240","ipv4","unicast"] 0.61ms]
  274.  
  275. AFISAFI = 216.66.74.9.ipv4.unicast
  276. SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"162.251.183.240",""] 0.69ms]
  277.  
  278. SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"216.66.74.9"] 0.64ms]
  279.  
  280. SQL[UPDATE `bgpPeers` set `bgpPeerRemoteAs`=?,`astext`=? WHERE device_id=? AND bgpPeerIdentifier=? ["6939","HURRICANE - Hurricane Electric LLC, US",310,"216.66.74.9"] 2.28ms]
  281.  
  282. afi data ::
  283. array (
  284.   'ipv4.67.133.22.45.ipv4.unicast' =>
  285.   array (
  286.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  287.   ),
  288.   'ipv4.70.104.240.245.ipv4.unicast' =>
  289.   array (
  290.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  291.   ),
  292.   'ipv4.162.251.183.225.ipv4.unicast' =>
  293.   array (
  294.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  295.   ),
  296.   'ipv4.162.251.183.226.ipv4.unicast' =>
  297.   array (
  298.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  299.   ),
  300.   'ipv4.162.251.183.240.ipv4.unicast' =>
  301.   array (
  302.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  303.   ),
  304.   'ipv4.216.66.74.9.ipv4.unicast' =>
  305.   array (
  306.     'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
  307.   ),
  308. )
  309. AFISAFI = 67.133.22.45.ipv4.unicast
  310. AFISAFI = 70.104.240.245.ipv4.unicast
  311. AFISAFI = 162.251.183.225.ipv4.unicast
  312. AFISAFI = 162.251.183.226.ipv4.unicast
  313. AFISAFI = 162.251.183.240.ipv4.unicast
  314. AFISAFI = 216.66.74.9.ipv4.unicast
  315. SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"216.66.74.9","ipv4","unicast"] 0.6ms]
  316.  
  317. SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"216.66.74.9",""] 0.67ms]
  318.  
  319. SQL[DELETE FROM `bgpPeers` WHERE device_id=? AND context_name=? AND bgpPeerIdentifier NOT IN (?,?,?,?,?,?) [310,"","67.133.22.45","70.104.240.245","162.251.183.225","162.251.183.226","162.251.183.240","216.66.74.9"] 0.58ms]
  320.  
  321. SQL[DELETE FROM `bgpPeers_cbgp` WHERE device_id=? AND context_name=? AND bgpPeerIdentifier NOT IN (?,?,?,?,?,?) [310,"","67.133.22.45","70.104.240.245","162.251.183.225","162.251.183.226","162.251.183.240","216.66.74.9"] 0.73ms]
  322.  
  323. SQL[SELECT DISTINCT context_name FROM bgpPeers WHERE device_id=? [310] 0.59ms]
  324.  
  325. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ?  [310,"poll_mib"] 0.4ms]
  326.  
  327. SQL[UPDATE `devices` set `last_discovered`=NOW(),`last_discovered_timetaken`=? WHERE `device_id` = ? [1.415,310] 2.48ms]
  328.  
  329. SQL[INSERT IGNORE INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`)  VALUES (:type,:doing,:start,:duration,:devices,:poller) {"type":"discover","doing":"ord-edge02.int","start":1557741160.989674,"duration":"1.928","devices":1,"poller":"ow-lnms01.int"} 1.9ms]
  330.  
  331. ./discovery.php ord-edge02.int 2019-05-13 09:52:42 - 1 devices discovered in 1.928 secs
  332. title:
  333. name: abiryukov
  334. private: 1
  335. expire: 0
  336. https://p.libren.ms/view/f40e4372