def clean():
    gtmclean = (('gtm_ctl -Z gtm -m immediate -D ' + gtmdata[0]) + '\n')
    sshTemp(gtmhost[0], gtmclean, 1)
    n = 0
    for i in gtmshost:
        gtmsclean = (('gtm_ctl -Z gtm_standby stop -m immediate -D ' + gtmsdata[n]) + '\n')
        sshTemp(i, gtmsclean, 1)
        n = (n + 1)
    n = 0
    for i in cnhost:
        cnclean = (('pg_ctl stop -m immediate -D ' + cndata[n]) + '\n')
        sshTemp(i, cnclean, 1)
        n = (n + 1)
    n = 0
    for i in dnhost:
        dnclean = (('pg_ctl stop -m immediate -D ' + dndata[n]) + '\n')
        sshTemp(i, dnclean, 1)
        n = (n + 1)
    n = 0
    for i in dnshost:
        dnsclean = (('pg_ctl stop -m immediate -D ' + dnsdata[n]) + '\n')
        sshTemp(i, dnsclean, 1)
        n = (n + 1)
    remoTemp(gtmhost[0], gtmdata[0])
    n = 0
    for i in gtmshost:
        remoTemp(i, gtmsdata[n])
        n = (n + 1)
    n = 0
    for i in cnhost:
        remoTemp(i, cndata[n])
        n = (n + 1)
    n = 0
    for i in dnhost:
        remoTemp(i, dndata[n])
        n = (n + 1)
    n = 0
    for i in dnshost:
        remoTemp(i, dnsdata[n])
        n = (n + 1)
def clean():
    gtmclean = (('gtm_ctl -Z gtm -m immediate -D ' + gtmdata[0]) + '\n')
    sshTemp(gtmhost[0], gtmclean, 1)
    n = 0
    for i in gtmshost:
        gtmsclean = (('gtm_ctl -Z gtm_standby stop -m immediate -D ' + gtmsdata[n]) + '\n')
        sshTemp(i, gtmsclean, 1)
        n = (n + 1)
    n = 0
    for i in cnhost:
        cnclean = (('pg_ctl stop -m immediate -D ' + cndata[n]) + '\n')
        sshTemp(i, cnclean, 1)
        n = (n + 1)
    n = 0
    for i in dnhost:
        dnclean = (('pg_ctl stop -m immediate -D ' + dndata[n]) + '\n')
        sshTemp(i, dnclean, 1)
        n = (n + 1)
    n = 0
    for i in dnshost:
        dnsclean = (('pg_ctl stop -m immediate -D ' + dnsdata[n]) + '\n')
        sshTemp(i, dnsclean, 1)
        n = (n + 1)
    remoTemp(gtmhost[0], gtmdata[0])
    n = 0
    for i in gtmshost:
        remoTemp(i, gtmsdata[n])
        n = (n + 1)
    n = 0
    for i in cnhost:
        remoTemp(i, cndata[n])
        n = (n + 1)
    n = 0
    for i in dnhost:
        remoTemp(i, dndata[n])
        n = (n + 1)
    n = 0
    for i in dnshost:
        remoTemp(i, dnsdata[n])
        n = (n + 1)