Device GPS detailsΒΆ
To import a list of device/object latitude and longitude details for a specified geographical network map, execute the following from the scrut_util interactive shell (SCRUTINIZER>
prompt):
import csv_to_gps <PATH/FILE> <GROUP NAME|GROUP_ID> [create_new] [FORMAT]
Direct shell/script syntax
scrut_util --import csv_to_gps --file <PATH/FILE> --group <GROUP_NAME|GROUP_ID> [--create_new] --file_format [FORMAT]
File requirements
The file to be imported must be a CSV file, and the path provided must be relative to the home/plixer/scrutinizer/
directory.
Definition format
Each set of details should be in a single line, following the format:
IP_ADDRESS,LATITUDE,LONGITUDE
Additional notes
The imported GPS details are only assigned to objects for the specified device/mapping group. If the devices are assigned to other groups, they will retain the GPS details configured for those groups.
The optional
FORMAT
parameter can be used to override the defaultip,lat,lng
element formatting in case the contents of the import file are formatted differently (e.g.,ip,lng,lat
).If the
create_new
option is used, objects will be created for devices in the import file that are not currently assigned to the specified device group.
Definition examples
10.169.1.3,37.7749,122.4194
192.168.6.1,40.7128,74.0059