Hi,
There can be many reasons for the anal spam depending on your medical history.
You should try following general treatment for a week
Dashmooladi kwath 10 ml early morning empty stomach. Avoid food for 30 mins after taking the medicine.
Ashwagandharishta 10 ml 30 mins before meals.
Triphala churna 1 tsp before bed at night with normal/warm water.
You might get immense benefit from anal basti(panchkarma for anus). Refer to nearest panchkarma centre.
Hope this helps!
Next Steps
Please consult nearest Ayurvedic physician for the best advice.