.\" Generated by kramdown-man 0.1.8 .\" https://github.com/postmodern/kramdown-man#readme .TH ronin-db-asn 1 "2023-02-01" Ronin "User Manuals" .LP .SH SYNOPSIS .LP .HP \fBronin-db asn\fR \[lB]\fIoptions\fP\[rB] .LP .SH DESCRIPTION .LP .PP Queries or updates Autonomous System Numbers (ASNs) in the database\. .LP .SH OPTIONS .LP .TP \fB--db\fR \fINAME\fP The database name to connect to\. Defaults to \fBdefault\fR if not given\. .LP .TP \fB--db-uri\fR \fIURI\fP The explicit database URI to connect to\. .LP .RS .IP \(bu 2 \fBsqlite3\fP: \fBsqlite3:relative/path.db\fR or \fBsqlite3:///absolute/path.db\fR .IP \(bu 2 \fBmysql\fP: \fBmysql://user:password@host/database\fR .IP \(bu 2 \fBpostgres\fP: \fBpostgres://user:password@host/database\fR .RE .LP .TP \fB-v\fR, \fB--verbose\fR Enables verbose output .LP .TP \fB-n\fR, \fB--number\fR \fIINT\fP Searches for all ASN records with the AS number\. .LP .TP \fB-C\fR, \fB--country-code\fR \fIXX\fP\[or]\fBNone\fR\[or]\fBUnknown\fR Searches for all ASN records with the country code\. .LP .TP \fB-N\fR, \fB--name\fR \fINAME\fP Searches for all ASN records with the matching name\. .LP .TP \fB-I\fR, \fB--ip\fR \fIIP\fP Queries the ASN record for the IP\. .LP .TP \fB-4\fR, \fB--ipv4\fR Filter ASN records for only IPv4 ranges\. .LP .TP \fB-6\fR, \fB--ipv6\fR Filter ASN records for only IPv6 ranges\. .LP .TP \fB-u\fR, \fB--update\fR Updates the ASN records\. .LP .TP \fB-U\fR, \fB--url\fR \fIURI\fP Overrides the default ASN list URL\. Defaults to \fBhttps://iptoasn.com/data/ip2asn-combined.tsv.gz\fR if not given\. .LP .TP \fB-f\fR, \fB--file\fR \fIFILE\fP Overrides the default ASN list file\. Defaults to \fB~/.local/share/ronin/ronin-support/ip2asn-combined.tsv.gz\fR if not given\. .LP .TP \fB-h\fR, \fB--help\fR Print help information\. .LP .SH ENVIRONMENT .LP .TP \fIHOME\fP Alternate location for the user\[cq]s home directory\. .LP .TP \fIXDG\[ru]CONFIG\[ru]HOME\fP Alternate location for the \fB~/.config\fR directory\. .LP .TP \fIXDG\[ru]DATA\[ru]HOME\fP Alternate location for the \fB~/.local/share\fR directory\. .LP .SH FILES .LP .TP \fB~/.local/share/ronin-db/database.sqlite3\fR The default sqlite3 database file\. .LP .TP \fB~/.config/ronin-db/database.yml\fR Optional database configuration\. .LP .SH AUTHOR .LP .PP Postmodern .MT postmodern\.mod3\[at]gmail\.com .ME .LP