Initial upload: cmdparse CLI tool with comprehensive documentation and CI/CD
This commit is contained in:
60
config/default_parsers.yaml
Normal file
60
config/default_parsers.yaml
Normal file
@@ -0,0 +1,60 @@
|
||||
parsers:
|
||||
- name: docker_ps
|
||||
pattern: "NAME.*PORTS"
|
||||
fields:
|
||||
- CONTAINER_ID
|
||||
- IMAGE
|
||||
- COMMAND
|
||||
- CREATED
|
||||
- STATUS
|
||||
- PORTS
|
||||
- NAMES
|
||||
|
||||
- name: df_output
|
||||
pattern: "Filesystem.*Mounted"
|
||||
fields:
|
||||
- Filesystem
|
||||
- Size
|
||||
- Used
|
||||
- Avail
|
||||
- "Use%"
|
||||
- Mounted
|
||||
|
||||
- name: netstat
|
||||
pattern: "Proto.*PID/Program"
|
||||
fields:
|
||||
- Proto
|
||||
- Recv-Q
|
||||
- Send-Q
|
||||
- Local_Address
|
||||
- Foreign_Address
|
||||
- State
|
||||
- PID/Program
|
||||
|
||||
- name: ps_aux
|
||||
pattern: "USER.*COMMAND"
|
||||
fields:
|
||||
- USER
|
||||
- PID
|
||||
- "%CPU"
|
||||
- "%MEM"
|
||||
- VSZ
|
||||
- RSS
|
||||
- TTY
|
||||
- STAT
|
||||
- START
|
||||
- TIME
|
||||
- COMMAND
|
||||
|
||||
- name: ls_long
|
||||
pattern: "total"
|
||||
fields:
|
||||
- permissions
|
||||
- links
|
||||
- owner
|
||||
- group
|
||||
- size
|
||||
- month
|
||||
- day
|
||||
- time
|
||||
- name
|
||||
Reference in New Issue
Block a user