If an action be brought against a sheriff for an act done by virtue of his or her office, and the sheriff gives written notice thereof to the sureties on any bond of indemnity received by the sheriff, the judgment recovered therein shall be conclusive evidence of the sheriff's right to recover against such sureties, and the court or judge in vacation, may, on motion, upon notice of 5 days, order judgment to be entered up against them for the amount so recovered, including costs.
NRS 17.020