Collecting Logs - Customer Hosted Edge Router

Collecting logs from Customer Edge Routers

When collecting logs for Customer Hosted Edge Routers, you need to first identify which Image you are using. The obvious way of knowing which image you are on is the username.  

  • “nfadmin” = CentOS
  • “ziggy” = Ubuntu

Otherwise, you can use the following command:

command :   cat /etc/nfrelease
  • Centos Images would have the format 7.x.x-unixtime  example: 7.3.1-24305495
  • Ubuntu Images would have the format 1.x-(yyyymmdd)  example: 1.1.20210511

CentOS version of Edge Routers

Default Username / password - nfadmin

  • AliCloud default username is nfadmin
  • AWS default username is nfadmin
  • Azure has no default username
  • GCP has no default username
  • OCI default username is nfadmin

Router

To create stack dumps, use the command:

sudo /opt/netfoundry/ziti/ziti ps stack $(pidof ziti-router) > /tmp/ziti-router-stack-$(date +%y-%m-%d-%s).out

To fetch the standard logs, use the command:

journalctl -u ziti-router --utc -o cat --no-pager > /tmp/ziti-router-$(date +%y-%m-%d-%s).log

 

Tunnel

To create stack dumps, use the command:

sudo /opt/netfoundry/ziti/ziti ps stack $(pidof ziti-tunnel) > /tmp/ziti-tunnel-stack-$(date +%y-%m-%d-%s).out

To fetch the standard logs, use the command:

journalctl -u ziti-tunnel --utc -o cat --no-pager > /tmp/ziti-tunnel-$(date +%y-%m-%d-%s).log

To create a zip of logs (including any dumps), use the command:

zip -r ~/ziti-logs-$(date +%y-%m-%d-%s).zip               /tmp/ziti*.log /tmp/ziti*.out 

 

Ubuntu version of ER (first ubuntu version was published in April 2021)

VCPE Username/password:  default username/password is ziggy/ziggy 

  • AliCloud default username is ziggy
  • AWS default username is ziggy
  • Azure has no default username
  • GCP has no default username
  • OCI default username is ziggy

Router

To create stack dumps, use the command:

zt-router-stack

To create heap dumps, use the command: 

 zt-router-heap

To fetch the logs

journalctl -u ziti-router --utc --no-pager --since '1 day ago' > router.log

To fetch the logs in a zip file

 journalctl --since "7 days ago" -u ziti-router | gzip > router.txt.gz

Note: You can choose the days as needed

Tunnel

To create stack dumps, use the command:

zt-tunnel-stack

To create heap dumps, use the command: 

 zt-tunnel-heap

To fetch the standard logs (including any dumps), use the command:

zt-logs-zip        

****This creates a zip file of all ziti logs, CPU & stacks on the machine***

 

Attaching logs

Logs up to 15 MB can be sent over e-mail to Netfoundry Support. However, logs up to 50 MB can be uploaded by logging into NetFoundry Support Hub Portal.

Was this article helpful?
2 out of 3 found this helpful