- /opt/librenms# ./discovery.php -h ord-edge02.int -d -m bgp-peers | ./pbin.sh
- Paste endpoint: https://p.libren.ms/api/create
- SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 0.62ms]
- SQL[select count(*) as aggregate from `migrations` limit 1 [] 0.47ms]
- SQL[SELECT version() [] 0.42ms]
- Updating os_def.cache...
- Done
- Override discovery modules: bgp-peers
- SQL[SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 AND `hostname` LIKE 'ord-edge02.int' ORDER BY device_id DESC [] 1.7ms]
- SQL[SELECT * FROM devices_attribs WHERE `device_id` = ? [310] 0.47ms]
- [FPING] /usr/bin/fping -e -q -c 3 -p 500 -t 500 ord-edge02.int
- array (
- 'xmt' => '3',
- 'rcv' => '3',
- 'loss' => '0',
- 'min' => '42.4',
- 'max' => '42.5',
- 'avg' => '42.4',
- 'exitcode' => 0,
- )
- 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]
- SNMP Check response code: 0
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ? [310,"poll_mib"] 0.58ms]
- Attempting to initialize OS: iosxr
- Attempting to initialize OS: cisco
- OS initialized: LibreNMS\OS\Shared\Cisco
- Modules status: Global+
- OS
- Device
- .*.*.0 = ord-edge02.widevoice.com
- .*.*.0 = .*.*.1639
- .*.*.0 = Cisco IOS XR Software (Cisco ASR9K Series), Version 6.5.3[Default]
- Copyright (c) 2019 by Cisco Systems, Inc.
- Modules status: Global+
- OS+
- Device
- 63225
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 209
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 701
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 63225
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 63225
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 63225
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4."*" 6939
- Peers : CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.67.133.22.45 209
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.70.104.240.245 701
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.162.251.183.225 63225
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.162.251.183.226 63225
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.162.251.183.240 63225
- CISCO-BGP4-MIB::cbgpPeer2RemoteAs.ipv4.216.66.74.9 6939
- Found peer 67.133.22.45 (AS209)
- Found peer 70.104.240.245 (AS701)
- Found peer 162.251.183.225 (AS63225)
- Found peer 162.251.183.226 (AS63225)
- Found peer 162.251.183.240 (AS63225)
- Found peer 216.66.74.9 (AS6939)
- SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"67.133.22.45"] 1.1ms]
- 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]
- cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
- cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
- cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
- cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
- cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
- cbgpPeer2AddrFamilyName.ipv4."*".ipv4.unicast = IPv4 Unicast
- afi data ::
- array (
- 'ipv4.67.133.22.45.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.70.104.240.245.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.225.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.226.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.240.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.216.66.74.9.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- )
- AFISAFI = 67.133.22.45.ipv4.unicast
- SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"67.133.22.45","ipv4","unicast"] 0.97ms]
- AFISAFI = 70.104.240.245.ipv4.unicast
- AFISAFI = 162.251.183.225.ipv4.unicast
- AFISAFI = 162.251.183.226.ipv4.unicast
- AFISAFI = 162.251.183.240.ipv4.unicast
- AFISAFI = 216.66.74.9.ipv4.unicast
- SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"67.133.22.45",""] 0.81ms]
- SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"70.104.240.245"] 0.71ms]
- 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]
- afi data ::
- array (
- 'ipv4.67.133.22.45.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.70.104.240.245.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.225.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.226.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.240.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.216.66.74.9.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- )
- AFISAFI = 67.133.22.45.ipv4.unicast
- AFISAFI = 70.104.240.245.ipv4.unicast
- SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"70.104.240.245","ipv4","unicast"] 0.68ms]
- AFISAFI = 162.251.183.225.ipv4.unicast
- AFISAFI = 162.251.183.226.ipv4.unicast
- AFISAFI = 162.251.183.240.ipv4.unicast
- AFISAFI = 216.66.74.9.ipv4.unicast
- SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"70.104.240.245",""] 0.7ms]
- SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"162.251.183.225"] 0.71ms]
- 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]
- afi data ::
- array (
- 'ipv4.67.133.22.45.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.70.104.240.245.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.225.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.226.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.240.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.216.66.74.9.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- )
- AFISAFI = 67.133.22.45.ipv4.unicast
- AFISAFI = 70.104.240.245.ipv4.unicast
- AFISAFI = 162.251.183.225.ipv4.unicast
- SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"162.251.183.225","ipv4","unicast"] 0.63ms]
- AFISAFI = 162.251.183.226.ipv4.unicast
- AFISAFI = 162.251.183.240.ipv4.unicast
- AFISAFI = 216.66.74.9.ipv4.unicast
- SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"162.251.183.225",""] 0.72ms]
- SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"162.251.183.226"] 0.69ms]
- 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]
- afi data ::
- array (
- 'ipv4.67.133.22.45.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.70.104.240.245.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.225.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.226.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.240.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.216.66.74.9.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- )
- AFISAFI = 67.133.22.45.ipv4.unicast
- AFISAFI = 70.104.240.245.ipv4.unicast
- AFISAFI = 162.251.183.225.ipv4.unicast
- AFISAFI = 162.251.183.226.ipv4.unicast
- SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"162.251.183.226","ipv4","unicast"] 0.69ms]
- AFISAFI = 162.251.183.240.ipv4.unicast
- AFISAFI = 216.66.74.9.ipv4.unicast
- SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"162.251.183.226",""] 0.7ms]
- SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"162.251.183.240"] 0.72ms]
- 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]
- afi data ::
- array (
- 'ipv4.67.133.22.45.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.70.104.240.245.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.225.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.226.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.240.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.216.66.74.9.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- )
- AFISAFI = 67.133.22.45.ipv4.unicast
- AFISAFI = 70.104.240.245.ipv4.unicast
- AFISAFI = 162.251.183.225.ipv4.unicast
- AFISAFI = 162.251.183.226.ipv4.unicast
- AFISAFI = 162.251.183.240.ipv4.unicast
- SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"162.251.183.240","ipv4","unicast"] 0.61ms]
- AFISAFI = 216.66.74.9.ipv4.unicast
- SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"162.251.183.240",""] 0.69ms]
- SQL[SELECT COUNT(*) from `bgpPeers` WHERE device_id = ? AND bgpPeerIdentifier = ? [310,"216.66.74.9"] 0.64ms]
- SQL[UPDATE `bgpPeers` set `bgpPeerRemoteAs`=?,`astext`=? WHERE device_id=? AND bgpPeerIdentifier=? ["6939","HURRICANE - Hurricane Electric LLC, US",310,"216.66.74.9"] 2.28ms]
- afi data ::
- array (
- 'ipv4.67.133.22.45.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.70.104.240.245.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.225.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.226.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.162.251.183.240.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- 'ipv4.216.66.74.9.ipv4.unicast' =>
- array (
- 'cbgpPeer2AddrFamilyName' => 'IPv4 Unicast',
- ),
- )
- AFISAFI = 67.133.22.45.ipv4.unicast
- AFISAFI = 70.104.240.245.ipv4.unicast
- AFISAFI = 162.251.183.225.ipv4.unicast
- AFISAFI = 162.251.183.226.ipv4.unicast
- AFISAFI = 162.251.183.240.ipv4.unicast
- AFISAFI = 216.66.74.9.ipv4.unicast
- SQL[SELECT COUNT(*) from `bgpPeers_cbgp` WHERE device_id = ? AND bgpPeerIdentifier = ? AND afi=? AND safi=? [310,"216.66.74.9","ipv4","unicast"] 0.6ms]
- SQL[SELECT bgpPeerIdentifier, afi, safi FROM bgpPeers_cbgp WHERE `device_id`=? AND bgpPeerIdentifier=? AND context_name=? [310,"216.66.74.9",""] 0.67ms]
- 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]
- 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]
- SQL[SELECT DISTINCT context_name FROM bgpPeers WHERE device_id=? [310] 0.59ms]
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ? [310,"poll_mib"] 0.4ms]
- SQL[UPDATE `devices` set `last_discovered`=NOW(),`last_discovered_timetaken`=? WHERE `device_id` = ? [1.415,310] 2.48ms]
- 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]
- ./discovery.php ord-edge02.int 2019-05-13 09:52:42 - 1 devices discovered in 1.928 secs
- title:
- name: abiryukov
- private: 1
- expire: 0
- https://p.libren.ms/view/f40e4372