Hi,
I am looking for a CLI command which would allow me to view which users are logged in to which device (MAC Address).
Thanks!
Hi,
I am looking for a CLI command which would allow me to view which users are logged in to which device (MAC Address).
Thanks!
You can get the IP of currently active devices with:-
rasterisk -x ‘sip show peers’|grep OK|awk ‘{print $2"\t"$1}’
and the mac addresses with
arp -n
Exactly what I was looking for, thanks!
rasterisk -x ‘sip show peers’|grep OK|sort|awk ‘{print $2,$1}’|sort > 1;arp -n|grep -v Address|awk ‘{print $1,$3}’|sort > 2;join 1 2