Skip to content

Commit

Permalink
feat(agw): Add commands and logs in show-tech playbook (magma#7841)
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyrb authored Jul 14, 2021
1 parent 9c5586f commit b6c19d9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This feature enables an operator to capture the essential state of the gateway (
# On your GW host, run the following command as user root:
# If you have git repo checked out already
$ cd ${MAGMA_ROOT}/show-tech
$ ansible-playbook show-tech.yml
$ sudo ansible-playbook show-tech.yml
# In case you want to download and process latest version of this playbook from Magma's master:
$ ansible-pull -U https://github.com/magma/magma.git show-tech/show-tech.yml -d /tmp/show-tech --purge
Expand Down Expand Up @@ -151,7 +151,7 @@ PLAY [install pre-requisites for show-tech] ************************************
Run the show-tech playbook:

```
$ ansible-playbook show-tech.yml
$ sudo ansible-playbook show-tech.yml
```

Validate the content of the package.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This feature enables an operator to capture the essential state of the gateway (
# On your GW host, run the following command as user root:
# If you have git repo checked out already
$ cd ${MAGMA_ROOT}/show-tech
$ ansible-playbook show-tech.yml
$ sudo ansible-playbook show-tech.yml
# In case you want to download and process latest version of this playbook from Magma's master:
$ ansible-pull -U https://github.com/magma/magma.git show-tech/show-tech.yml -d /tmp/show-tech --purge
Expand Down Expand Up @@ -152,7 +152,7 @@ PLAY [install pre-requisites for show-tech] ************************************
Run the show-tech playbook:

```
$ ansible-playbook show-tech.yml
$ sudo ansible-playbook show-tech.yml
```

Validate the content of the package.
Expand Down
4 changes: 2 additions & 2 deletions docs/readmes/lte/debug_show_tech.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This feature enables an operator to capture the essential state of the gateway (
# On your GW host, run the following command as user root:
# If you have git repo checked out already
$ cd ${MAGMA_ROOT}/show-tech
$ ansible-playbook show-tech.yml
$ sudo ansible-playbook show-tech.yml
# In case you want to download and process latest version of this playbook from Magma's master:
$ ansible-pull -U https://github.com/magma/magma.git show-tech/show-tech.yml -d /tmp/show-tech --purge
Expand Down Expand Up @@ -151,7 +151,7 @@ PLAY [install pre-requisites for show-tech] ************************************
Run the show-tech playbook:

```
$ ansible-playbook show-tech.yml
$ sudo ansible-playbook show-tech.yml
```

Validate the content of the package.
Expand Down
13 changes: 8 additions & 5 deletions show-tech/constants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,22 @@ general_commands:
- "top -b -n 1"
- "df -kh"
debian_commands:
- "dpkg -l | grep magma"
- "dpkg -l magma*"
- "dpkg -l *openvswitch*"
- "ovs-vsctl show"
- "ovs-ofctl show gtp_br0"
- "ovs-ofctl dump-flows gtp_br0"
- "apt show magma"
- "service magma@* status"
- "service sctpd status"
- "service openvswitch-switch status"
- "show_gateway_info.py"
- "checkin_cli.py"
- "mobility_cli.py get_subscriber_table"
- "pipelined_cli.py debug display_flows"
- "enodebd_cli.py get_all_status"
- "ip addr"
- "ping google.com -I eth0 -c 5"
- "journalctl -u magma@*"
- "timeout 60 sudo tcpdump -i any sctp -w {{report_dir_output.stdout}}/sctp.pcap"
- "timeout 60 sudo tcpdump -i any port 48080 -w {{report_dir_output.stdout}}/any-48080.pcap"

Expand All @@ -34,10 +38,9 @@ paths_to_collect:
- "/etc/magma/configs/*"
- "/etc/systemd/system/*"
- "/usr/local/bin/mme"
- "/var/log/syslog"
- "/var/core/*"
- "/var/log/MME.*"
- "/var/log/enode.*"
- "/var/log/*"
- "/var/log/openvswitch/*"

# core file paths for gdb execution, requires core file location and binary
core_file_age_in_days: 3
Expand Down

0 comments on commit b6c19d9

Please sign in to comment.