CONNECTED LEARNING LAB
Agent setup
Install the open-source Python monitoring agent, connect a Unays API key and explicitly enable local networks for scans and IoT discovery.
Create and connect your key
Open the Unays Developer Portal, sign in or connect your existing Unays/Google account, and create a key. Copy the complete value shown once. In UnaysNET, choose Connect key and paste it. Keys stay in this tab’s session storage; private reports belong to your account, so another key from the same account can view your devices.
Keep keys private. Revoking a key in the developer portal stops new IoT requests immediately.
Run on Windows, macOS or Linux
Install Python 3.9 or newer on the computer you want to monitor. Download and inspect the agent, install the open-source dependencies, then run it. Enter your API key at the hidden prompt. The agent runs as your normal user; some operating systems restrict process or connection details.
Download Python agent ↓Windows PowerShell
py -m pip install psutil requests
curl.exe -fSs https://iot.unays.net/download-agent -o unaysnet_agent.py
py unaysnet_agent.pymacOS & Linux
python3 -m venv .unaysnet-venv
source .unaysnet-venv/bin/activate
python -m pip install psutil requests
curl -fSs https://iot.unays.net/download-agent -o unaysnet_agent.py
python unaysnet_agent.pyYou can also set UNAYSNET_API_KEY in the agent’s environment. The agent does not write API keys to disk. Keep the terminal running; reports refresh every five seconds. Use --test to send one real report and check its exit status.
iPhone & iPad: use the dashboard in Safari. Run the Python agent on a Windows, macOS or Linux computer to monitor it. A browser cannot directly inspect your iPad’s system processes or scan its network.
Enable scans and discovery
Scans are disabled on the agent until you explicitly enable a private network you own or administer. Replace the example with your lab’s actual CIDR. Then select the agent in this dashboard and open Network scanner or IoT inventory.
python unaysnet_agent.py --allow-network 192.168.1.0/24For a safe first exercise on the same computer, use --allow-network 127.0.0.1/32 and scan a local service you started. Jobs move through queued, running and completed states. The agent checks the allowed network again before making any connection. Discovery supports up to 256 addresses and four ports; a single-host scan supports 32 ports.
Agent API & privacy
| Endpoint | Purpose |
|---|---|
GET /api/health | Public service status |
GET /api/agents | Your account’s devices |
POST /api/agent/report | Send a device report |
GET /api/dashboard/private?agent_id=… | Selected device measurements |
POST /api/scanner/scan | Queue a local check with agent_id, target and ports |
POST /api/iot/discover | Queue bounded local discovery |
GET /api/scanner/history | Job states and results |
Protected endpoints require X-API-Key. Reports are isolated by account and device, stored outside the public website, and excluded from search engines. The latest report is retained per device; job history expires after 30 days when new reports arrive. Remove a device’s stored data from Device monitor, and stop the local agent first so it does not reconnect.
Troubleshooting
No device: run the latest agent with a key from the same account. Offline: restart the agent; reports older than 60 seconds are marked offline. Network denied: check the exact --allow-network value. No discovered hosts: try known service ports; hosts that do not accept a TCP connection are not listed. Revoked key: create a new key and reconnect both the dashboard and agent.