Where does the printer it self store the mantinence gcode

where does the printer store the mantinence gcode

That would have to be somewhere in the firmware I would think.

It may not even be gcode. Could be some other method of direct control/sensing to get calibration values.