AFAIK, localcli did not exist in esx 4.x . It was introduced in 5.0 onwards.
From the KB , localcli hardware ipmi sel clear command is introduced specifically in a releaseof 5.1 and 5.5 only. For 4.x following steps should solve the issue.
To clear the IPMI System Event.log file and reset the sensors: