Electronic and magnetic states of Fe atoms of cube-octahedral clusters of pure iron have been studied in the framework of the coherent locator approximation combined with the continued fraction method and the Hartree-Fock approximation. The calculation shows the stability of the ferromagnetic state of Fe atoms at the cluster and solid surface of pure iron. An analogous investigation of the Fe-Zr system in the ternary alloy approximation resulted in a small number of Fe atoms with magnetic moments oriented anti-parallel with respect to the bulk magnetization, which diminishes with a decrease of the cluster size.