To get agency commission for life time of the policies (which you had sold), you need to work for minimum 5 years.
But, just for your info, this thing (life time commission) is also going to change as IRDA is working on a new rule for orphan policies.