forked from ycrash/yc-data-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst_aix.go
26 lines (24 loc) · 1.12 KB
/
const_aix.go
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
package shell
var (
NetState = Command{"netstat", "-a"}
PS = Command{"ps", "-ef"}
PS2 = Command{"ps", "-ef"}
M3PS = Command{"ps", "-ef"}
Disk = Command{"df"}
Top = Command{"topas", "-P"}
Top2 = Command{"topas", "-P"}
TopH = Command{"topas", "-P"}
TopH2 = Command{"topas", "-P"}
Top4M3 = Command{"topas", "-P"}
VMState = Command{"vmstat", DynamicArg, DynamicArg}
DMesg = Command{"dmesg"}
DMesg2 = Command{"dmesg"}
GC = Command{"ps", "-f", "-p", DynamicArg}
AppendJavaCoreFiles = Command{"/bin/sh", "-c", "cat javacore.* > threaddump.out"}
AppendTopHFiles = Command{"/bin/sh", "-c", "cat topdashH.* >> threaddump.out"}
ProcessTopCPU = Command{"ps", "-eo", "pid,cmd,%cpu", "--sort=-%cpu"}
ProcessTopMEM = Command{"ps", "-eo", "pid,cmd,%mem", "--sort=-%mem"}
OSVersion = Command{WaitCommand, "uname", "-a"}
KernelParam = Command{WaitCommand, "sysctl", "-a"}
SHELL = Command{"/bin/sh", "-c"}
)