Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Network Management and Monitoring Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Install Ethernet and PTP Scripts

date_range 14-Dec-23

Install Ethernet and PTP Scripts

You can use Ethernet and PTP scripts that are included in the Packet Flow Accelerator Diagnostics software to test Ethernet and PTP functionality. Before you can install the scripts, you need to perform the following tasks:

To install the scripts:

  1. Log into the guest VM using the request app-engine virtual-machine-shell guest-VM-name. The maximum length for the guest VM name is 255 characters. Make sure you are logged in as root when you enter this command.
    content_copy zoom_out_map
    root>  request app-engine virtual-machine-shell diagnostics
  2. Enter a valid username and password combination for the guest VM.
  3. Enter the guest-util diag-install guest VM IP address command at the shell prompt.

    Use the same IP address you used for configuring the local management address for the guest VM.

    content_copy zoom_out_map
    [root@localhost ~] guest-util diag-install 192.168.1.10
  4. Change directories to /var/tmp to edit the PFAD_params.cfg file.
    content_copy zoom_out_map
    [root@localhost ~] cd /var/tmp
  5. Open the PFAD_params.cfg file using an editor of your choice.

    Here is an example of what is contained in the file:

    content_copy zoom_out_map
    [params]
    
    
    # log level
    LOGLEVEL = 'TRACE'
    
    
    # my variables
    VLAN1_NAME      = 'VLAN100'
    VLAN1_ID        = '100'
    JUNOS_USERNAME  = 'test'
    ROOT_USERNAME   = 'root'
    JUNOS_PSWD      = 'juniper123'
    GUEST_PSWD      = 'diag'
    ROOT_PSWD       = 'root123'
    
    
    
    # my duts
    DUTS = {
        'R0': "10.204.43.170",
        }
    
    
    
    TOPOLOGY = 'IF1 = 'et-0/0/2’  
                                    IF2 = ‘et-0/0/3’
    
    PFAD_params.cfg: unmodified: line 1
  6. Configure the management IP address.
    content_copy zoom_out_map
                                    DUTS = { 
                                                    ‘R0': "10.204.43.170”,                                                                   }
    
  7. Configure the PTP interfaces.

    IF1 is the primary source, and IF2 is the secondary source.

    Configure IF1 as et-0/0/2, and IF2 as et-0/0/3.

    content_copy zoom_out_map
                                    IF1 = '2’  <<<<< Change it
                                    IF2 = ‘3’  <<<<< Change it
    
  8. Save the changes you made to the PFAD_params.cfg file.
  9. Run the scripts by issuing one of the following commands at the guest VM prompt.
    • To test traffic orchestration:

      python PFAD_exec.py -t 1

    • To test PTP:

      ./run_ptp_test

    • To test Broadsync:

      ./run_broadsync_test

footer-navigation