Skip to content

Commit f0433f5

Browse files
committed
Logging in again to discontinue browsing the global_admin portal
1 parent efae6b4 commit f0433f5

22 files changed

+44
-11
lines changed

output.tmp

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
1-
2023-11-20 17:15:46,189 [INFO] Logging into 192.168.80.201
2-
2023-11-20 17:15:46,231 [INFO] User logged in. {'host': '192.168.80.201', 'user': 'admin'}
3-
2023-11-20 17:15:46,284 [INFO] Starting run_cmd task.
4-
2023-11-20 17:15:46,289 [INFO] Getting all Filers since tenant is Administration
5-
2023-11-20 17:15:46,386 [INFO] Running command on: GW-2
6-
2023-11-20 17:15:46,387 [INFO] Executing CLI command. {'cli_command': 'dbg l'}
7-
2023-11-20 17:15:46,394 [WARNING] Something went wrong running the command on GW-2
8-
2023-11-20 17:15:46,395 [INFO] Running command on: LabGW
9-
2023-11-20 17:15:46,395 [INFO] Executing CLI command. {'cli_command': 'dbg l'}
10-
2023-11-20 17:15:46,415 [WARNING] Something went wrong running the command on LabGW
11-
2023-11-20 17:15:46,416 [INFO] Finished run_cmd task on all Filers.
1+
2023-11-20 17:25:06,825 [INFO] hello
2+
2023-11-20 17:25:06,825 [INFO] Logging into 192.168.80.201
3+
2023-11-20 17:25:06,865 [INFO] User logged in. {'host': '192.168.80.201', 'user': 'admin'}
4+
2023-11-20 17:25:06,992 [INFO] Logging into 192.168.80.201
5+
2023-11-20 17:25:07,025 [INFO] User logged in. {'host': '192.168.80.201', 'user': 'admin'}
6+
2023-11-20 17:25:07,060 [INFO] Getting Filers connected to portal
7+
2023-11-20 17:25:09,149 [INFO] delete
8+
2023-11-20 17:25:09,168 [INFO] Share name: 'cloud'
9+
2023-11-20 17:25:09,169 [INFO] Share name: 'vol1-notmethough'
10+
2023-11-20 17:25:09,170 [INFO] Share name: 'vol1-delete'
11+
2023-11-20 17:25:09,170 [INFO] Share name: 'vol1-deleteme'
12+
2023-11-20 17:25:09,170 [INFO] Share name: 'vol1-thistoo'
13+
2023-11-20 17:25:09,171 [INFO] The following shares from filer GW-2 will be deleted:
14+
2023-11-20 17:25:09,172 [INFO] Share vol1-delete
15+
2023-11-20 17:25:09,173 [INFO] Share vol1-deleteme
16+
2023-11-20 17:25:11,860 [INFO] Request to delete share was not approved.
17+
2023-11-20 17:25:11,870 [INFO] Share name: 'cloud'
18+
2023-11-20 17:25:11,871 [INFO] Share name: 'vol1-notmethough'
19+
2023-11-20 17:25:11,871 [INFO] Share name: 'vol1-delete'
20+
2023-11-20 17:25:11,871 [INFO] Share name: 'vol1-deleteme'
21+
2023-11-20 17:25:11,872 [INFO] Share name: 'vol1-thistoo'
22+
2023-11-20 17:25:11,872 [INFO] The following shares from filer LabGW will be deleted:
23+
2023-11-20 17:25:11,872 [INFO] Share vol1-delete
24+
2023-11-20 17:25:11,872 [INFO] Share vol1-deleteme
25+
2023-11-20 17:25:12,180 [INFO] Request to delete share was not approved.

windows/CloudFoldersWindow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ def tool(self):
174174
global_admin.portals.browse_global_admin()
175175

176176
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
177+
178+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
177179

178180
## Step6 - Run the tool here
179181
# Ex: run_status(global_admin, filename, all_tenants_flag)

windows/DeleteSharesWindow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ def test_func(self):
128128

129129
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
130130

131+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
132+
131133
try:
132134
filers = get_filers(global_admin)
133135

windows/DisableSSHWindow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def tool(self):
114114
global_admin.portals.browse_global_admin()
115115

116116
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
117+
118+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
117119

118120
## Step6 - Run the tool here
119121
# Ex: run_status(global_admin, filename, all_tenants_flag)

windows/EnableSSHWindow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ def tool(self):
115115
global_admin.portals.browse_global_admin()
116116

117117
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
118+
119+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
118120

119121
## Step6 - Run the tool here
120122
# Ex: run_status(global_admin, filename, all_tenants_flag)

windows/EnableTelnetWindow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def enable_telnet(self):
9494
global_admin.portals.browse_global_admin()
9595

9696
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
97+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
9798
## Step4b - Run the tool here
9899
enable_telnet(global_admin, device_name, tenant_name, code)
99100
self._updateOutput()

windows/ImportSharesWindow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def tool(self):
9393
global_admin.portals.browse_global_admin()
9494

9595
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
96+
97+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
9698
## Step6b - Run the tool here
9799
# Ex: run_status(global_admin, filename, all_tenants_flag)
98100
import_shares(global_admin, device_name_source, device_name_dest)

windows/ResetPasswordWindow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def tool(self):
116116
global_admin.portals.browse_global_admin()
117117

118118
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
119+
120+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
119121

120122
## Step6 - Run the tool here
121123
# Ex: run_status(global_admin, filename, all_tenants_flag)

windows/RunCmdWindow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def runCmd(self):
117117
global_admin.portals.browse_global_admin()
118118

119119
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
120+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
120121

121122

122123
if not device_name:

windows/ShowStatusWindow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def showStatus(self):
115115
global_admin.portals.browse_global_admin()
116116

117117
global_admin.put('/rolesSettings/readWriteAdminSettings/allowSSO', 'True')
118+
global_admin = global_admin_login(portal_address, portal_username, portal_password, ignore_cert)
118119

119120
run_status(global_admin, filename, all_tenants_flag)
120121
self._updateOutput()

0 commit comments

Comments
 (0)