PPPoE And HotSpot CLI Script ????

Hi,
is there any PPPoE And HotSpot CLI Script ???
like
when user first time login in to his id and then his mac will be bind with his id


i m wating for your good replies