Recently I faced problem to deploy timer job in multi-farm environment. That’s why I thought to share it with you to save your time.
Deployment Instruction:
If you need to re-install or Remove Timer Job then do the following. It is always needed when you re-deploy your latest Implementation.
To remove the Timer Job, First disable the feature and then do the following:
- Disable the feature from Site Collection Administration->Site Collection Features
- Uninstall-SPSolution -Identity nameofsolution.wsp –allwebapplications
- Remove-SPSolution nameofsolution.wsp –force
- Now Re-start SharePoint Timer Service
- Run net stop sptimerv4
- Run net start sptimerv4
- Re-Start IIS is option but better to do
- Run iisreset
At First, You will do in Server 1 (Apps). This server is the one which contains all the services, and we will do the following:
- Copy the wsp package in the server you want to deploy the Timer Job (for instance c:\WSP)
- Go to the server were you want to deploy the solution and go to Start->SharePoint 2010 Management Shell
- Run the following command to add Timer Job package solution
- Add-SPSolution c:\WSP\solutionname.wsp
- Run the following command to Install solution
- install-spsolution solutionname.wsp -GACDeployment –force
- Now Re-start SharePoint Timer Service to re-load new Job
- Run net stop sptimerv4
- Run net start sptimerv4
- Re-Start IIS is option but better to do
- Run iisreset

(Note: This is enough in case of single server)
Now, do the following for every Front-End server, do the following:
- Go to Start->SharePoint 2010 Management Shell
- Run the following command to Install solution
- install-spsolution solutionname.wsp -GACDeployment –force
- Now Re-start SharePoint Timer Service to re-load new Job
- Run net stop sptimerv4
- Run net start sptimerv4
- (optional) Re-Start IIS
- Run iisreset

Finally, Enable the feature from Site Collection Administration->Site Collection Features
Cheers!!