snmpscan: improve speed and correctness