If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
On condition you are talking about Linux systems there are (as allways on linux) lots of ways to achieve this.
Here just two proposals:
UserParameter=net.if.promisc[*],/sbin/ip link show $1 | /bin/grep -q PROMISC; echo $$?
net.if.promisc["eth0"]
Returns 0 on promiscuous mode and 1 otherwise.
vfs.file.regexp["/sys/class/net/eth0/flags","^0x[0-9]*[13579][0-9]{2}$"]
Returns 1 on promiscuous mode and 0 otherwise.
Comment