def get_sshserver_password( sshhost):
    
    # get server id from db by host
    index =  switch_db.get_sshserver_id(sshhost)
    # get username from db by host id
    usercfg = switch_db.get_userinfo(index)
    passwd = usercfg[0].password
    LOG.debug("get_sshserver_password passwd = %s ",passwd)
    return passwd
def get_sshserver_username( sshhost ):
    
    # get server id from db by host
    index =  switch_db.get_sshserver_id(sshhost)

    # get username from db by host id
    usercfg = switch_db.get_userinfo(index)
    LOG.debug("get_sshserver_username usercfg = %s ",usercfg)
    username = usercfg[0].username
    LOG.debug("get_sshserver_username username = %s",username)
    return username