5. Vaccination In some cases, vaccines are available to protect against specific pathogens that cause diarrhea. For example, vaccines can help prevent certain strains of E. coli and rotavirus in calves.