Added override for hostname, and sme scanning for CLI mode