Exported Script: Automatic Geo-location Devices in Worldwide Map
I know that there is the option to automatic geolocate devices based on the field ‘location’ available in SNMP, with the following KB detailing how to use this, but:
- who is using that field properly?
- what happens with the rest of the devices? Say devices monitored using WMI, Agent or even ICMP
There is also a way to import coordinates within the GUI of Orion, but this is a manual process, which would need to be performed regularly in order to keep objects on the map up to date.
That’s why in Prosperon Networks we have created a SQL script that will set the coordinates of the devices based on the value of a custom property. This script can be scheduled to be run every day, or any other frequency that you might consider in order to place any new device on the map.
There are just a few prerequisites in order to use this script properly:
- Create a custom property named Site
- Assign the correct Site to each device
- Modify the SQL script adding your locations and the coordinates of those locations in Site: Add more locations just by adding more options in each case.
- Create a job in SQL to run this script every day
BONUS INSIGHT
We can use IP addresses instead of the custom property site if you wish. The script would look like
…
Case
When IP_address like ‘192.168.% then 50.813104
When IP_address like ‘172.16.1.% then 41.429853
Custom Script: Automatic Geo-Location Devices In Worldwide Maps
Raul Gonzalez
Technical Manager
Raul Gonzalez is the Technical Manager at Prosperon Networks. As a Senior SolarWinds and NetBrain Engineer for over seven years, Raul has helped hundreds of customers meet their IT monitoring needs with SolarWinds and NetBrain Solutions.
Custom Script: Automatic Geo-Location Devices In Worldwide Maps
Related Insights From The Prosperon Blog
The Critical Role Of The Trusted Advisor In NetOps
Before there was “Network Operations” there were networks. Networks grew out of a need for connecting one box to another, sharing printers, and for more advanced users,...
Webinar On-Demand: Beyond Monitoring – Introducing SolarWinds Observability Platform
In this webinar, you will discover how SolarWinds® is evolving to deliver complete infrastructure visibility. This webinar examines how to extend visibility across your IT...
An Introduction To SolarWinds Orion’s Device Configuration Compliance Reporting
Needless to say, it is critical that the all network devices in your organisation are secure and available at all times. However, configuration changes and adding new...