Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdf-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
set
tdf-client
Commits
e6060c13
Commit
e6060c13
authored
3 years ago
by
Chad Kerner
Browse files
Options
Downloads
Patches
Plain Diff
cleaned up output
parent
bbfaae41
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tdf
+12
-4
12 additions, 4 deletions
tdf
with
12 additions
and
4 deletions
tdf
+
12
−
4
View file @
e6060c13
...
...
@@ -8,7 +8,7 @@ import pprint
CSV_HEADER
=
'
Taiga Mount,Allocation(TB),Used(KB),BlockSoft(KB),BlockHard(KB),BlockGrace,Files,FilesSoft,FilesHard,FilesGrace
'
HOST
=
'
taiga-
exp01
.ncsa.illinois.edu
'
HOST
=
'
taiga-
nfs
.ncsa.illinois.edu
'
PORT
=
5555
options
=
{}
...
...
@@ -59,6 +59,10 @@ def print_help():
This utility will print out the usage information for your mapped Taiga exports:
> ./tdf
Taiga Export Alloc(kbytes) Quota(kbytes) Used(kbytes) Avail(kbytes) Use% Files
/taiga/ncsa/cavl 161061273600 161061273600 111208277820 49852995780 69% 22952882
> ./tdf -h
Taiga Export Alloc(T) Quota(T) Used(T) Avail(T) Use% Files
/taiga/ncsa/cavl 150 150.0 103.5 46.5 69% 22931759
...
...
@@ -84,9 +88,13 @@ if __name__ == '__main__':
sys
.
exit
(
1
)
# Establish the connection and receive the data
with
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
as
s
:
s
.
connect
((
HOST
,
PORT
))
data
=
s
.
recv
(
4096
)
try
:
with
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
as
s
:
s
.
connect
((
HOST
,
PORT
))
data
=
s
.
recv
(
4096
)
except
:
print
(
"
Error Connecting To: %s : %s
"
%
(
HOST
,
PORT
)
)
sys
.
exit
(
1
)
for
line
in
data
.
splitlines
():
lined
=
line
.
decode
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment