Generally, the only reason you'll ever need to know your IMEI number is if you want to unlock your iPhone from a specific carrier to use it with a different service provider. In that case ...
when removed from a cellular network. If the iPhone was in an After First Unlock (AFU) state, the device returns to a Before First Unlock (BFU) state after the reboot. This can be very detrimental ...