adding snmp-server

hi i am trying to find out how to add snmp-server location and snmp-server contact on hp switch using config templet and updates the contact and location by it self