Added Device List Query
This commit is contained in:
+11
-7
@@ -125,12 +125,13 @@ def deduplicate_list(lst):
|
||||
def menu_main():
|
||||
while True:
|
||||
ct.displayIntro();
|
||||
print(ct.colorText("1. Get All Events for Single Device", "yellow"))
|
||||
print(ct.colorText("2. OTP", "yellow"))
|
||||
print(ct.colorText("3. Find Unexcluded from 24hr Execution", "yellow"))
|
||||
print(ct.colorText("4. Prepare Policy For Enforcement", "yellow"))
|
||||
print(ct.colorText("5. Update Audit Policies from Enforcement Policies", "yellow"))
|
||||
print(ct.colorText("Q. Quit", "yellow"))
|
||||
print(ct.colorText("1. 🖥️ - Get All Events for Single Device", "yellow"))
|
||||
print(ct.colorText("2. 🎫 - OTP", "yellow"))
|
||||
print(ct.colorText("3. ⏱️ - Find Unexcluded from 24hr Execution", "yellow"))
|
||||
print(ct.colorText("4. 🔒 - Prepare Policy For Enforcement", "yellow"))
|
||||
print(ct.colorText("5. 🔄 - Update Audit Policies from Enforcement Policies", "yellow"))
|
||||
print(ct.colorText("6 🔍 - Device Search", "yellow"))
|
||||
print(ct.colorText("Q. 🔚 - Quit", "yellow"))
|
||||
|
||||
choice = input(ct.colorText("\nEnter Menu Item: ", "white"))
|
||||
if choice == '1':
|
||||
@@ -143,6 +144,9 @@ def menu_main():
|
||||
menu_prepare_to_enforce()
|
||||
elif choice == "5":
|
||||
utils.policyfunctions.updateAuditPoliciesFromEnforcementPolices(url, policy_relationship_map)
|
||||
elif choice == "6":
|
||||
device_input_str = utils.clientfunctions.promptForDevices()
|
||||
utils.clientfunctions.findAgents(url, device_input_str)
|
||||
elif choice == "Q":
|
||||
break
|
||||
else:
|
||||
@@ -150,7 +154,7 @@ def menu_main():
|
||||
|
||||
def menu_otp():
|
||||
while True:
|
||||
print(ct.colorText("\n--- OTP Submenu ---","cyan"))
|
||||
print(ct.colorText("\n--- 🎫 OTP Submenu 🎫 ---","cyan"))
|
||||
print(ct.colorText("1. Generate OTP","cyan"))
|
||||
#print(ct.colorText("2. Sub-option B","cyan"))
|
||||
print(ct.colorText("Q. Return to Main Menu","cyan"))
|
||||
|
||||
Reference in New Issue
Block a user