bulk_origin_asn: Retrieves BGP Origin ASN info for a list of ASN ids

Description Usage Arguments Value Note See Also Examples

Description

Retrieves BGP Origin ASN info for a list of ASN ids

Usage

1
bulk_origin_asn(asns, timeout = getOption("timeout"))

Arguments

asns

character vector of ASN ids (character)

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 Origin 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
5
## Not run: 
bulk_origin_asn(c(22822, 1273, 2381, 2603, 2914, 3257, 3356, 11164,
                  174, 286, 1299, 2914, 3257, 3356, 3549, 22822))

## End(Not run)

Example output

Attaching package: 'cymruservices'

The following object is masked from 'package:base':

    flush

Error opening connection to v4.whois.cymru.com
   as cc registry allocated as_name
1  NA NA       NA        NA      NA
2  NA NA       NA        NA      NA
3  NA NA       NA        NA      NA
4  NA NA       NA        NA      NA
5  NA NA       NA        NA      NA
6  NA NA       NA        NA      NA
7  NA NA       NA        NA      NA
8  NA NA       NA        NA      NA
9  NA NA       NA        NA      NA
10 NA NA       NA        NA      NA
11 NA NA       NA        NA      NA
12 NA NA       NA        NA      NA
13 NA NA       NA        NA      NA
14 NA NA       NA        NA      NA
15 NA NA       NA        NA      NA
16 NA NA       NA        NA      NA
Warning message:
In .f(...) : v4.whois.cymru.com:43 cannot be opened

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