We have obtained optical integral field spectroscopy of the explosion sites of more than 25 nearby type-IIP/IIL/Ib/Ic supernovae using UH88/SNIFS, and additionally Gemini/GMOS IFU. This technique enables us to obtain both spatial and spectral information of the immediate environment of the supernovae. Using strong line method we measured the metallicity of the star cluster present at the explosion site, presumably the coeval parent stellar population of the supernova progenitor, and comparison with simple stellar population models gives age estimate of the cluster. With this method we were able to put constraints on the metallicity and age of the progenitor star. The age, i.e. lifetime, of the progenitor corresponds to the initial mass of the star. By far this is the most direct measurement of supernova progenitor metallicity and, if the cluster-progenitor association is confirmed, provides reliable determination of the initial mass of supernova progenitor stars.