-
Notifications
You must be signed in to change notification settings - Fork 18
/
script-01.sh
42 lines (30 loc) · 1.3 KB
/
script-01.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/bash
# Improve readability of output
echo "========================================================================================="
echo "===>"
echo "===> Running $0"
echo "===> Show Storage Scale filesystems"
echo "===>"
echo "========================================================================================="
# Print commands and their arguments as they are executed
set -x
# Exit script immediately, if one of the commands returns error code
set -e
# Show the global mount status for the whole Storage Scale cluster
echo "===> Show the global mount status for the whole Storage Scale cluster"
mmlsmount all
# Show the default mount point managed by Storage Scale
echo "==> Show the default mount point managed by Storage Scale"
mmlsfs fs1 -T
# Show the local mount status on the current node
echo "===> Show the local mount status on the current node"
mount | grep /ibm/
# Show content of all Storage Scale filesystems
echo "===> Show content of all Storage Scale filesystems"
find /ibm/
# Show all Storage Scale filesystems using the REST API
echo "==> Show all Storage Scale filesystems using the REST API"
curl -k -s -S -X GET --header 'Accept: application/json' -u admin:admin001 'https://localhost/scalemgmt/v2/filesystems/'
# Exit successfully
echo "===> Script completed successfully!"
exit 0