Crates.io | bgpview-cli |
lib.rs | bgpview-cli |
version | 0.1.0 |
source | src |
created_at | 2020-07-20 08:16:31.81523 |
updated_at | 2020-07-20 08:16:31.81523 |
description | CLI tools for bgpview.io |
homepage | https://github.com/7sDream/bgpview-cli |
repository | https://github.com/7sDream/bgpview-cli |
max_upload_size | |
id | 267140 |
size | 34,297 |
Working in progress, only ip
sub command usable for now.
Other sub commands can be added easily, but I do not use them personally, so they may not be added forever if no one asks.
You can refer to the document of bgpview.io API if you want to contribute or implement other commands.
$ cargo install bgpview-cli
$ bgpview-cli ip 1.1.1.1
IP: 1.1.1.1
Country: AU
City: Unknown
IANA: APNIC
AssigSt: allocated
AssigAt: Unknown
Whois: whois.apnic.net
RIR: APNIC - AU
Prefix: 1.1.1.0/24
AllocSt: assigned
AllocAt: 2011-08-11 00:00:00
ASN: 13335 - CLOUDFLARENET - Cloudflare, Inc. - US
Prefix: 1.1.1.0/24
Name: APNIC-LABS
Desc: APNIC and Cloudflare DNS Resolver project
Country: AU
Use -h
/--help
for help.
You can set alias if you use some command very often, bash for example:
alias bvip="bgpview-cli ip"
bvip 1.1.1.1
See UNLICENSE
.