In the early 1800’s snake charmers where plentiful in Cairo. Upon visiting a home the owner believed to be troubled with a snake the charmer might say:
“I conjure thee, by our Lord Suleyman” (Solomon, son of David) “who ruled over mankind and the Jan” (Jin or Genii) “if thou be obedient, come to me: and if thou be disobedient, do not hurt me!”
A snake would usually dutifully appear and be secured without harm by the charmer.
– source: The Englishwoman in Egypt by Sophia Poole 1846