Fetch internal variables used in pppoe server user status change like up or down

Hi. I need some help while writing script with pppoe server. In pppoe server config there is an option to trigger a script at specific event but how can I get values like username, interface name, mac etc. I have found on accel-ppp forum but I could not find something useful

Extended scripts receive from the PPPoE daemon the following variables:

$1 - Interface name
$4 - Tunnel GW IP address
$5 - Delegated IP address to the client
$6 - Calling Station ID (MAC)

if [ -f /run/accel-pppd/radattr.$1 ]; then
    # something could be found here
    true
fi

1 Like

Thanks.I will reply after testing.