locationFile
The following operations can be performed on "locationFile":
add locationFile
Loads the static location database from the specified file.
Arguments
locationFile Name of the location file, with or without absolute path. If the path is not included, the default path (/var/netscaler/locdb) is assumed. In a high availability setup, the static database must be stored in the same location on both NetScalers.
format Format of the location file. Required for the NetScaler to identify how to read the location file.
Possible values: netscaler, ip-country, ip-country-isp, ip-country-region-city, ip-country-region-city-isp, geoip-country, geoip-region, geoip-city, geoip-country-org, geoip-country-isp, geoip-city-isp-org Default value: netscaler
Example
add locationfile /var/nsmap/locationdb -format NetScaler
rm locationFile
Removes the currently loaded static location database from the NetScaler.
Synopsis
rm locationFile
Example
rm locationfile
show locationFile
Displays the name, including the absolute path, and format of the location file currently loaded on the NetScaler.
Synopsis
show locationFile
Arguments
Output
locationFile The name of the location file.
format The format of the location file.
curLocfileStatus The status of the current location file.
prevLocationFile The name of the previous location file.
prevLocfileFormat The format of the previous location file.
prevLocfileStatus The status of the previous location file.
locfileStatusStr Status string of the location file.
_nextgenAPIResource
Example
show locationfile
import locationFile
Imports the specified location file to the NetScaler, assigns it the specified name and the maximum size of locationfile can be upto 300MB
Synopsis
import locationFile <locationFile> <src>
Arguments
locationFile Name of the location file, with or without absolute path. If the path is not included, the default path (/var/netscaler/locdb) is assumed. In a high availability setup, the static database must be stored in the same location on both NetScalers.
src URL \(protocol, host, path, and file name\) from where the location file will be imported. NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access.
Example
import locationfile locfile_1 http://www.example.com/file_1