-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestcase.sh
More file actions
63 lines (39 loc) · 1.05 KB
/
Copy pathtestcase.sh
File metadata and controls
63 lines (39 loc) · 1.05 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# sysmon.sh test case
pause(){
read -p "$*"
}
echo cli help
./sysmon.sh
pause 'next test ...'
echo list available kpi
./sysmon.sh -l
pause 'next test ...'
echo ping localhost
./sysmon.sh -p -s localhost
pause 'next test ...'
echo ping remote wsl1
./sysmon.sh -p -s wsl1
pause 'next test ...'
echo ping remote servers list
./sysmon.sh -p -s "wsl1 wsl2"
pause 'next test ...'
echo ping remote servers from nodelist file
./sysmon.sh -p -f config/nodelist
pause 'next test ...'
echo localhost monitor
./sysmon.sh -k all -s localhost
pause 'next test ...'
echo remote monitor with key
./sysmon.sh -k all -m key -f config/nodelist
pause 'next test ...'
echo remote monitor with pass
./sysmon.sh -k all -m pass -f config/nodelist
pause 'next test ...'
echo turn on debug
./sysmon.sh -d -k all -m pass -f config/nodelist
echo enable email, using default email list
./sysmon.sh -d -e '' -k cpu -m key -s wsl2
pause 'next test ...'
echo enable email, using new email list
./sysmon.sh -d -e "info@sysmon.com" -k cpu -m key -s wsl2