-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
markdown
* Show the total number of 5XX each account is getting in a DC
```terminal
ansible -i inventory proxy -m shell -a "awk -F'/' '/v1.S.\ 50[0-9]\ / {gsub(/\ ./,"",$5);count[$5]++} END {for (acc in count) print acc, count[acc]}' /u01/oss/proxy/log/galaxy/localhost_access_log.txt" | awk '/Storage/ {a[$1] += $2} END{for (i in a) print i, a[i]|"sort -nr -k2"}'
```
- Show the total number of 5XX each account is getting in a DC
```bash
ansible -i inventory proxy -m shell -a "awk -F'/' '/v1.S.\ 50[0-9]\ / {gsub(/\ ./,"",$5);count[$5]++} END {for (acc in count) print acc, count[acc]}' /u01/oss/proxy/log/galaxy/localhost_access_log.txt" | awk '/Storage/ {a[$1] += $2} END{for (i in a) print i, a[i]|"sort -nr -k2"}'
```
render:

Metadata
Metadata
Assignees
Labels
No labels