# To support ixNet low level API against the Linux API server: # # Get IxTclNetwork.tcl: # - Version from 8.0 up to 8.40, you need to download the IxTclNetwork package from the Linux API server. # - On a web browser, enter the IP address of your Linux API server. # - Login admin/admin. # - Click on "Download A Client" # # - The problem is that the IxTclNetwork is the same file name as the installed IxNetwork file in the lib directory. # - You don't want to overwrite the existing file. Ixia is addressing this issue on the next release. # - We are going to rename IxTclNetwork to IxTclNetworkLinuxApiServer in order to support both Windows and Linux. # - Below is a way to handle the filename conflict. # # - After you downloaded the IxTclNetwork.py file, untar it. # # - Put it in the Ixia installation folder: /path_to_ixia_installation/ixia/ixnetwork/8.40.1124.8/lib/IxTclNetwork/LinuxApiServer and rename it to LinuxApiServer: # # - Go into the LinuxApiServer folder and: # - Rename IxTclNetwork to IxTclNetworkLinuxApiServer.tcl # - Edit pkgIndex.tcl # # set env(IXTCLNETWORK_8.40.1124.8) [file dirname [info script]] # # package ifneeded IxTclNetworkLinuxApiServer 8.40.1124.8 { # package provide IxTclNetworkLinuxApiServer 8.40.1124.8 # source [file join $env(IXTCLNETWORK_8.40.1124.8) LinuxApiServer/IxTclNetworkLinuxApiServer.tcl] # source [file join $env(IXTCLNETWORK_8.40.1124.8) LinuxApiServer/HighLevelAPI.tcl] # # Optional: # # Install ActiveTcl to get the tls and http packages because the Linux API server requires it. # - Add tls and http paths to TCLLIBPATH: # # export linuxApiServer=${ixTclNetwork}/LinuxApiServer # export tclTls=/opt/ActiveTcl-8.5/./lib/teapot/package/linux-glibc2.3-x86_64/lib/tls1.6.4 # export tclHttp=/opt/ActiveTcl-8.5/lib/tcl8.5/http1.0 # export TCLLIBPATH="$IXOS_API_HOME $HLT_HOME $HLT_LIBRARY ${IXLOAD_HOME}/lib $ixLoadComm $ixTclNetwork $linuxApiServer $tclTls $tclHttp" # # - Add ActiveTcl to .bashrc PATH # export PATH="/opt/ActiveTcl-8.5/bin:/usr/local/git-2.15.1/libexec/git-core:/usr/local/python3.6.3/bin:$PATH" # # - In the scripts, add: package req IxTclNetworkLinuxApiServer