Monitor Protocol
To capture packets on different interfaces (gr-instance aware), use the following command:
monitor protocol [ interface ] (capture-duration) (count) (level) (gr-instance)
NOTES:
-
interface —Interface on which PCAP is captured.
Example: sbi, pfcp, gtpu, gtpc, gtp, radius
-
list —Monitor protocol list files.
-
capture-duration —(Optional) Used to specify the duration in secs during which PCAP is captured. Default value is 300 secs.
-
pcap —(Optional) When set to yes, it enables PCAP file generation. By default, the value is "no" (disabled).
-
gr-instance —(Optional) Monitor subscriber for a given gr-instance only.
Example
The following is a configuration example.
monitor protocol interface sbi gr-instance 1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 220 100 95 100 125 8636 11363 --:--:-- --:--:-- --:--:-- 20000
Command: --header Content-type:application/json --request POST --data
{"commandname":"mon_pro","parameters":{"interface":"sbi","duration":300,"action":
"start","enable_pcap":false,"grInstance":1}} http://oam-pod:8879/commands
Result start mon_pro, fileName ->logs/monprologs/sessintfname_sbi_at_2021-04-30T05:26:22.712229347.txt
Starting to tail the monpro messages from file: logs/monprologs/sessintfname_sbi_at_2021-04-30T05:26:22.712229347.txt
Defaulting container name to oam-pod.
Use 'kubectl describe pod/oam-pod-0 -n cn' to see all of the containers in this pod.
For more information on Monitor Protocol on SMF, see the Monitor Subscriber and Monitor Protocol section in the UCC 5G Session Management Function - Configuration and Administration Guide.