Example #1
0
def checksQueries_menu():
	menu = ['1. General Health Check', '2. Nightly Maintenance Check', '\n     3. Show Sync Status', '4. GW pending events by User (consumerevents)', '5. Mobility pending events by User (syncevents)', '\n     6. Attachments...', '7. Performance...', '\n     0. Back']

	available = build_avaialbe(menu)
	loop = True
	while loop:
		show_menu(menu)
		choice = get_choice(available)
		if choice == '1':
			ghc.generalHealthCheck(mobilityConfig, gwConfig, XMLconfig ,ldapConfig, dbConfig, trustedConfig, config_files, webConfig)
			print; ds.eContinue()
		elif choice == '2':
			print ds.checkNightlyMaintenance(config_files, mobilityConfig)['output']
			print; ds.eContinue()
		elif choice == '3':
			ds.datasyncBanner(dsappversion)
			ds.showStatus(dbConfig)
			print; ds.eContinue()
		elif choice == '4':
			ds.show_GW_syncEvents(dbConfig)
		elif choice == '5':
			ds.show_Mob_syncEvents(dbConfig)
		elif choice == '6':
			viewAttachments_menu()
		elif choice == '7':
			performance_menu()
		elif choice == '0':
			loop = False
			main_menu()
Example #2
0
def checksQueries_menu():
    menu = [
        '1. General Health Check', '2. Nightly Maintenance Check',
        '\n     3. Show Sync Status',
        '4. GW pending events by User (consumerevents)',
        '5. Mobility pending events by User (syncevents)',
        '\n     6. Attachments..', '7. Performance..', '\n     0. Back'
    ]

    available = build_avaialbe(menu)
    loop = True
    while loop:
        show_menu(menu)
        choice = get_choice(available)
        if choice == '1':
            ghc.generalHealthCheck()
            print
            ds.eContinue()
        elif choice == '2':
            print ds.checkNightlyMaintenance()['output']
            print
            ds.eContinue()
        elif choice == '3':
            ds.datasyncBanner()
            ds.showStatus()
            print
            ds.eContinue()
        elif choice == '4':
            ds.show_GW_syncEvents()
        elif choice == '5':
            ds.show_Mob_syncEvents()
        elif choice == '6':
            viewAttachments_menu()
        elif choice == '7':
            performance_menu()
        elif choice == '0':
            loop = False
            main_menu()
Example #3
0
if args.debugMenu:
	import dsapp_menus as dsMenu
	dsMenu.getConfigs(dbConfig, ldapConfig, mobilityConfig, gwConfig, trustedConfig, XMLconfig, config_files, webConfig, authConfig)
	dsMenu.debug_menu()
	sys.exit(0)

# Change db pass
if args.db:
	ds.changeDBPass(config_files, XMLconfig)
	ds.eContinue()
	sys.exit(0)

# Run health check
if args.ghc:
	import dsapp_ghc as ghc
	ghc.generalHealthCheck(mobilityConfig, gwConfig, XMLconfig ,ldapConfig, dbConfig, trustedConfig, config_files, webConfig)
	print; ds.eContinue()
	sys.exit(0)

# Get / upload mobility logs
if args.upload:
	ds.getLogs(mobilityConfig, gwConfig, XMLconfig ,ldapConfig, dbConfig, trustedConfig, config_files, webConfig)
	print; ds.eContinue()
	sys.exit(0)

# Run nightly maintenance
if args.check:
	print ds.checkNightlyMaintenance(config_files, mobilityConfig)['output']
	print; ds.eContinue()
	sys.exit(0)
Example #4
0
    import dsapp_menus as dsMenu
    dsMenu.debug_menu()
    sys.exit(0)

# Change db pass
if args.db:
    logger.info("Running switch: database")
    ds.changeDBPass()
    ds.eContinue()
    sys.exit(0)

# Run health check
if args.ghc:
    logger.info("Running switch: gHealthCheck")
    import dsapp_ghc as ghc
    ghc.generalHealthCheck()
    print
    ds.eContinue()
    sys.exit(0)

# Get / upload mobility logs
if args.upload:
    logger.info("Running switch: uploadLogs")
    ds.getLogs()
    print
    ds.eContinue()
    sys.exit(0)

# Run nightly maintenance
if args.check:
    logger.info("Running switch: check")