#!/usr/bin/python -u
import uvm
import sys

uvm = uvm.Uvm().getUvmContext()
appManager = uvm.appManager()

app = appManager.app("configuration-backup")

if app == None:
    print "configuration-backup app not installed."
    sys.exit(0)

app.sendBackup()
sys.exit(0)
#!@PREFIX@/usr/share/untangle/bin/ut-pycli -f
import uvm
import sys
import traceback

uvm = uvm.Uvm().getUvmContext(timeout=600)

reportsApp = uvm.appManager().app("reports");
if reportsApp == None:
    print("Reports not installed")
    sys.exit(1)

if reportsApp.getRunState() != 'RUNNING':
    print("Reports not running")
    sys.exit(1)

try:
    reportsApp.runFixedReports()
except Exception as e:
    # can timeout - just ignore
    print(e)
    pass
#!/usr/bin/python -u
import uvm
import sys

uvm = uvm.Uvm().getUvmContext()
appManager = uvm.appManager()

app = appManager.app( "configuration-backup" )

if app == None:
    print("configuration-backup app not installed.")
    sys.exit(0)

app.sendBackup()
sys.exit(0)
Exemple #4
0
#!@PREFIX@/usr/share/untangle/bin/ut-pycli -f
import uvm
import sys
import traceback

uvm = uvm.Uvm().getUvmContext(timeout=600)

reportsApp = uvm.appManager().app("reports");
if reportsApp == None:
    print "Reports not installed"
    sys.exit(1)

try:
    reportsApp.runFixedReport()
except:
    # can timeout - just ignore
    pass
Exemple #5
0
#!/usr/bin/python -u
import uvm
import sys

uvm = uvm.Uvm().getUvmContext(timeout=600)
app = uvm.appManager().app("smtp")

if app == None:
    print("SMTP Casing not installed.")
    sys.exit(0)

app.sendQuarantineDigests()
sys.exit(0)
#!/usr/bin/python -u
import uvm
import sys

uvm = uvm.Uvm().getUvmContext(timeout=600)
app = uvm.appManager().app( "smtp" )

if app == None:
    print("SMTP Casing not installed.")
    sys.exit(0)

app.sendQuarantineDigests()
sys.exit(0)