Candela Technologies
http://www.candelatech.com
support@candelatech.com
+1 360 380 1618 [PST, GMT -8]

LANforge CLI User Guide

To connect to the LANforge-CLI, open a tcp socket connection to the IP address of the management interface and IP port 4001. For instance:

telnet localhost 4001

Notes about entering commands:

  1. Numbers may be entered as decimal or HEX. If entering in HEX, you must prepend 0x and ensure that the next number after that is not a zero (or it will be parsed as OCTAL instead of HEX. For example, if you want to enter decimal 11, you could enter: 11 or 0xB
  2. Strings consisting of a single word may be entered by themselves, but if you wish to have a multi-word string considered a single token by the parser, surround it with single quotes. Adding single quotes around a single word token is OK too, and may make scripting easier in some cases.

  1. add_arm_endp   Add an Armageddon (Kernel accelerated) endpoint.
  2. add_cx   Add a cross-connect to a test-manager.
  3. add_cd   Add an Collision Domain (grouping of WanLinks).
  4. add_cd_endp   Add an Endpoint to a Collision Domain.
  5. add_cd_vr   Add a Virtual Router to a Collision Domain.
  6. add_file_endp   Add a File endpoint to the LANforge Manager.
  7. add_gen_endp   Add a Generic endpoint to the LANforge Manager.
  8. add_l4_endp   Add a Layer-4 endpoint to the LANforge Manager.
  9. add_channel_group   Add a grouping of DS0 channels to be used by PPP connections.
  10. add_ppp_link   Add a PPP interface connection.
  11. add_t1_span   Add a T1/E1 SPAN to the LANforge Manager.
  12. add_voip_endp   Add a VOIP endpoint to the LANforge Manager.
  13. add_vlc_endp   Add a VLC endpoint to the LANforge Manager.
  14. add_vr   Add or modify a Virtual Router object.
  15. add_vr_bgp   Add BGP configuration to a virtual router.
  16. add_bgp_peer   Add/Modify BGP peer configuration to a virtual router.
  17. add_vrcx   Add or modify a Virtual Router Connection Endpoint object.
  18. add_endp   Add an endpoint to the LANforge Manager.
  19. add_br   Add a Linux Bridge Device.
  20. add_mvlan   Add a MAC based VLAN (Requires kernel support).
  21. add_rdd   Add a Redirect-Device (Requires kernel support).
  22. add_vlan   Add an 802.1Q VLAN (Requires kernel support).
  23. add_sta   Add/modify a WIFI Virtual Station (Virtual STA) interface.
  24. add_vap   Add/modify a WIFI Virtual Access Point (VAP) interface.
  25. add_tm   Create and add a new test manager to the system.
  26. add_wl_endp   Add a WanLink (ICE) endpoint to the LANforge Manager.
  27. add_t1_wl_endp   Add a T1 wanlink endpoint.
  28. add_wanpath   Add a WanPath (ICE) personality to a WanLink.
  29. admin   Various admin commands.
  30. apply_vr_cfg   Apply all of the virtual routing settings for this Resource.
  31. cancel_vr_cfg   Cancel a virtual-router configuration process for this Resource.
  32. clear_cx_counters   Clear counters for one or all cross-connects.
  33. clear_endp_counters   Clear counters for one or all endpoints.
  34. clear_cd_counters   Clear counters for one or all Collision Domains.
  35. clear_port_counters   Clear counters on one or all ports on one or all resources.
  36. clear_resource_counters   Clear counters on one or all resources.
  37. discover   Force discovery of nodes on the management network.
  38. diag   Get diagnostic information from the LANforge server.
  39. notify_dhcp   Handle input from the DHCP client process.
  40. do_pesq   Start a PESQ calculation.
  41. gossip   Send a message to everyone else logged in to the server.
  42. getintxrate   Get tx packets per second rate over the last 3 seconds.
  43. getinrxrate   Get rx packets per second rate over the last 3 seconds.
  44. getinrxbps   Get rx bits-per-second per second rate over the last 3 seconds.
  45. gettxpkts   Get the total tx packets sent.
  46. getrxpkts   Get the total rx packets sent.
  47. getpktdrops   Get the total packets dropped (based on sequence number gaps).
  48. getavglatency   Get the average latency for an endpoint.
  49. getrxporterrpkts   Get the total error packets detected on the receiving port (interface)
  50. getrxendperrpkts   Get the total error packets detected on the endpoint.
  51. getipadd   Get the IP for an endpoint.
  52. getmask   Get the IP Mask for an endpoint.
  53. getmac   Get the MAC address for an endpoint.
  54. ?   Show help for command(s).
  55. init_wiser   Initialize the Wiser NCW/HNW module.
  56. licenses   Print out license information. See also: set_license
  57. load   Load a previously saved test database.
  58. login   Login as the client who's name you enter.
  59. create_client   Create a new client.
  60. log_level   Query or modify the logging level.
  61. motd   Get the message of the day (alerts, etc)
  62. nc_show_endpoints   Non-Cached Show one or all endpoints.
  63. nc_show_pesq   Non-Cached Show PESQ results for one or all VOIP endpoints.
  64. nc_show_ports   Show one/all ports for one/all resources in one/all shelves. No caching.
  65. c_show_ports   Show one/all ports for one/all resources in one/all shelves. Always uses cache.
  66. nc_show_channel_groups   Show one/all ChannelGroups for one/all resources in one/all shelves. An empty specifier will be treated as 'all'. Will always request the absolute latest information from the remote system(s)
  67. nc_show_spans   Show one/all Spans for one/all resources in one/all shelves. An empty specifier will be treated as 'all'. Will always request the absolute latest information from the remote system(s)
  68. nc_show_vr   Show one/all Virtual Routers for one/all resources in one/all shelves. An empty specifier will be treated as 'all'. This command will always request the absolute latest information from the remote system(s)
  69. nc_show_vrcx   Show one/all Virtual Router Connections for one/all resources in one/all shelves. Only Connections on the 'free-list', those not associated with any Virtual Router will be shown with this command unless you exactly specify the VRCX Name. If the VRCX is in a virtual router, only cached results will be shown. Connections associated with routers will be shown whith the 'show_vr' command with the rest of the router information. This command will always request the absolute latest information from the remote system(s)
  70. nc_show_cd   Show one/all Collision Domains.
  71. nc_show_ppp_links   Show one/all PPP Links for one/all resources in one/all shelves. An empty specifier will be treated as 'all'.
  72. probe_ports   Check for the existence of new (virtual) interfaces.
  73. port_reset_completed   Internal command used by port-reset script to notify LANforge the reset has completed. This is only valid for Resource processes.
  74. exit   Log out of the LANforge control server.
  75. reset_port   Reset an ethernet port or ports.
  76. reset_serial_span   Reset a serial span.
  77. reboot_os   Restart the OS on a remote resource.
  78. rm_cd   Remove a Collision Domain.
  79. rm_cd_endp   Remove an Endpoint from a Collision Domain.
  80. rm_cd_vr   Remove a Virtual Router from a Collision Domain.
  81. rm_endp   Remove one or all endpoints.
  82. rm_channel_group   Remove a channel group, or set of groups.
  83. rm_vr   Remove one or all Virtual Routers.
  84. rm_vrcx   Remove one or all Virtual Router Connections on the free-list. Underlying objects will be deleted if they were auto-created to begin with unless you specify the last argument as 'vrcx_only'.
  85. rm_span   Remove a Serial Span (T1, etc), or a set of spans.
  86. rm_ppp_link   Remove a PppLink.
  87. rm_client   Delete a stored client profile.
  88. rm_cx   Delete a cross-connect from the system.
  89. rm_wanpath   Remove one or all wanpaths from an endpoint.
  90. rm_db   Delete a database.
  91. rm_vlan   Remove a virtual interface.
  92. rm_test_mgr   Remove a single test manager.
  93. save   Save the current configuration to a file, to be loaded later.
  94. scan_wifi   Scan for WiFi access points.
  95. set_arm_info   Set Armagheddon Endpoint configuration.
  96. set_cx_report_timer   Set time between reports from Test-Manager(s) to client(s).
  97. set_endp_report_timer   Set the report timer for and endpoint.
  98. set_cx_state   Set the state of the Cross-Connect(s).
  99. set_license   Install license keys on the manager machine.
  100. set_password   Set the password for the current or another client.
  101. set_ppp_link_state   Set the state of the PPP Link(s).
  102. set_wifi_radio   Modify a WIFI Radio interface.
  103. set_endp_addr   Set the MAC, IP, and Port addresses for an UN_MANAGED endpoint.
  104. set_endp_payload   Payload type and payload for an endpoint.
  105. set_endp_details   Modify low-level settings such as TCP window sizes.
  106. set_mc_endp   Set multicast-specific info for multicast endpointts.
  107. show_err   Send an error message to everyone else logged in to the server.
  108. start_endp   Start an endpoint.
  109. start_ppp_link   Start a PppLink.
  110. stop_endp   Stop an endpoint.
  111. quiesce_endp   Quiesce an endpoint.
  112. stop_ppp_link   Stop a PppLink.
  113. set_endp_tos   Type of Service metrics for this endpoint's transmitted packets.
  114. set_endp_quiesce   Set the quiesce timer, in sectons.
  115. set_endp_pld_bounds   Set the min/max payload size bounds for an endpoint.
  116. set_endp_tx_bounds   Set the min/max transmit rate bounds for an endpoint.
  117. set_fe_info   Set read/write size and file information for File Endpoints.
  118. set_gen_cmd   Set command to be executed for this generic endpoint.
  119. set_endp_flag   Set a flag to modify some Endpoint option.
  120. set_flag   Set a flag to modify some client option.
  121. set_gps_info   Set information that could be obtained from a GPS device.
  122. set_poll_mode   Set mode to polling or push algorithm.
  123. set_port   Configure the attributes on an ethernet port.
  124. set_port_alias   Set the alias for a virtual interface specified by MAC or 802.1Q VLAN-ID.
  125. set_voip_info   Set various VOIP endpoint related values.
  126. set_wanpath_filter   Set the Filter type for the WanPath
  127. set_wanpath_running   Set the Running state of the WanPath
  128. set_wanpath_corruption   Set corruption values on a WanLink.
  129. set_wanlink_info   Set various WAN-Link Endpoint data members.
  130. set_wanlink_pcap   Set the WanLink packet capture information.
  131. set_wl_corruption   Set corruption values on a WanLink.
  132. set_wl_qdisc   Set the Queuing Discipline for a WanLink.
  133. set_endp_file   Set the file name for a particular endpoint. Used for packet playback.
  134. show_resources   Show one or all resources for one or all shelves.
  135. show_clients   Show all unique clients that have registered in the past.
  136. show_cx   Show one or all cross-connects for one or all test managers.
  137. show_cxe   Show one or all cross-connects and their endpoints for one or all test managers.
  138. show_cd   Show one/all Collision Domains.
  139. show_rt   Show Virtual Router's routing table.
  140. show_vr   Show one/all Virtual Routers for one/all resources in one/all shelves. An empty specifier will be treated as 'all'. May use cached values if the values are fresh enough.
  141. show_vrcx   Show one/all Virtual Router Connections for one/all resources in one/all shelves. Only Connections on the 'free-list', those not associated with any Virtual Router will be shown with this command unless the VRCX is specified by name. If the VRCX is in a virtual router, only cached results will be shown. Connections associated with routers will be shown whith the 'show_vr' command with the rest of the router information. Cached values may be used if they are recent enough.
  142. show_dbs   Show all available databases that may be loaded.
  143. show_endpoints   Show one or all endpoints.
  144. show_pesq   Show PESQ results for one or all VOIP endpoints.
  145. show_endp_payload   Show the payloads for one or all endpoints.
  146. show_files   Show files in a particular directory.
  147. show_ports   Show one/all ports for one/all resources in one/all shelves.
  148. show_channel_groups   Show one/all ChannelGroups for one/all resources in one/all shelves. An empty specifier will be treated as 'all'.
  149. show_spans   Show one/all Spans for one/all resources in one/all shelves. An empty specifier will be treated as 'all'.
  150. show_ppp_links   Show one/all PPP Links for one/all resources in one/all shelves. An empty specifier will be treated as 'all'.
  151. show_tm   Show one or all test managers.
  152. show_wps   Show one or all WanPaths for one or all WanLink Endpoints.
  153. shutdown   Restart the LANforge manager process.
  154. shutdown_resource   Restart all LANforge processes on a remote resource.
  155. shutdown_os   Shutdown the OS on a remote resource.
  156. sniff_port   Launch Wireshark or Ethereal on a traffic generator port.
  157. tm_register   Register interest in one or all test managers.
  158. tm_unregister   Un-register interest in one or all test managers.
  159. version   Print out the version of the LANforge server.
  160. wiser_reset   Reset WISER library on the specified machine.
  161. who   Show who is currently logged into the system.

  1. add_arm_endp
    Add an Armageddon endpoint. Armageddon endpoints are kernel accellerated, and run 10 to 20 times faster than regular LANforge endpoints. The feature set is diffent for these endpoints, however. Unlike many other endpoints, Armageddon endpoints can transmit and receive to/from the same machine.

    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    portPort number.
    typeEndpoint Type : arm_udp
    ppsPackets per second to generate.
    pkt_szMinimum packet size, including all ethernet headers.
    mx_pkt_szMaximum packet size, including all ethernet headers.

    Syntax: add_arm_endp alias shelf resource port type pps pkt_sz mx_pkt_sz
  2. add_cx
    Add a cross-connect to a test-manager. The endpoints must have already been created.

    ArgumentDescription
    aliasName of the Cross Connect to create.
    test_mgrName of test-manager to create the CX on.
    tx_endpName of Transmitting endpoint.
    rx_endpName of Receiving endpoint.

    Syntax: add_cx alias test_mgr tx_endp rx_endp
  3. add_cd
    Add an Collision Domain (CD). A CD is a group of WanLinks and/or Virtual-Routers that are considered to be in the same collision domain. For instance, when emulating clients talking to an AP, all of the WanLinks associated with this emulated AP should be in the same Collision Domain. All WanLinks or Virtual Routers in a CD must be on the same Resource (machine). Currently only the 'WIFI' type is supported unless you have the third-party WISER module loaded (contact your sales rep for info.) The WIFI emulation counts bandwidth when it is transmitted or received (ie, it emulates stations <--> AP behaviour.) The WISER emulation emulates special military waveforms. An ethernet Hub emulation is planned for future releases. Flags are defined as follows. The 'state' field over-rides the 'running' flag if state is not 'NA'. You can enter the value in HEX if you prefix it with 0x.
       RUNNING   = 1,   (0x1)   Set to running state.
       ERR       = 2,   (0x2)   Set to kernel mode.
    

    ArgumentDescription
    shelfShelf name/id.
    resourceResource number.
    aliasName of Collision Domain.
    typeCD Type: WIFI, WISER_SURFACE, WISER_SURFACE_AIR, WISER_AIR_AIR, WISER_NCW
    bpsMaximum speed at which this collision domain can run.
    report_timerHow often to report stats.
    stateRUNNING or STOPPED (default is RUNNING). Use this to start/stop.
    flagsSee above. Leave blank or use 'NA' for no default values.

    Syntax: add_cd shelf resource alias type bps report_timer state flags
  4. add_cd_endp
    Add an Endpoint to a Collision Domain. The endpoint must be a WanLink Endpoint. If the endpoint is currently in another Collision Domain, it will be migrated to the new one safely.

    ArgumentDescription
    cdName of Collision Domain.
    endpEndpoint name/id.

    Syntax: add_cd_endp cd endp
  5. add_cd_vr
    Add a Virtual Router to a Collision Domain. If the VR is currently in another Collision Domain, it will be migrated to the new one safely.

    ArgumentDescription
    cdName of Collision Domain.
    vrVirtual-Router name/ID.

    Syntax: add_cd_vr cd vr
  6. add_file_endp
    Add a File endpoint to the LANforge Manager. This endpoint can then be used to read and/or write data from/to the file system. This is most interesting when the file system in question is some sort of network file system like NFS or iSCSI. If the endpoint already exists, then this command may be used to update the values. This defaults to 4096 read/write sizes, but you can change that with the set_fe_info command. Pattern:
    - increasing : bytes start at 00 and increase, wrapping if needed.

    - decreasing : bytes start at FF and decrease, wrapping if needed.

    - random : generate a new random payload each time it's sent.

    - random_fixed : means generate one random payload, and send it over and over again.

    - zeros : Payload is all zeros (00).

    - ones : Payload is all ones (FF).

    - PRBS_4_0_3 : Use linear feedback shift register to generate psuedo random sequence. First number is bit-length of register, second two are TAPS (zero-based indexs) Seed value is always 1. - PRBS_7_0_6 : PRBS (see above) - PRBS_11_8_10 : PRBS (see above) - PRBS_15_0_14 : PRBS (see above) - custom : Enter your own payload with the set_endp_payload cmd.


    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    portPort number.
    typeEndpoint Type : fe_generic, fe_nfs, fe_iscsi
    min_read_rateMinimum read rate, bits-per-second.
    max_read_rateMaximum read rate, bits-per-second.
    min_write_rateMinimum write rate, bits-per-second.
    max_write_rateMaximum write rate, bits-per-second.
    payload_patternPayload pattern, see above.
    directoryThe directory to read/write in. Absolute path suggested.
    prefixThe prefix of the file(s) to read/write.

    Syntax: add_file_endp alias shelf resource port type min_read_rate max_read_rate min_write_rate max_write_rate payload_pattern directory prefix
  7. add_gen_endp
    Add a Generic endpoint to the LANforge Manager. This endpoint will cause an external program to be run, and the results will be sent back to the LANforge system. Due to parsing constraints, you can only use certain programs, but if LANforge does not support a program you want to use, please request the feature from Candela Technologies. Set the actual command to be executed command with set_gen_cmd

    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    portPort number.
    typeEndpoint Type : gen_generic, gen_bonnie

    Syntax: add_gen_endp alias shelf resource port type
  8. add_l4_endp
    Add a Layer-4 (HTTP, FTP, TELNET, ...) endpoint to the LANforge Manager. This endpoint can then be used to handle URL(s). If the endpoint already exists, then this command may be used to update the values. When entering a URL, use this syntax: [dl | upl] URL [file-to-upload-from-or-download-to], for example: 'dl http://www.candelatech.com/index.html /tmp/index.html' If the url-is-file flag is set, then the URL entered below should be a local file name, and it should contain one or more URLs according to our special syntax. If you do not wish to change certain fields from the current value, use 'NA' for the value of these fields. The authenticate methods are as follows. The USE_CACHE is a special flag for the proxy_auth_type argument that lets the endpoint use cache values (for instance, as cached by squid). If this is NOT selected, cached values will not be allowed. Select one or more by adding the values together:
    BASIC:        1
    DIGEST:       2
    GSSNEGOTIATE: 4
    NTLM:         8
    USE_CACHE:               32 
    USE_GZIP_COMPRESSION     64
    USE_DEFLATE_COMPRESSION 128
    

    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    portPort number.
    typeEndpoint Type : l4_generic (URL can be: http, ftp, telnet, or dict)
    proxy_portHTTP Proxy port if you are using a proxy.
    timeoutHow long to wait for a connection, in milliseconds
    url_rateHow often should we process the URL(s), per 10 minutes.
    URLThe URL, see syntax above. Can also be a local file.
    proxy_serverThe name of our proxy server if using one.
    proxy_userpwdThe user-name and password for proxy authentication, format: user:passwd.
    ssl_cert_fnameName of SSL Certs file.
    user_agentUser-Agent string. Leave blank for default.
    proxy_auth_typeBit-field for allowable proxy-authenticate methods.
    http_auth_typeBit-field for allowable http-authenticate methods.

    Syntax: add_l4_endp alias shelf resource port type proxy_port timeout url_rate URL proxy_server proxy_userpwd ssl_cert_fname user_agent proxy_auth_type http_auth_type
  9. add_channel_group
    Add a grouping of DS0 channels to be used by PPP connections.

    Supported formats for the channels entry include:
    '0-23', '0,1,2,3,4,5,7' or '1-5,7,20-23'
    
    ChannelTypes (for Digium) are described here:
     e&m     : Channel(s) are signalled using E&M signalling (specific
                 implementation, such as Immediate, Wink, or Feature Group D
                 are handled by the userspace library).
     fxsls   : Channel(s) are signalled using FXS Loopstart protocol.
     fxsgs   : Channel(s) are signalled using FXS Groundstart protocol.
     fxsks   : Channel(s) are signalled using FXS Koolstart protocol.
     fxols   : Channel(s) are signalled using FXO Loopstart protocol.
     fxogs   : Channel(s) are signalled using FXO Groundstart protocol.
     fxoks   : Channel(s) are signalled using FXO Koolstart protocol.
     unused  : No signalling is performed, each channel in the list remains idle
     clear   : Channel(s) are bundled into a single span.  No conversion or
                 signalling is performed, and raw data is available on the master.
     indclear: Like 'clear' except all channels are treated individually and
                 are not bundled.  'bchan' is an alias for this.
     rawhdlc : The zaptel driver performs HDLC encoding and decoding on the 
                 bundle, and the resulting data is communicated via the master
                 device.
     fcshdlc : The zapdel driver performs HDLC encoding and decoding on the
                 bundle and also performs incoming and outgoing FCS insertion
                 and verification.  'dchan' is an alias for this.
     nethdlc : The zaptel driver bundles the channels together into an
                 hdlc network device, which in turn can be configured with
                 sethdlc (available separately).
    These are not currently supported:
     sf      : Channel(s) are signalled using in-band single freq tone.
    		Syntax as follows: 
    		 channel# => sf:,,,,,
    		rxfreq is rx tone freq in hz, rxbw is rx notch (and decode)
    		bandwith in hz (typically 10.0), rxflag is either 'normal' or
    		'inverted', txfreq is tx tone freq in hz, txlevel is tx tone 
    		level in dbm, txflag is either 'normal' or 'inverted'. Set 
    		rxfreq or txfreq to 0.0 if that tone is not desired.
     dacs    : The zaptel driver cross connects the channels starting at
                 the channel number listed at the end, after a colon
     dacsrbs : The zaptel driver cross connects the channels starting at
                 the channel number listed at the end, after a colon and 
                 also performs the DACSing of RBS bits.

    ArgumentDescription
    aliasName for this Channel Group.
    shelfShelf name/id.
    resourceResource number.
    span_numThe span number. First span is 1, second is 2...
    channelsList of channels to add to this group.
    typeThe channel-type. Use 'clear' for PPP links.
    MTUMTU (and MRU) for this channel group. Must be a multiple of the number of channels if configuring a T1 WanLink.
    idle_flagIdle flag (byte) for this channel group, for instance: 0x7e

    Syntax: add_channel_group alias shelf resource span_num channels type MTU idle_flag
  10. add_ppp_link
    Add a PPP interface connection. Currently we only support PPP over channel-groups on T1 interfaces. Some of the arguments below are passed directly to the pppd process which negotiates and otherwise creates the ppp interface. You may want to read the man page for pppd for more in-depth discussion of the features. channel_groups selects the hardware resources that the PPP link will use. For Multi-Link PPP, you can select multiple Channel-Groups, otherwise select a single one. If you are entering multiple groups, surround all groups with single quotes, like: 'cg1 cg2 cg3' mlppp_descriptor should start with 'magic:' and have some ascii-hex trailing it. For instance: magic:00:11:22:33:44 You can use 'NA' if you are not using Multi-Link PPP If you need to pass extra arguments to the pppd software, you can add those arguments to the 'extra_args' value. Be sure to surround the input with single quotes so it is parsed correctly by LANforge.

    ArgumentDescription
    shelfShelf name/id.
    resourceResource (machine) number.
    unitUnit number for the PPP link. ie, the 7 in ppp7.
    src_ipSource IP address for this PPP connection.
    dst_ipDestination IP address for this PPP connection.
    channel_groupsList of channel groups, see above.
    debugYES for debug, otherwise debugging for the ppp connection is off.
    authYES if you want to authenticate. Default is NO.
    persistYES if you want to persist the connection. This is suggested.
    lcp-echo-intervalSeconds between LCP echos, suggest 1.
    lcp-echo-failureLCP echo failures before we determine links is dead, suggest 5.
    holdoffSeconds between attempt to bring link back up if it dies, suggest 1.
    mlppp_descriptorA unique key for use with multi-link PPP connections.
    extra_argsExtra arguments to be passed directly to the pppd server.
    transport_typeWhat sort of transport this ppp link uses.
    pppoe_transport_portPort number (or name) for underlying PPPoE transport.
    tty_transport_deviceTTY device for PPP links associated with TTYs.
    run_time_min_msMinimum uptime (ms) for PPP link during an experiment, or 0 for the link to be always up.
    run_time_max_msMaximum uptime (ms) for PPP link during an experiment, or 0 for the link to be always up.
    down_time_min_msMinimum length of downtime (ms) for PPP link between runs, or 0 for the link to be always up.
    down_time_max_msMaximum length of downtime (ms) for PPP link between runs, or 0 for the link to be always up.

    Syntax: add_ppp_link shelf resource unit src_ip dst_ip channel_groups debug auth persist lcp-echo-interval lcp-echo-failure holdoff mlppp_descriptor extra_args transport_type pppoe_transport_port tty_transport_device run_time_min_ms run_time_max_ms down_time_min_ms down_time_max_ms
  11. add_t1_span
    Add a T1/E1 SPAN to the LANforge Manager. You will have to actually have T1/E1 hardware in the system before this is a useful thing to do. You will then be able to create channel-groups and PPP links. For the 'first_channel', the setting will depend on the T1/E1 port you wish to use. The first T1/E1 resource will have the first_channel of 1, the second at 25, the third at 49, etc. Build-out: 0 == 1-133 feet, 1 == 122-266, 2 == 266-399 3 == 399-533, 4 == 533-655, 5 == -7.5db (CSU) 6 == -15db (CSU), 7 ==-22.5db (CSU), 8 == 0db (CSU) Framing NOTE: d4 is also known as 'sf' or 'superframe'.

    ArgumentDescription
    shelfShelf name/id.
    resourceResource number.
    typeCurrently supported types are: Sangoma_T1, Sangoma_E1, Digium_T1
    span_numThe span number. First span is 1, second is 2...
    first_channelThe first DS0 channel for this span.
    timingTiming: 0 == don't use, 1 == primary, 2 == secondary..
    buildoutBuildout, Integer, see above.
    framingFraming: T1: esf or d4. E1: cas or ccs.
    codingCoding: T1: ami or b8zs. E1: ami or hdb3
    pci_busPCI Bus number, needed for Sangoma resources.
    pci_slotPCI slot number, needed for Sangoma resources.
    CPU_IDCPU identifer (A, B, etc) for multiport Sangoma resources.
    MTUMTU for this span (used by in-band management, if at all).

    Syntax: add_t1_span shelf resource type span_num first_channel timing buildout framing coding pci_bus pci_slot CPU_ID MTU
  12. add_voip_endp
    Add a VOIP (Voice over IP) to the LANforge Manager. If the endpoint already exists, then this command may be used to update the values. If the sip_gateway is 'AUTO', then the management IP for that particular machine will be used.

    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    portPort number or name.
    phone_numEndpoint's phone number.
    rtp_portRTP port to use for send and receive.
    sip_gatewaySIP Gateway/Proxy Name, this is who we'll register with, or AUTO
    tx_sound_fileFile name containing the sound sample we will be playing.
    rx_sound_fileFile name to save received PCM data to. Will be in WAV format.
    VAD_timerHow much silence (milliseconds) before VAD is enabled.
    VAD_max_timerHow often should we force a packet, even if VAD is on.
    gateway_portIP Port for SIP/h323 gateway (defaults to 5060).
    display_nameUser-Name to be displayed. Use AUTO to display phone number.
    proxy_passwdPassword to be used when registering with proxy/gateway.
    peer_phone_numUse AUTO to use phone number of peer endpoint, otherwise specify a number: user[@host[:port]]

    Syntax: add_voip_endp alias shelf resource port phone_num rtp_port sip_gateway tx_sound_file rx_sound_file VAD_timer VAD_max_timer gateway_port display_name proxy_passwd peer_phone_num
  13. add_vlc_endp
    Add a VLC (Streaming Audio/Video) to the LANforge Manager. If the endpoint already exists, then this command may be used to update the values. The Display syntax relates to X Display, for example, the 192.168.1.100:0.0 in DISPLAY=192.168.1.100:0.0

    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    portPort number or name.
    urlWhat media file to play?
    rtp_portRTP port to use for send and receive.
    mgt_portManagement IP port.
    rx_sound_fileFilename to save stream to.
    displayX Display for where to show the video. 'AUTO' will attempt to use the CLI/GUI's IP.
    min_durationMinumum stream duration in seconds. 0 will run the full length of the stream.
    max_durationMaximum stream duration in seconds. 0 will run the full length of the stream.
    min_inter_call_gap_msMinimum inter stream gap in milliseconds.
    max_inter_call_gap_msMaximum inter stream gap in milliseconds.
    loop_call_countNumber of times to play the stream. 0 will loop for ever.
    first_call_delay_msDelay in milliseconds before the first stream is played.
    vlc_flgsConfiguration flags.

    Syntax: add_vlc_endp alias shelf resource port url rtp_port mgt_port rx_sound_file display min_duration max_duration min_inter_call_gap_ms max_inter_call_gap_ms loop_call_count first_call_delay_ms vlc_flgs
  14. add_vr
    Add or modify a Virtual Router. Virtual Routers are used in conjunction with LANforge-ICE to provide advanced network emulation. Flags are defined as:
      USE_XORP_OSPF         0x1   # Enable Xorp router daemon with OSPF (IPv4) protocol
      USE_XORP_MCAST        0x2   # Enable Xorp Multicast routing (requires OSPF to be enabled currently)
      USE_XORP_SHA          0x4   # Enable Telcordia's Xorp SHA option (requires OSPF to be enabled)
      USE_IPV6_RADVD        0x8   # Enable IPv6 RADV Daemon for interfaces in this virtual router.
      USE_IPV6              0x10  # Enable IPv6 OSPF routing for this virtual router.
      ENABLE_BGP            0x20  # Set this to zero if you don't want BGP on this VR.
      4BYTE_AS_NUMBER       0x40  # Sets cooresponding Xorp flag.
      ROUTE_REFLECTOR       0x80  # Act as BGP Route Reflector.
      BGP_CONFED           0x100  # Configure BGP in a confederation.
      BGP_DAMPING          0x200  # Enable BGP damping section in Xorp configuration file.
    

    ArgumentDescription
    aliasName of virtual router.
    shelfShelf name/id.
    resourceResource number.
    notesNotes for this Virtual Router. Put in quotes if the notes include white-space.
    XX coordinate to be used when drawn in the LANforge-GUI.
    YY coordinate to be used when drawn in the LANforge-GUI.
    widthWidth to be used when drawn in the LANforge-GUI.
    heightHeight to be used when drawn in the LANforge-GUI.
    flagsVirtual router flags, see above for definitions.
    vr_idLeave blank, use NA or 0xFFFF unless you are certain of the value you want to enter.

    Syntax: add_vr alias shelf resource notes X Y width height flags vr_id
  15. add_vr_bgp
    Add BGP configuration to a virtual router. Flags:
      ENABLE_BGP            0x20  # Set this to zero if you don't want BGP on this VR.
      4BYTE_AS_NUMBER       0x40  # Sets cooresponding Xorp flag.
      ROUTE_REFLECTOR       0x80  # Act as BGP Route Reflector.
      BGP_CONFED           0x100  # Configure BGP in a confederation.
      BGP_DAMPING          0x200  # Enable BGP damping section in Xorp configuration file.
    

    ArgumentDescription
    vr_idName of virtual router.
    shelfShelf name/id.
    resourceResource number.
    bgp_idBGP Identifier: IPv4 Address
    local_asBGP Autonomous System number, 1-65535
    flagsVirtual router BGP flags, see above for definitions.
    cluster_idCluster ID, IPv4 Address. Use NA if not clustering.
    confed_idConfederation ID 1-65535. Use NA if not in a confederation.
    half_lifeHalflife in minutes for damping configuration.
    max_suppressMaximum hold down time in minutes for damping configuration.
    reuseRoute flag damping reuse thresholdm, in minutes.
    suppressRoute flag damping cutoff threshold, in minutes.

    Syntax: add_vr_bgp vr_id shelf resource bgp_id local_as flags cluster_id confed_id half_life max_suppress reuse suppress
  16. add_bgp_peer
    Add/Modify BGP peer configuration to a virtual router. Flags:
      ENABLE_PEER           0x1  # Set this to zero if you don't want this peer enabled.
      PEER_CLIENT           0x2  # Sets cooresponding Xorp flag in BGP Peer section.
      PEER_CONFED_MEMBER    0x4  # Sets cooresponding Xorp flag in BGP Peer section.
      PEER_UNICAST_V4       0x8  # Sets cooresponding Xorp flag in BGP Peer section.
    

    ArgumentDescription
    vr_idName of virtual router.
    shelfShelf name/id.
    resourceResource number.
    peer_indexPeer index in this virtual router (0-7).
    flagsVirtual router BGP Peer flags, see above for definitions.
    peer_idBGP Peer Identifier: IPv4 Address
    asBGP Peer Autonomous System number, 0-65535
    local_devBGP Peer Local interface.
    nexthopBGP Peer Nexthop, IPv4 Address.
    holdtimeBGP Peer hold-time.
    delay_open_timeBGP Peer delay open time.

    Syntax: add_bgp_peer vr_id shelf resource peer_index flags peer_id as local_dev nexthop holdtime delay_open_time
  17. add_vrcx
    Add or modify a Virtual Router Connection Endpoint. Virtual Router Connection Endpoints are used to logically connect two Virtual Routers with an emulated network link. Typically, 2 pairs of redirect virtual interfaces are bridged by a WanLink (which provides the network emulation.) The 'A' port in each pair of redirect devices is associated with one virtual router and has and IP address. Both endpoints should have the IP on the same subnet. The WanLink bridges the two 'B' sides of the redirect device pair. A pair of Connection Endpoint objects are required, with reversed values in their port configuration to make a connection. Flags can be entered in HEX if preceded by 0x. Add flags together to get desired options. Must use apply_vr_cfg for changes to take effect.
    Flags:  Specify subnet 0                          = 1   (0x1)
            Specify subnet 1                          = 2   (0x2)
            Specify subnet 2                          = 4   (0x4)
            Specify subnet 3                          = 8   (0x8)   
            Specify subnet 4                          = 16  (0x10)
            Specify subnet 5                          = 32  (0x20)
            Specify subnet 6                          = 64  (0x40)
            Specify subnet 7                          = 128 (0x80)
            This connection will NAT outgoing packets = 256 (0x100)
            Serve DHCP on this interface              = 512 (0x200)
            Use custom DHCP config file              = 1024 (0x400)
            Use this interface for multicast cand-rp = 2048 (0x800)
    

    ArgumentDescription
    shelfShelf name/id.
    resourceResource number.
    vr-nameVirtual Router this endpoint belongs to. Use 'FREE_LIST' to add a stand-alone endpoint.
    local_devName of port A for the local redirect device pair.
    local_dev_bName of port B for the local redirect device pair.
    remote_devName of port B for the remote redirect device pair.
    remote_dev_bName of port B for the remote redirect device pair.
    wanlinkThe name of the WanLink that connects the two B ports.
    XX coordinate to be used when drawn in the LANforge-GUI.
    YY coordinate to be used when drawn in the LANforge-GUI.
    widthWidth to be used when drawn in the LANforge-GUI.
    heightHeight to be used when drawn in the LANforge-GUI.
    flagsFlags, specify if subnets 0-7 are in use, see above for others.
    subnetsSubnets associated with this subnet, format: 1.1.1.1/24,1.1.2.1/16...
    nexthopThe next-hop to use when routing packets out this interface.
    dhcp_lease_timeDHCP Lease time (in seconds)
    dhcp_dnsIP Address of DNS server.
    dhcp_minMinimum IP address range to serve.
    dhcp_maxMinimum IP address range to serve.
    dhcp_domainDHCP Domain name to serve.
    interface_costIf using OSPF, this sets the cost for this link (1-65535).
    ospf_areaIf using OSPF, this sets the OSPF area for this interface. Default is 0.0.0.0.

    Syntax: add_vrcx shelf resource vr-name local_dev local_dev_b remote_dev remote_dev_b wanlink X Y width height flags subnets nexthop dhcp_lease_time dhcp_dns dhcp_min dhcp_max dhcp_domain interface_cost ospf_area
  18. add_endp
    Add an endpoint to the LANforge Manager. The endpoint may then be added to a cross-connect. If the endpoint already exists, then this command may be used to update the values. Note that you can leave everything after 'port' off the command, and default values will be used. If you are configuring a TCP connection to make many connections, then use 0 (zero) for the IP Port so that the OS can choose a new one for each connection. Pattern:
    - increasing : bytes start at 00 and increase, wrapping if needed.

    - decreasing : bytes start at FF and decrease, wrapping if needed.

    - random : generate a new random payload each time it's sent.

    - random_fixed : means generate one random payload, and send it over and over again.

    - zeros : Payload is all zeros (00).

    - ones : Payload is all ones (FF).

    - PRBS_4_0_3 : Use linear feedback shift register to generate psuedo random sequence. First number is bit-length of register, second two are TAPS (zero-based indexs) Seed value is always 1. - PRBS_7_0_6 : PRBS (see above) - PRBS_11_8_10 : PRBS (see above) - PRBS_15_0_14 : PRBS (see above) - custom : Enter your own payload with the set_endp_payload cmd.


    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    portPort/Interface name or number.
    typeEndpoint Type : lf, lf_udp, lf_tcp, custom_ether, custom_udp, custom_tcp, mc_udp, custom_mc_udp
    ip_portIP Port: Ip port for layer three endpoints. Use -1 to let the server automatically configure the ip_port. Layer 2 endpoints will ignore this argument. Use 0 for 'ANY', and let the OS choose.
    is_rate_burstyYes means it's bursty, anything else means NO.
    min_rateMinimum transmit rate (bps), or only rate if not bursty.
    max_rateMaximum transmit rate (bps), used if in bursty mode.
    is_pkt_sz_randomYes means use random sized packets, anything else means NO.
    min_pktMinimum packet size, including all headers.
    max_pktMaximum packet size, including all headers.
    payload_patternPayload pattern, see above.
    use_checksumYes means checksum the payload, anything else means NO.
    ttlTime-to-live, used by UDP Multicast Endpoints only.
    send_bad_crc_per_millionIf NIC supports it, will randomly send X per million packets with bad ethernet Frame Check Sum.

    Syntax: add_endp alias shelf resource port type ip_port is_rate_bursty min_rate max_rate is_pkt_sz_random min_pkt max_pkt payload_pattern use_checksum ttl send_bad_crc_per_million
  19. add_br
    Add a Linux Bridge Device. Specify one or more network devices to be added to the bridge. This requires that the 'bridge-utils' package be installed on your Linux system. Most of the bridge settings are only used if spanning-tree is enabled. For more information on the spanning-tree values, see: br_* configuration is ignored. br_flags can be:
    
        0x1         Enable Spanning Tree Protocol (STP)
    

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    portName of the bridge device.
    network_devsComma-separated list of network devices: eth1,eth2,eth3...
    br_flagsBridge flags, see above.
    br_priorityBridge priority, 16-bit number.
    br_aging_timeMAC aging time, in seconds, 32-bit number.
    br_max_ageHow long until STP considers a non-responsive bridge dead.
    br_hello_timeHow often does the bridge send out STP hello packets.
    br_forwarding_delayHow long to wait until the bridge will start forwarding packets.

    Syntax: add_br shelf resource port network_devs br_flags br_priority br_aging_time br_max_age br_hello_time br_forwarding_delay
  20. add_mvlan
    Add a MAC based VLAN. This command requires that the designated machine support the macvlan kernel module. A MAC-VLAN interface is a light-weight virtual interface that is made unique by it's MAC address. Do not add two MAC vlans with the same MAC to the same interface. In most cases, you do not want to duplicate a MAC at all! After creating the MAC-VLAN interface, you will need to configure it's IP and other information. If you wish to create a MAC VLAN with a specific name, specify the index as well. If not specified, one will be automatically selected for you.

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    portPort number of an existing Ethernet interface.
    macThe MAC address for this MAC VLAN interface.
    indexOptional: The 'index' of the VLAN, (the 4 in eth0#4).
    old_nameThe temporary name, used for configuring un-discovered hardware.
    report_timerReport timer for this port, leave blank or use NA for defaults.

    Syntax: add_mvlan shelf resource port mac index old_name report_timer
  21. add_rdd
    Add a Redirect-Device. This command requires that the designated machine support the redirdev kernel module. Redirect-Devices act like a pair of physical ethernet interfaces connected externally by a loop-back cable, and are useful for creating virtual networks. Currently, the main reason to do this is to run LANforge ICE on a single interface in conjunction with routing. The basic idea is to create a pair of redirect devices. Give one an IP address that you want the local machine to have. The other redirect interface in the pair will not have an IP address and will be bridged by LANforge ICE (WanLink) to the real ethernet interface, which also will not have an IP address. It is possible to add 802.1Q and MAC-VLANs on top of redirect devices as well. To create an redirect-device pair, run this command twice, for example: add_rdd 1 1 rdd0 rdd1 add_rdd 1 1 rdd1 rdd0

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    portName of the Redirect Device to create.
    peer_ifnameThe peer (other) RedirectDevice in this pair.
    report_timerReport timer for this port, leave blank or use NA for defaults.

    Syntax: add_rdd shelf resource port peer_ifname report_timer
  22. add_vlan
    Add an 802.1Q VLAN. This command requires that the designated machine support the 8021q kernel module. After creating the 802.1Q VLAN interface, you will need to configure it's IP and other information.

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    portPort number of an existing Ethernet interface.
    vidThe VLAN-ID for this 802.1Q VLAN interface.
    old_nameThe temporary name, used for configuring un-discovered hardware.
    report_timerReport timer for this port, leave blank or use NA for defaults.

    Syntax: add_vlan shelf resource port vid old_name report_timer
  23. add_sta
    Add a WIFI Virtual Station (Virtual STA) interface. This command requires that the designated machine support LANforge's madwifi driver for the Atheros brand WIFI NICs. A Virtual STA interface is a virtual interface that acts like a real wireless client. After creating the Virtual STA interface, you will need to configure it's IP and other information. 'NA' can be used for any values that you do not wish to modify. Flags are currently defined as: 0x10 Enable WPA 0x20 Use Custom Config file. The config file should be a shell script consisting of wpa_cli commands, for example: wpa_cli -iwlan0 set_network 0 ssid '"MySSID"' wpa_cli -iwlan0 set_network 0 key_mgmt WPA-PSK wpa_cli -iwlan0 set_network 0 psk '"MyPreSharedSuperSecretKey"' wpa_cli -iwlan0 set_network 0 pairwise TKIP wpa_cli -iwlan0 set_network 0 group TKIP wpa_cli -iwlan0 set_network 0 proto WPA The script will be passed the device name as the first argument to allow a single script to handle many interfaces. To set any value to the DEFAULT (or un-set), use 'DEFAULT'. You may have to reboot the system to have the defaults take affect.

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    radioName of the physical radio interface, for example: ath0
    sta_nameName for this Virtual STA, for example: sta0
    flagsFlags for this interface (see above.)
    essidESSID for this Virtual STA.
    nicknameNickname for this Virtual STA.
    keyEncryption key for this Virtual STA.
    APThe Access point this Virtual STA should be associated with (example: 00:11:22:33:4:55).
    wpa_cfg_fileWPA Supplicant config script.

    Syntax: add_sta shelf resource radio sta_name flags essid nickname key AP wpa_cfg_file
  24. add_vap
    Add a WIFI Virtual Access Point (VAP) interface. This command requires that the designated machine support LANforge's madwifi driver for the Atheros brand WIFI NICs. A Virtual AP interface is a virtual interface that acts like a real Access Point. After creating the Virtual AP interface, you will need to configure it's IP and other information. 'NA' can be used for any values that you do not wish to modify. Flags are not currently defined. To set any value to the DEFAULT (or un-set), use 'DEFAULT'. You may have to reboot the system to have the defaults take affect.

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    radioName of the physical radio interface, for example: ath0
    ap_nameName for this Virtual AP, for example: vap0
    flagsFlags for this interface (see above.)
    essidESSID for this Virtual AP.
    keyEncryption key for this Virtual STA.

    Syntax: add_vap shelf resource radio ap_name flags essid key
  25. add_tm
    Create and add a new test manager to the system. A test manager is a group of cross-connects that compose a test group. The idea is that you may wish to segregate one physical LANforge shelf into several test groups to either test different configurations or different sets of hardware. The LANforge system will allow the user to run several test sets simultaneously, but it is up to the user to make sure that that actually makes sense. A test manager may span several shelves, and should be considered global to the LANforge system. See Also: tm_register

    ArgumentDescription
    nameThe name of the test manager. Must be unique across test managers.

    Syntax: add_tm name
  26. add_wl_endp
    Add a WanLink (ICE) endpoint to the LANforge Manager. The endpoint may then be added to a cross-connect. If the endpoint already exists, then this command may be used to update the values. Note that you can leave everything after 'port' off the command, and default values will be used.

    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    portPort number.
    latencyThe latency (ms) that will be added to each packet entering this WanLink.
    max_rateMaximum transmit rate (bps) for this WanLink.
    descriptionDescription for this endpoint, put in single quotes if it contains spaces.

    Syntax: add_wl_endp alias shelf resource port latency max_rate description
  27. add_t1_wl_endp
    Add a T1 wanlink endpoint.

    ArgumentDescription
    aliasName of endpoint.
    shelfShelf name/id.
    resourceResource number.
    channel_groupName of channel group
    latencyThe latency (ms) that will be added to each packet.
    bit_flip_rateHow many bits per billion to flip.
    transpose_rateHow many bits per billion to tranpose with their neighbour?

    Syntax: add_t1_wl_endp alias shelf resource channel_group latency bit_flip_rate transpose_rate
  28. add_wanpath
    Add a WanPath personality to a WanLink. The WanPath is like a virtual WanLink between a source and destination IP or IP range. For instance, if you want communications between server A and client C to be different from communications between server B and client C, then you can set up two WanPaths to specify that behaviour. If the specified WanPath already exists, this command can be used to modify the existing values

    ArgumentDescription
    wanlinkName of WanLink to which we are adding this WanPath.
    aliasName of WanPath.
    speedThe maximum speed this WanLink will accept (bps).
    latencyThe base latency added to all packets, in milliseconds.
    max_jitterThe maximum jitter, in milliseconds.
    extra_bufferThe extra amount of bytes to buffer before dropping pkts, in units of 1024, use -1 for AUTO.
    reorder_freqHow often, out of 1,000,000 packets, should we make a packet out of order.
    drop_freqHow often, out of 1,000,000 packets, should we purposefully drop a packet.
    dup_freqHow often, out of 1,000,000 packets, should we purposefully duplicate a packet.
    source_ipSelection filter: Source IP.
    source_ip_maskSelection filter: Source IP MASK.
    dest_ipSelection filter: Destination IP.
    dest_ip_maskSelection filter: Destination IP MASK.
    playback_captureON or OFF, should we play back a WAN capture file?
    playback_capture_fileName of the WAN capture file to play back.
    playback_loopShould we loop the playback file, YES or NO or NA.
    ignore_bandwidthShould we ignore the bandwidth settings from the playback file? YES, NO, or NA.
    ignore_lossShould we ignore the packet-loss settings from the playback file? YES, NO, or NA.
    ignore_latencyShould we ignore the latency settings from the playback file? YES, NO, or NA.
    ignore_dupShould we ignore the Duplicate Packet settings from the playback file? YES, NO, or NA.
    jitter_freqHow often, out of 1,000,000 packets, should we apply random jitter.
    min_drop_amtMinimum amount of packets to drop in a row. Default is 1.
    max_drop_amtMaximum amount of packets to drop in a row. Default is 1.
    min_reorder_amtMinimum amount of packets by which to reorder, Default is 1.
    max_reorder_amtMaximum amount of packets by which to reorder, Default is 10.
    drop_every_xth_pktYES to periodically drop every Xth pkt, NO to drop lackets randomly.
    dup_every_xth_pktYES to periodically duplicate every Xth pkt, NO to duplicate lackets randomly.
    reorder_every_xth_pktYES to periodically reorder every Xth pkt, NO to reorder lackets randomly.
    test_mgrThe name of the Test-Manager this WanPath is to use. Leave blank for no restrictions.

    Syntax: add_wanpath wanlink alias speed latency max_jitter extra_buffer reorder_freq drop_freq dup_freq source_ip source_ip_mask dest_ip dest_ip_mask playback_capture playback_capture_file playback_loop ignore_bandwidth ignore_loss ignore_latency ignore_dup jitter_freq min_drop_amt max_drop_amt min_reorder_amt max_reorder_amt drop_every_xth_pkt dup_every_xth_pkt reorder_every_xth_pkt test_mgr
  29. admin
    Various back-door commands. Current supported commands are: resync_clock # Used on windows to force re-sync with the system clock. write_xorp_cfg [xorp-port] # Re-write out the xorp-congif file. write_xorp_cfg only works on 'resource' processes.

    ArgumentDescription
    cmdAdmin command: resync_clock|write_xorp_cfg
    arg1Argument 1: xorp-port

    Syntax: admin cmd arg1
  30. apply_vr_cfg
    Apply all of the virtual routing settings for this Resource. This causes the routing tables to be created and configured properly for the specified configuration. This command should be run after making one or more changes to the virtual routers or virtual router connections. Please note that running this command when there are lots of virtual routers configured can take a long time. Check the Card's status for percentage complete. Also, while this process is running, you will not be able to configure ports or virtual-router configuration.

    ArgumentDescription
    shelfThe number of the shelf in question, or 'ALL'.
    resourceThe number of the resource in question, or 'ALL'.

    Syntax: apply_vr_cfg shelf resource
  31. cancel_vr_cfg
    Setting up virtual router configurations can take a long time when there are lots of virtual routers. This command can cancel a configuration process before it is complete. Please note: the routing tables will be in an un-determined state after this, untill you re-run the virtual router setup.

    ArgumentDescription
    shelfThe number of the shelf in question, or 'ALL'.
    resourceThe number of the resource in question, or 'ALL'.

    Syntax: cancel_vr_cfg shelf resource
  32. clear_cx_counters
    Clear counters for one or all cross-connects.

    ArgumentDescription
    cx_nameName of Cross Connect, or 'all'. Null argument is same as 'all'.

    Syntax: clear_cx_counters cx_name
  33. clear_endp_counters
    Clear counters for one or all endpoints.

    ArgumentDescription
    endp_nameName of Endpoint, or 'all'. Null argument is same as 'all'.

    Syntax: clear_endp_counters endp_name
  34. clear_cd_counters
    Clear counters for one or all Collision Domains.

    ArgumentDescription
    cd_nameName of Collision Domain, or 'all'. Null argument is same as 'all'.

    Syntax: clear_cd_counters cd_name
  35. clear_port_counters
    Clear counters on one or all ports on one or all resources.

    ArgumentDescription
    shelfThe number of the shelf in question, or 'ALL'.
    resourceThe number of the resource in question, or 'ALL'.
    portThe number of the port in question, or 'ALL'.

    Syntax: clear_port_counters shelf resource port
  36. clear_resource_counters
    Clear counters on one or all resources.

    ArgumentDescription
    shelfThe number of the shelf in question, or 'ALL'.
    resourceThe number of the resource in question, or 'ALL'.

    Syntax: clear_resource_counters shelf resource
  37. discover
    Force discovery of nodes on the management network. Note that discovery runs automatically about every minute.


    Syntax: discover
  38. diag
    This command prints out information that can be used by support staff to diagnose certain issues.

    ArgumentDescription
    typeDefault (blank) is everything, options: alerts, license, counters, clients, endpoints, shelf.

    Syntax: diag type
  39. notify_dhcp
    Handle input from the DHCP client process. This should not normally be called by users, but only by other LANforge processes. This always assumes local shelf/card, so they are not specified.

    ArgumentDescription
    cmdset/down/timeout/info: What does DHCP want us to do?
    portInterface name.
    reasonDHCP reason, informational mostly.
    new_ipNew IP address.
    netmaskNew subnet mask.
    new_mtuNew MTU.
    new_routerOne or more default routers. We will only use the first.

    Syntax: notify_dhcp cmd port reason new_ip netmask new_mtu new_router
  40. do_pesq
    This command starts a PESQ calculation for the results saved by a VOIP endpoint. This command is usually used internally by LANforge so it is unlikely you will ever use it directly. The LANforge system will determine the source file (which must exist on the receiving machine in the same place it does on the transmitting machine) and send a request to the LANforge PESQ server to compare the source to the result file specified in this command. The results will be associated with the VOIP endpoint and may be displayed with the 'show_pesq' command

    ArgumentDescription
    endp_nameName of Endpoint.
    result_file_nameThe name of the file received by the endpoint.

    Syntax: do_pesq endp_name result_file_name
  41. gossip
    Send a message to everyone else logged in to the server.

    ArgumentDescription
    messageMessage to show to others currently logged on.

    Syntax: gossip message
  42. getintxrate
    Get the tx rate (packets per second) over the last 3 seconds. Values will always be fresh (cached values are not used). Value will be an integer. Response: InTxRate=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor endpoint a, enter 'A', for endpoint b, enter 'B'.

    Syntax: getintxrate CX AorB
  43. getinrxrate
    Get the rx rate (packets per second) over the last 3 seconds. Values will always be fresh (cached values are not used). Value will be an integer. Response: InRxRate=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor endpoint a, enter 'A', for endpoint b, enter 'B'.

    Syntax: getinrxrate CX AorB
  44. getinrxbps
    Get the rx bits-per-second rate over the last 3 seconds. Values will always be fresh (cached values are not used). Value will be an integer. Response: InRxBps=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor endpoint a, enter 'A', for endpoint b, enter 'B'.

    Syntax: getinrxbps CX AorB
  45. gettxpkts
    Get the total tx packets count. Values will always be fresh (cached values are not used). Value will be an integer. Response: TxPkts=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor endpoint a, enter 'A', for endpoint b, enter 'B'.

    Syntax: gettxpkts CX AorB
  46. getrxpkts
    Get the total rx packets count. Values will always be fresh (cached values are not used). Value will be an integer. Response: RxPkts=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor endpoint a, enter 'A', for endpoint b, enter 'B'.

    Syntax: getrxpkts CX AorB
  47. getpktdrops
    Get the total packets dropped. The drops will be detected by sequence number gaps, and will be based on packets RECEIVED by this endpoint. Values will always be fresh (cached values are not used). Value will be an integer. Response: PkdDrops=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor AtoB, enter 'B', for BtoA, enter 'A'.

    Syntax: getpktdrops CX AorB
  48. getavglatency
    Get the average latency (over the last 30 seconds) for packets received by and endpoint. Values will always be fresh (cached values are not used). Value will be an integer, units are milliseconds. Response: AvgLatency=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor AtoB, enter 'B', for BtoA, enter 'A'.

    Syntax: getavglatency CX AorB
  49. getrxporterrpkts
    Get the total error packets detected on the receiving port (interface). The errors will be based on what is reported by the driver and/or hardware for this interface. Values will always be fresh (cached values are not used). Value will be an integer. Response: RxPortErrPkts=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor AtoB, enter 'B', for BtoA, enter 'A'.

    Syntax: getrxporterrpkts CX AorB
  50. getrxendperrpkts
    Get the total error packets detected on the receiving endpoint. The errors will be the sum of things like CRC errors, packets received on the wrong device, and any other errors we can detect for this particular endpoint. Values will always be fresh (cached values are not used). Value will be an integer. Response: RxEndpErrPkts=INTEGER

    ArgumentDescription
    CXCross-connect name
    AorBFor AtoB, enter 'B', for BtoA, enter 'A'.

    Syntax: getrxendperrpkts CX AorB
  51. getipadd
    Get the IP for the endpoint. Value will be cached (but IP addresses do not often change, so the result should almost always be immediately correct.) Response: IPAdd=xxx.xxx.xxx.xxx

    ArgumentDescription
    CXCross-connect name
    AorBFor endpoint a, enter 'A', for endpoint b, enter 'B'.

    Syntax: getipadd CX AorB
  52. getmask
    Get the IP Mask for the endpoint. Value will be cached (but IP addresses do not often change, so the result should almost always be immediately correct.) Response: Mask=xxx.xxx.xxx.xxx

    ArgumentDescription
    CXCross-connect name
    AorBFor endpoint a, enter 'A', for endpoint b, enter 'B'.

    Syntax: getmask CX AorB
  53. getmac
    Get the MAC address for the endpoint. Value will be cached (but IP addresses do not often change, so the result should almost always be immediately correct.) Response: MAC=aa:bb:cc:dd:ee:ff

    ArgumentDescription
    CXCross-connect name
    AorBFor endpoint a, enter 'A', for endpoint b, enter 'B'.

    Syntax: getmac CX AorB
  54. ?
    Show help for commands(s). If no command is specified, then a brief listing of all commands will be printed out. If a command is specified, then a verbose printing of that command will be printed.

    ArgumentDescription
    commandThe command to get help for. Can be 'all', or blank.

    Syntax: ? command
  55. init_wiser
    Initialize the Wiser NCW/HNW module. This requires that one have the proper library installed. Contact sales@candelatech.com if you have questions. If the file_name has spaces in it, be sure to enclose it in double quotes.

    ArgumentDescription
    shelfThe number of the shelf in question.
    resourceThe number of the resource in question.
    file_nameThe WISER file name for the desired emulation, or 'NA' for empty string.
    node_countThe number of WISER nodes for the desired emulation, or 'NA' for empty string.

    Syntax: init_wiser shelf resource file_name node_count
  56. licenses
    Print out license information. See also: set_license

    ArgumentDescription
    popupIf 'popup', then cause a GUI popup msg, otherwise, just show text.
    show_fileIf 'yes', then show the license file, not the parsed license information.

    Syntax: licenses popup show_file
  57. load
    This command will completely erase the current setup in memory and replace it with the database specified with this command. You must specify a database to be loaded, though note that if you specify a database that does not exist, and chose 'overwrite', you will effectively initialize the LANforge system to defaults. The default database is called: DFLT

    ArgumentDescription
    nameThe name of the database to load. (DFLT is the default)
    actionShould be 'append' or 'overwrite'.

    Syntax: load name action
  58. login
    If you are the first to use this name, a new client will be created for you. If this is an existing client account, then you take on the characteristics of that client. At this time, that is only a few flags. If the password is set for this client, and the password given here is invalid, the client will not be logged in as the new user. See set_password to modify the password.

    ArgumentDescription
    nameA single name with no white-spaces (15 characters or less)
    passwordCan be blank or 'NA' if no password is set, otherwise must be the password.

    Syntax: login name password
  59. create_client
    Create a new client (user).

    ArgumentDescription
    nameA single name with no white-spaces (15 characters or less)
    passwordCan be blank or 'NA' if no password is set, otherwise must be the password.
    super_user1 If you want this user to have Administrative powers, 0 or blank otherwise.

    Syntax: create_client name password super_user
  60. log_level
    Sets the logging level for the primary log stream. The values are as follows, add them together to get the desired level. If you enter log_level by itself, then you can see the current level. If the second argument exists, it will apply to the entity specified. Without an argument it just modifies the local server in general. You can enter the value in HEX if you prefix it with 0x.
       DIS       = 1,    //disasters                (0x1)
       ERR       = 2,    //errors                   (0x2)
       WRN       = 4,    //warnings                 (0x4)
       INF       = 8,    //info                     (0x8)
       TRC       = 16,   //function trace           (0x10)
       DBG       = 32,   //debug                    (0x20)
       SEC       = 64,   //log security violations  (0x40)
       DB        = 128,  //Database related logging (0x80)
       XMT       = 256   //Output going to clients  (0x100)
       SCRIPT    = 1024, //Scripting specific stuff (0x400)
       PARSE     = 2048, //PARSE specific           (0x800)
       DBG2      = 4096  //very verbose logging     (0x1000)
       LIO       = 8192  //IO logging               (0x2000)
       OUT1      = 16384 //Some std-out logging     (0x4000)
       LL_PROF   = 32768 //Profiling information    (0x8000)
       CUST1     = 65536 //Cust-1, latency info     (0x10000)
       ALL       = 0xFFFFFF //Log everything        (0xFFFFFFFF) 

    ArgumentDescription
    levelInteger corresponding to the logging flags.
    targetOptions: 'gnu' | [file-endp-name].

    Syntax: log_level level target
  61. motd
    This command prints out alerts and other info that may be useful for debugging LANforge configuration problems.


    Syntax: motd
  62. nc_show_endpoints
    Show one or all endpoints. Will NOT use cached values.

    ArgumentDescription
    endpointName of endpoint, or 'all'.

    Syntax: nc_show_endpoints endpoint
  63. nc_show_pesq
    Show PESQ results for one or all VOIP endpoints. Will NOT use cached values.

    ArgumentDescription
    endpointName of endpoint, or 'all'.

    Syntax: nc_show_pesq endpoint
  64. nc_show_ports
    Show one/all ports for one/all resources in one/all shelves. This command WILL NOT use cached values, so it will be a little slower. It is useful for scripts and situations where the 3-5 second caching is to slow to yield the results needed. Probe-Flags: WIFI 1 MII 2 ETHTOOL 4 BRIDGE 8 EASY_IP_INFO 16 # Everything but gateway, which is expensive to probe. GW 32 GW_FORCE_REFRESH 64 # Force GW (re)probe. Otherwise, cached values *might* be used.

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    portPort number, or 'all.
    probe_flagsSee above, add them together for multiple probings. Leave blank if you want stats only.

    Syntax: nc_show_ports shelf resource port probe_flags
  65. c_show_ports
    Show one/all ports for one/all resources in one/all shelves. This command will ALWAYS use cached values, so it may return stale values. It is useful when the system cannot return non-cached values due to timeouts, and perhaps for configuration information that does not need to be probed. Probe-Flags: WIFI 1 MII 2 ETHTOOL 4 BRIDGE 8 EASY_IP_INFO 16 # Everything but gateway, which is expensive to probe. GW 32 GW_FORCE_REFRESH 64 # Force GW (re)probe. Otherwise, cached values *might* be used.

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    portPort number, or 'all.
    probe_flagsSee above, add them together for multiple probings. Leave blank if you want stats only.

    Syntax: c_show_ports shelf resource port probe_flags
  66. nc_show_channel_groups
    Show one/all ChannelGroups for one/all resources in one/all shelves. An empty specifier will be treated as 'all'. Will always request the absolute latest information from the remote system(s)

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    channel_nameName of the channel, or 'all'.

    Syntax: nc_show_channel_groups shelf resource channel_name
  67. nc_show_spans
    Show one/all Spans for one/all resources in one/all shelves. An empty specifier will be treated as 'all'. Will always request the absolute latest information from the remote system(s)

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    span_numberSpan-Number of the span, or 'all.

    Syntax: nc_show_spans shelf resource span_number
  68. nc_show_vr
    Show one/all Virtual Routers for one/all resources in one/all shelves. An empty specifier will be treated as 'all'. This command will always request the absolute latest information from the remote system(s)

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    routerName of the Virtual Router, or 'all'.

    Syntax: nc_show_vr shelf resource router
  69. nc_show_vrcx
    Show one/all Virtual Router Connections for one/all resources in one/all shelves. Only Connections on the 'free-list', those not associated with any Virtual Router will be shown with this command unless you exactly specify the VRCX Name. If the VRCX is in a virtual router, only cached results will be shown. Connections associated with routers will be shown whith the 'show_vr' command with the rest of the router information. This command will always request the absolute latest information from the remote system(s)

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    cx_nameName of the Virtual Router Connection, or 'all'.

    Syntax: nc_show_vrcx shelf resource cx_name
  70. nc_show_cd
    Show one/all Collision Domains for one/all resources in one/all shelves. An empty specifier will be treated as 'all'. This command will always request the absolute latest information from the remote system(s)

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    collision-domainName of the Collision Domain, or 'all'.

    Syntax: nc_show_cd shelf resource collision-domain
  71. nc_show_ppp_links
    Show one/all PPP Links for one/all resources in one/all shelves. An empty specifier will be treated as 'all'.

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    link_numPpp-Link number of the span, or 'all.

    Syntax: nc_show_ppp_links shelf resource link_num
  72. probe_ports
    Check for the existence of new (virtual) interfaces.

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.

    Syntax: probe_ports shelf resource
  73. port_reset_completed
    Internal command used by port-reset script to notify LANforge the reset has completed. This is only valid for Resource processes.

    ArgumentDescription
    portThe port in question.

    Syntax: port_reset_completed port
  74. exit
    Log out of the LANforge control server.


    Syntax: exit
  75. reset_port
    This command will cause the driver on the data-production ports to reset the ethernet hardware. It will also re-initialize all of the routing information for that interface. This command will disrupt traffic, but it can be useful if the ethernet port locks up or if you wish to change any of the routing information. See the user-guide section on setting up IP addresses and routing for more information. Don't override the default of 'YES' for reset_ospf unless you are certain that is the right thing to do.

    ArgumentDescription
    shelfShelf number, or ALL.
    resourceResource number, or ALL.
    portPort number to reset, or ALL.
    reset_ospfIf set to 'NO', then OSPF will not be updated. Otherwise, it will be updated.

    Syntax: reset_port shelf resource port reset_ospf
  76. reset_serial_span
    This command will cause the Serial Span (T1, etc) driver to be reloaded. This may help work around bugs in the T1 driver and/or hardware.

    ArgumentDescription
    shelfShelf number
    resourceResource (machine) number.
    spanSerial-Span number to reset.

    Syntax: reset_serial_span shelf resource span
  77. reboot_os
    This will reboot the Operating System on the resource specified. All processes will be killed on that resource, of course. Upon reboot, server processes will be re-started, including the LANforge server. See also: reboot_OS

    ArgumentDescription
    shelfShelf number, or ALL.
    resourceResource number, or ALL.

    Syntax: reboot_os shelf resource
  78. rm_cd
    Remove a Collision Domain. Any endpoints still associated with this CD will be gracefully removed from the CD, but will not otherwise be affected.

    ArgumentDescription
    cdName of Collision Domain.

    Syntax: rm_cd cd
  79. rm_cd_endp
    Remove an Endpoint from a Collision Domain.

    ArgumentDescription
    cdName of Collision Domain.
    endpEndpoint name/id.

    Syntax: rm_cd_endp cd endp
  80. rm_cd_vr
    Remove a Virtual Router from a Collision Domain.

    ArgumentDescription
    cdName of Collision Domain.
    endpVirtual-Router name/id.

    Syntax: rm_cd_vr cd endp
  81. rm_endp
    Remove an endpoint. 'YES_ALL' for endp-name will delete all endpoints.

    ArgumentDescription
    endp_nameName of the endpoint, or 'YES_ALL'.

    Syntax: rm_endp endp_name
  82. rm_channel_group
    Remove a channel group, or set of groups.

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    channel_nameName of the channel, or 'all'.

    Syntax: rm_channel_group shelf resource channel_name
  83. rm_vr
    Remove one or all Virtual Routers.

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    router_nameVirtual Router name, or 'all'.

    Syntax: rm_vr shelf resource router_name
  84. rm_vrcx
    Remove one or all Virtual Router Connections on the free-list. Underlying objects will be deleted if they were auto-created to begin with unless you specify the last argument as 'vrcx_only'.

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    connection_nameVirtual Router Connection name, or 'all'.
    vrcx_onlyIf we should NOT delete underlying auto-created objects, enter 'vrcx_only' here, otherwise leave blank or use NA.
    vr_idIf not removing from the free-list, then supply the virtual-router name/ID here. Leave blank or use NA for free-list.

    Syntax: rm_vrcx shelf resource connection_name vrcx_only vr_id
  85. rm_span
    Remove a Serial Span (T1, etc), or a set of spans.

    ArgumentDescription
    shelfName/id of the shelf, or 'all'.
    resourceResource number, or 'all'.
    span_numSpan-Number of the channel, or 'all'.

    Syntax: rm_span shelf resource span_num
  86. rm_ppp_link
    Remove a PppLink.

    ArgumentDescription
    shelfName/id of the shelf.
    resourceResource number that holds this PppLink.
    unit_numUnit-Number for the PppLink to be deleted.

    Syntax: rm_ppp_link shelf resource unit_num
  87. rm_client
    Delete a stored client profile. The client cannot be logged on currently. Changes will not be permanent until you write out the database. The client will be removed from all test managers as well.

    ArgumentDescription
    client_nameName of the client profile you wish to remove.
    client_passwordClient's password. Not required if we are super-user.

    Syntax: rm_client client_name client_password
  88. rm_cx
    Delete a cross-connect from the system.

    ArgumentDescription
    test_mgrName of test-mgr, or 'all'.
    cx_nameName of the cross-connect, or 'all'.

    Syntax: rm_cx test_mgr cx_name
  89. rm_wanpath
    Remove one or all wanpaths from an endpoint.

    ArgumentDescription
    endp_nameName of the endpoint.
    wp_nameName of the wanpath.

    Syntax: rm_wanpath endp_name wp_name
  90. rm_db
    Delete a database.

    ArgumentDescription
    db_nameName of the database to delete.

    Syntax: rm_db db_name
  91. rm_vlan
    Remove an 802.1Q VLAN or MAC-VLAN.

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    portPort number or name of the virtual interface.

    Syntax: rm_vlan shelf resource port
  92. rm_test_mgr
    Remove a test manager. Cross-connects will not be directly affected. There is no need to un-register clients first: This command will take care of that for you.

    ArgumentDescription
    test_mgrName of the test manager to be removed.

    Syntax: rm_test_mgr test_mgr
  93. save
    This command allows you to save the current test configuration, including all Endpoints, and all TestManagers. You may then use the 'load' command to initialize the LANforge Manager with the previously saved database. If you don't specify a name, it will be saved as the default database (DFLT), and will be automatically loaded at startup.

    ArgumentDescription
    db_nameThe name the backup shall be saved as (blank means dflt)

    Syntax: save db_name
  94. scan_wifi
    Scan for WiFI access points. Only works for WiFI Virtual Station Interfaces (Virtual STA).

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    portPort number or name of the virtual interface.
    keyUnique identifier for this request. Usually left blank.

    Syntax: scan_wifi shelf resource port key
  95. set_arm_info
    Set Armagheddon Endpoint configuration. You may enter 'AUTO' for any value that you wish LANforge to calculate for you or set to defaults. Note that randomizing many of these values will mean packets may not be received on the receiving port due to routing or switching issues. If multi_pkts is set to a value greater than 1, that number of identical packets will be sent before creating a new packet. This can significantly increase performance, but at the cost of not having as much accuracy when calculating latency values. It will also cause the 'duplicate packet' to increment.

    ArgumentDescription
    nameName of the Endpoint we are setting.
    min_pkt_sizeMinimum packet size, including all Ethernet headers (but not CRC).
    max_pkt_sizeMaximum packet size, including all Ethernet headers (but not CRC).
    udp_src_minMinimum source UDP port.
    udp_src_maxMaximum source UDP port.
    udp_dst_minMinimum destination UDP port.
    udp_dst_maxMinimum destination UDP port.
    ip_src_minMinimum source IP address to use.
    ip_src_maxMaximum source IP address to use.
    ip_dst_minMinimum destination IP address to use.
    ip_dst_maxMaximum destination IP address to use.
    src_mac_countHow many source MACs to iterate through.
    dst_mac_countHow many destination MACs to iterate through.
    src_macThe source MAC address.
    dst_macThe destination MAC address.
    multi_pktsThe number of identical packets to send before creating a new one.
    pkts_to_sendThe number of packets to send. Set to zero for infinite.

    Syntax: set_arm_info name min_pkt_size max_pkt_size udp_src_min udp_src_max udp_dst_min udp_dst_max ip_src_min ip_src_max ip_dst_min ip_dst_max src_mac_count dst_mac_count src_mac dst_mac multi_pkts pkts_to_send
  96. set_cx_report_timer
    You must be registered with the Test-Manager(s) in order for this operation to succeed. The timer should be >= 500ms. This command will also cause the LANforge Resources to report to the LANforge Manager on a similar time interval.

    ArgumentDescription
    test_mgrName of the test manager, or 'all'.
    cx_nameName of cross-connect, or 'all'.
    millisecondsReport timer length in milliseconds.
    CXONLYIf you want to set the timer for ONLY the CX, and not the endpoints, enter 'cxonly'. Otherwise, leave it blank..

    Syntax: set_cx_report_timer test_mgr cx_name milliseconds CXONLY
  97. set_endp_report_timer
    The timer should be >= 500ms. This will cause the LANforge-GUI to request reports at the specified interval. For large numbers of entities, it is suggested to use longer report times to decrease load on the GUI.

    ArgumentDescription
    endp_nameName of endpoint.
    millisecondsReport timer length in milliseconds.

    Syntax: set_endp_report_timer endp_name milliseconds
  98. set_cx_state
    Set the state of the Cross-Connect(s). Valid states are: RUNNING -- Sets the CX(s) in the running state. SWITCH -- Sets the CX(s) in the running state, stopping any conflicting tests. QUIESCE -- Stop transmitting and gracefully stop cross-connect. STOPPED -- Sets the CX(s) in the stopped state. DELETED -- Deletes the CX(s). SWITCH only works on WanLink cross-connects at this time.

    ArgumentDescription
    test_mgrName of the test-manager, or 'all'.
    cx_nameName of the cross-connect, or 'all'.
    cx_stateOne of: RUNNING, SWITCH, QUIESCE, STOPPED, or DELETED.

    Syntax: set_cx_state test_mgr cx_name cx_state
  99. set_license
    Install license keys on the manager machine. Enter the license keys as a single command. LANforge will break them into separate lines internally.

    ArgumentDescription
    licensesLicense keys all appended into a single line.

    Syntax: set_license licenses
  100. set_password
    Set the password for the current client (if client is not specified), or the specified client if we are logged in as 'admin'.

    ArgumentDescription
    old_passwordOld password, or 'NA' for blank password.
    new_passwordNew password, or 'NA' for blank password.
    clientSpecify the client. If left blank, will use current client.

    Syntax: set_password old_password new_password client
  101. set_ppp_link_state
    Set the state of the PPP Link(s). Valid states are: RUNNING -- Sets the PPP Link(s) in the running state. STOPPED -- Sets the PPP Link(s) in the stopped state. DELETED -- Deletes the PPP Link(s).

    ArgumentDescription
    shelfName of the Shelf, or 'all'.
    resourceNumber of the Resource, or 'all'.
    linkUnit Number of the PPP Link, or 'all'.
    ppp_stateOne of: RUNNING, STOPPED, or DELETED.

    Syntax: set_ppp_link_state shelf resource link ppp_state
  102. set_wifi_radio
    Modify a WIFI Radio Interface (such as 'ath0'). This command requires that the designated machine support LANforge's madwifi driver for the Atheros brand WIFI NICs. The radio interface holds common configuration for the Virtual STA interfaces. 'NA' can be used for any values that you do not wish to modify. Most of these values are passed directly to the iwconfig and/or iwpriv tool. To set any value to the DEFAULT (or un-set), use 'DEFAULT'. You may have to reboot the system to have the defaults take affect.

    ArgumentDescription
    shelfShelf number.
    resourceResource number.
    radioName of the physical radio interface, for example: ath0
    modeWiFi mode: 0 == AUTO, 1 == 802.11a, 2 == 802.11b 3 == 802.11g
    channelChannel number for this radio device.
    countryCountry number for this radio device.
    frequencyFrequency for this radio.
    sensThe sensitivity of this radio.
    rateThe (maximum) rate at which this radio should run.
    rtsThe RTS for this radio.
    txpowerThe transmit power setting for this radio.

    Syntax: set_wifi_radio shelf resource radio mode channel country frequency sens rate rts txpower
  103. set_endp_addr
    Set the MAC, IP, and Port addresses for an UN_MANAGED endpoint. The endpoint must be created as UN_MANAGED, and you must set it's addresses before you can start it. The syntax for MAC addresses is: 01:BB:CC:DD:EE:FF, IP addresses should be entered in dot notation, ie: 172.4.1.1, and port is the IP port (1-65534).

    ArgumentDescription
    nameThe name of the endpoint we are configuring.
    macThe MAC address. Only needed for LANforge protocol Endpoints.
    ipThe IP Address. Used for TCP/IP and UDP/IP protocols.
    portThe IP Port. Used for TCP/IP and UDP/IP protocols.

    Syntax: set_endp_addr name mac ip port
  104. set_endp_payload
    Set the payload type, and potentially the payload for a particular Endpoint. To see the payload types, see the help for add_endp. To enter an actual payload, use space separated Hexadecimal. For example: 00 00 01 04 bb de ad be ef. The payload must be entered all at once on one line. The payload cannot be longer than 2048 bytes (though when represented as ascii HEX, the actual input can be longer than that.)

    ArgumentDescription
    nameThe name of the endpoint we are configuring.
    payload_typeThe payload type. See help for add_endp.
    payloadFor custom payloads, enter the payload in hex, up to 2048 bytes.

    Syntax: set_endp_payload name payload_type payload
  105. set_endp_details
    Modify TCP window sizes. The rcvbuf_size will be passed to setsockopt(desc, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) and the sndbuf will be set similarly: setsockopt(desc, SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)). See the socket man page: man socket for more detailed information about what this means. conn_timer is used to create TCP connections of short duration. If this is set to some value other than 0xFFFFFFFF, then the connection will be closed and reopened at that duration. Set to a low value for testing firewalls and devices that are interested in connections-per-second.

    ArgumentDescription
    nameThe name of the endpoint we are configuring.
    rcvbuf_sizeThe receive buffer (window) size.
    sndbuf_sizeThe sending buffer (window) size.
    conn_timerThe duration (in ms) this connection should run before re-establishing.
    pkts_to_sendNumber of packets to send before stopping. 0 means infinite.

    Syntax: set_endp_details name rcvbuf_size sndbuf_size conn_timer pkts_to_send