Learn R Programming

cymruservices (version 0.5.0)

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

Description

Retrieves BGP Origin ASN info for a list of ASN ids

Usage

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

  • as - AS #

  • cc - Country code

  • registry - registry it falls under

  • allocated - when it was allocated

  • as_name - name associated with the allocation

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.

See Also

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

Examples

Run this code
# NOT RUN {
bulk_origin_asn(c(22822, 1273, 2381, 2603, 2914, 3257, 3356, 11164,
                  174, 286, 1299, 2914, 3257, 3356, 3549, 22822))
# }

Run the code above in your browser using DataLab