Question: I’m trying to determine the IP address of the network switch several Linux boxes are plugged into.

Background: I need to know in which physical port they’re plugged into, so the machines automatically detect their 'spatial placing' (Since a certain port is hard-wired to a specific location).

The port detection itself is done via SNMP, which works quite well, but obviously I need the IP of the switch.

What I’m doing at the moment is: Run nmap (meh...) with just ping scan on the whole subnet (or scanning for telnet, since the switch has this port open) and afterwards check the ARP cache and retrieve the IP by checking against the MAC address, since I know what manufacturer part to look for.

Question: Is there some easier way (avoiding nmap), I already tried arp broadcasting, but that doesn't seem to give me an arp cache entry for the switch. The switch in question is an [IGS-801M from Planet Technology](http://www.planet.com.tw/en/product/product.php?id=25685), the (six) devices are plugged in directly, nothing network-ish between them.

The switch gets its IP assign via DHCP or even auto assigned (`169.x.x.x`), static IP is not an option.

I also tried stuff like traceroute and hoping the switch would show up as a hop, but since it just (quietly) forwards stuff to the gateway it won't show up.

Any ideas?

Answer: 
Google Takeout lets you schedule exports every two months, so six a year
and up to one year.
You can choose to have the file added to a cloud drive or have
a download link emailed (downloads are kept for one week only).

To program it, browse to the page of <https://takeout.google.com/settings/takeout?pli=1>.

You may select the Google data to include in the backup.
The supported cloud drives are: Drive, Dropbox, OneDrive and Box.
The dump formats are Zip or tgz.

You will find more information in the article
[How to download your Google data](https://support.google.com/accounts/answer/3024190?hl=en).

---

As Google Takeout does not provide an API, automating launching such
a backup through the browser may not work when its user-interface
will change.

It might be best to use Google Takeout to backup to some cloud disk,
and automate the download of the new files.

You may consult
[this answer](https://superuser.com/a/1476843/8672)
of mine for ways of accessing Google Drive for syncing.
It is probably possible to map Google Drive to Windows, so using Windows
tasks for syncing new backups to the local disk (although I haven't tried).
I found this question while searching for how to fix my google photos not showing up properly in google drive (which I'm already automatically backing up!).

So, to get your photos to show up in google drive, go to <https://photos.google.com>, settings and set it to show photos in a folder in drive.

Then use <https://github.com/ncw/rclone> to clone your entire google drive (which now includes photos as a 'normal' directory) down to your local storage.