Jump to: navigation, search

StarlingX/Containers/Applications/app-sts-silicom

Application: app-sts-silicom

Source

Building

  • From the Debian Build environment:
build-pkgs -p stx-sts-silicom

Testing

Installation and and configuration steps are mentioned here . After installation the following commands can be used to check the application state:

App installation issues

grep sts-silicom /var/log/sysinv.log

Pod info

kubectl describe pod -n sts-silicom -l app=grpc_tsyncd
kubectl get pods -n sts-silicom -o wide

tsyncd logs

kubectl exec svc/sts-silicom-grp -c sts-silicom-grp -n sts-silicom -- tail -f /var/log/tsyncd.log
kubectl exec svc/sts-silicom-grp -c sts-silicom-grp -n sts-silicom -- cat /var/log/tsyncd.log | less

Show all pod containers

kubectl get pods -n sts-silicom -o jsonpath='{.spec.containers[*].name}' sts-silicom-tsy-xp8md | xargs -n1

Show containers' events and logs

kubectl get events -n sts-silicom
kubectl logs -n sts-silicom -l app=grpc_tsyncd --all-containers
kubectl logs -n sts-silicom -l app=grpc_tsyncd -c sts-silicom-grp -f --tail=-1  # grpc-tsyncd
kubectl logs -n sts-silicom -l app=grpc_tsyncd -c sts-silicom-tsy -f --tail=-1  # tsyncd
kubectl logs -n sts-silicom -l app=grpc_tsyncd -c sts-silicom-phc -f --tail=-1  # phc2sys
kubectl logs -n sts-silicom -l app=grpc_tsyncd -c sts-silicom-gps -f --tail=-1  # gpsd

Enter containers

kubectl exec -ti svc/sts-silicom-grp -c sts-silicom-grp -n sts-silicom -- bash  # grpc-tsyncd
kubectl exec -ti svc/sts-silicom-grp -c sts-silicom-tsy -n sts-silicom -- bash  # tsyncd
kubectl exec -ti svc/sts-silicom-grp -c sts-silicom-phc -n sts-silicom -- bash  # phc2sys
kubectl exec -ti svc/sts-silicom-grp -c sts-silicom-gps -n sts-silicom -- bash  # gpsd

Restart tsyncd pod

kubectl delete -n sts-silicom pod -l app=grpc_tsyncd

Run tsynctl_grpc

kubectl exec -ti svc/sts-silicom-grp -c sts-silicom-grp -n sts-silicom -- tsynctl_grpc
# Some tsynctl_grpc commands (see Programmer's Guide for all commands)
# General
get_info
get_sw_info
get_status
get_mode
get_events
get_params
get_ptp_dataset 0
get_clk_class
# Timing
register 1 2 3 4 5
get_timing_status 1 2 3 4 5
# GNSS
get_gnss_info
get_gnss_params
get_gnss_status

Capture PTP packets

tcpdump -enni enp81s0f2 ether proto 0x88F7