bulk_peer: Retrieves BGP Peer ASN info for a list of IPv4 addresses

Description Usage Arguments Value Note See Also Examples

Description

Retrieves BGP Peer ASN info for a list of IPv4 addresses

Usage

1
bulk_peer(ips, timeout = getOption("timeout"))

Arguments

ips

vector of IPv4 address (character - dotted-decimal)

timeout

numeric: the timeout (in seconds) to be used for this connection. Beware that some OSes may treat very large values as zero: however the POSIX standard requires values up to 31 days to be supported.

Value

data frame of BGP Peer ASN lookup results

If a socket connection cannot be made (i.e. a network problem on your end or a service/network problem on their end), all columns will be NA.

Note

The Team Cymru's service is NOT a GeoIP service! Do not use this function for that as your results will not be accurate. Data is updated every 4 hours. Also, A direct connection to TCP Port 43 (WHOIS) is required for most of these API functions to work properly.

See Also

http://www.team-cymru.org/IP-ASN-mapping.html

Examples

1
2
3
4
## Not run: 
bulk_peer(c("68.22.187.5", "207.229.165.18", "198.6.1.65"))

## End(Not run)

Example output

Error opening connection to v4-peer.whois.cymru.com
  peer_as ip bgp_prefix cc registry allocated peer_as_name
1      NA NA         NA NA       NA        NA           NA
2      NA NA         NA NA       NA        NA           NA
3      NA NA         NA NA       NA        NA           NA
Warning message:
In .f(...) : v4-peer.whois.cymru.com:43 cannot be opened

cymruservices documentation built on May 2, 2019, 2:59 p.m.