samsung root

hi guys,

trying to repair the imei no. for my samsung s6 but during the process it says "phone not rooted". is there a certain way or software i’m meant to use to root it? thanks