'Get the hardware architecture of the remote machine.'

def get_arch(self):

    arch = self.run('/bin/uname    -m').stdout.rstrip()
    if re.match('i\\d86$', arch):
        arch = 'i386'
    return arch
