Skip to main content

TailScale util to get device details

Project description

PyPI version Downloads MIT license tailscale

This is a tailscale plugin for getting IP Address of specific device.

Installation

pip install tailscale-util-ns

Usage

Add tailscale.ini file into the root directory.

[config]
tskey : <tskey-xxxxxxxxx>
advertise-tags : tag:<tag_name>

How to up Tailscale?

from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

TailScaleDeviceIp()

How to get IP Address for DNS?

from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

TailScaleDeviceIp().get_ip_for_dns('prtg02').strip()

How to get IP Address for Device?

from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

TailScaleDeviceIp().get_ip_for_device(device_name='PRTG02')

Author

Nishith Shah - github

License

This project is licensed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tailscale-util-ns-2.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page