Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - pear

#1
General Discussion / need help with wol api
February 03, 2019, 02:45:52 PM
hello

please can someone help me with WOL API?
i am able to wake all already defined computers at once with "wakeall" but i have no idea how to wake just one computer from list or with manually defined interface and mac
curl -XPOST -d '' -k -u "$key":"$secret" "https://$opnsenseIP:port/api/wol/wol/wakeall"

with getHost i can see from output that correct interface is selected with defined mac and description
curl -XPOST -d '' -k -u "$key":"$secret" "https://$opnsenseIP:port/api/wol/wol/getHost/$uuid"
getHost output:
....."lan":{"value":"correct interface name","selected":1}....."mac":"correct mac","descr":"my description"}}

many thanks