Commit b8965b45 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace: add 'rvlan-status' script

This simply sends SIGUSR1 to radiusvlan and sorts the output file.

Example:

wri2 (001bc5090845 <-> 001bc509007d): state configured, vlan 4094, pid 0, fd -1
wri3 (001bc5090846 <-> 00e04c1bfd8d): state configured, vlan 31, pid 0, fd -1
wri4 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri5 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri6 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri7 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri8 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri9 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri10 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri11 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri12 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri13 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri14 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri15 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri16 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri17 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
wri18 (000000000000 <-> ): state down, vlan 0, pid 0, fd -1
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 4e006ac5
#!/bin/sh
killall -USR1 radiusvlan
if [ $? -ne 0 ]; then exit 1; fi
# sort the lines: all of them start with "wri"
sed 's/^wri//' /tmp/rvlan-status | sort -n | sed 's/^/wri/'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment