geoip-update
Uses the license key configured in a GeoIP connect profile to download and update the specified type of GeoIP database from the MaxMind server.
Command properties
| Item | Description |
|---|---|
| Command type | Driver query |
| Required permission | None |
| License usage | Not counted |
| Parallel execution | Not supported |
| Distributed execution | Not supported |
Syntax
Options
type={COUNTRY|CITY|ASN}- Type of GeoIP database to update
COUNTRY: Country information databaseCITY: City information databaseASN: Autonomous System Number (ASN) database
profile=STR- GeoIP connect profile identifier. If omitted, runs against all registered GeoIP type connect profiles.
Output fields
| Field | Type | Description |
|---|---|---|
profile | string | Name of the connect profile used for the update |
update_time | string | Last modified date of the downloaded database (in yyyy-MM-dd format) |
type | string | Type of database updated |
Error codes
Parse errors
| Error code | Message | Description |
|---|---|---|
| 209800 | 사용 가능한 GeoIP 프로파일이 없습니다. | No GeoIP connect profiles are registered or accessible |
| 209801 | GeoIP 프로파일 이름을 입력하세요. | The profile option is required but not specified |
| 209802 | type 옵션을 지정하세요. | The type option is not specified |
Runtime errors
N/A
Description
The geoip-update command uses the MaxMind license key configured in a GeoIP connect profile to download the specified type of GeoIP database from the internet. An error occurs if the database is already at the latest version.
When you specify the profile option, the update is performed through the GeoIP service associated with that connect profile. If you omit the profile option, the update is performed against all registered GeoIP connect profiles.
If an HTTP proxy is configured in the connect profile, the download is performed through the proxy.
Examples
-
Update the country database
geoip-update type=COUNTRYUpdates the country information database for all registered GeoIP connect profiles.
-
Update the city database using a specific connect profile
geoip-update type=CITY profile=geoip_mainUpdates the city information database using the
geoip_mainconnect profile. -
Update the ASN database
geoip-update type=ASNUpdates the ASN database for all registered GeoIP connect profiles.