argus-netconf-exporter/scripts/register_device.sh

27 lines
726 B
Bash

curl -s -X POST -H "Content-Type: application/json" -H "X-API-Token: changeme" -d '{
"name": "h3c-live-1",
"host": "127.0.0.1",
"port": 8830,
"username": "netconf_user",
"password": "NASPLab123!",
"enabled": true,
"supports_xpath": false,
"scrape_interval_seconds": null,
"vendor": "h3c"
}' http://127.0.0.1:19100/api/v1/devices
curl -s -X POST -H "Content-Type: application/json" -H "X-API-Token: changeme" -d '{
"name": "ruijie-live-1",
"host": "127.0.0.1",
"port": 9830,
"username": "ruijie1-admin",
"password": "1qw2#ER$_ruijie",
"enabled": true,
"supports_xpath": false,
"vendor": " Ruijie "
}' http://127.0.0.1:19100/api/v1/devices