Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -si -H "X-Auth-Token: $mytoken" https://librenms.example.com/api/v0/devices/$hostname
- HTTP/1.1 200 OK
- Date: Mon, 13 Nov 2017 14:18:43 GMT
- Server: Apache/2.4.25 (Debian)
- Transfer-Encoding: chunked
- Content-Type: application/json
- {
- "status": "ok",
- "devices": [
- {
- "device_id": "354",
- "hostname": "hostname",
- "sysName": "hostname",
- "ip": "192.168.X.X",
- "community": "$community",
- "authlevel": null,
- "authname": null,
- "authpass": null,
- "authalgo": null,
- "cryptopass": null,
- "cryptoalgo": null,
- "snmpver": "v2c",
- "port": "161",
- "transport": "udp",
- "timeout": null,
- "retries": null,
- "snmp_disable": "0",
- "bgpLocalAs": null,
- "sysObjectID": "enterprises.8072.3.2.10",
- "sysDescr": "Linux hostname 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64",
- "sysContact": "Sysadmin (root@localhost)",
- "version": "4.9.0-4-amd64",
- "hardware": "Generic x86 64-bit",
- "features": null,
- "location": "Server Room",
- "os": "linux",
- "status": "1",
- "status_reason": "",
- "ignore": "0",
- "disabled": "0",
- "uptime": "1469957",
- "agent_uptime": "0",
- "last_polled": "2017-11-13 15:15:20",
- "last_poll_attempted": null,
- "last_polled_timetaken": "1.38",
- "last_discovered_timetaken": "1.14",
- "last_discovered": "2017-11-13 12:51:48",
- "last_ping": "2017-11-13 15:15:20",
- "last_ping_timetaken": "0.10",
- "purpose": null,
- "type": "server",
- "serial": null,
- "icon": "linux.svg",
- "poller_group": "0",
- "override_sysLocation": "0",
- "notes": null,
- "port_association_mode": "1"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement