question

conrad avatar image
conrad asked conrad posted

View N2X stats

Hi,

 

I am running a test on the Agilent N2x version 6.11. The test has been built in the N2X GUI, but then this is shut down and the session closed. I then load this session via iTest (using "eval AgtRestoreSession ...."). Once loaded I cannot see any streams until I enter "show stats stream" - however this is a small issue.

 

The real problem is that I cannot view port or stream stats unless I load the N2X gui, and connect to the session loaded via iTest. If I load the session via Itest only, even if I select the streams, turn on capture, and transmit traffic, and stop it, I cannot see any stats:

 

AgilentTraffic>show streams
Name                | Source | Destination | Enabled | InStatistics
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MSPE - 4 - MSPE -18 | 203:1  | 203:2       | True    | False
MSPE-18 - MSPE-4    | 203:2  | 203:1       | True    | False

AgilentTraffic>select all stream
AgilentTraffic>show streams
Name                | Source | Destination | Enabled | InStatistics
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MSPE - 4 - MSPE -18 | 203:1  | 203:2       | True    | True
MSPE-18 - MSPE-4    | 203:2  | 203:1       | True    | True

AgilentTraffic>capture start
Capture started
AgilentTraffic>transmit start
Transmit started
AgilentTraffic>show stats
No stats to show
AgilentTraffic>show stats stream
No stats to show
AgilentTraffic>transmit stop
Transmit stop sent. Waiting until test stops... OK.
AgilentTraffic>capture stop
Capture stopped
AgilentTraffic>show stats
No stats to show
AgilentTraffic>show stats stream
No stats to show
AgilentTraffic>

If I load the N2X GUI and connect to the session - and do nothing else - the streams becomed deselected in ITest. I then select them again and stats works. I would like to view stats without loading the GUI - how can I do this?

Thanks for your help in advance.

Conrad.

 

 

iTesttraffic generation
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amresh avatar image
amresh answered amresh posted

Hi Conrad,

 

I am attaching two sample test case for your reference. In the Agilent1.fftc I have saved the configuration file from the Agilent Chassis and the other test case, i,e, Agilent2.fftc I have captured while loading the saved configuration when running the N2X session from iTest .


Aglient1.fftc (4.5 KiB)
aglient2.fftc (30.1 KiB)
5 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

conrad avatar image conrad commented ·

Thanks Amresh. The problem I have is that QuickTest is not installed on the PC I run iTest on. Do you know an easy way to fix this?

 

Searching for QuickScript directory...Could not find QuickTest home directory
WARNING
    Configuration management commands will be unavailable:
    QuickScript dir is not found. Make sure that it is in PATH variable

0 Likes 0 ·
amresh avatar image amresh conrad commented ·

Hi Conrad,

 

If you will install the Agilent client on the client on which you are using iTest then it will automatically install the quick test.

 

Please let me know, if you are using iTest on remote desktop or on your system.

0 Likes 0 ·
HosoonK avatar image HosoonK amresh commented ·

FYI, If you are working on Windows system, and have not changed the default installation directory please add 

"C:/Program Files/Tcl83/lib/AgilentN2X" "C:/Program Files/Agilent/N2X/QuickTest/lib" in your TCLLIBPATH.

 

Linux systems comes with different QuickTest client package and requires different set of environment variables setting.

Let me know if you need further assistance on Linux system settings.

 

Thanks,

-Hosoon

0 Likes 0 ·
VidyaH avatar image VidyaH conrad commented ·

Hi conrad,

 

Agilent recommends installing Quick Test under home directory, unless if user wants to share the installation with multiple users by installing in another directory like /opt.

 

Now to make this work from /opt directory, user has to create a soft link from the user’s home directory to the Quick Test installation,this information can be found at "How to Install: Agilent QuickTest.htm" document in documentation folder.

 

$ cd ~

$ ln -s /opt/Agilent Agilent

 

Write access should be added like this and to do this may require root privileges:

$chmod -R a+w /opt/Agilent

 

Another way to avoid this issue is to have a clean setup to work on Quick Test is to re-install Qucik Test in home directory if you do not intend to share this?

 

I would recommend users to go through the Agilent QuickTest installation in Linux operating system in "iTest Installation Guide".

 

Hope this helps.

 

Thanks,

Vidya

0 Likes 0 ·
conrad avatar image conrad VidyaH commented ·

Hi,

 

Thanks for all your help. Installed the N2x client (including Quick Scripts) and this now works. I can "get", "save" and load the configuration - and view stats.

 

Cheers,

 

Conrad.

0 Likes 0 ·
amresh avatar image
amresh answered amresh posted

Hi Conrad,

 

To use iTest with N2X please follow the below steps,

 

1) Go to you N2X box do all the configuration and then run it to check if it is working fine or not.

 

2) Use your iTest  to connect to Agilent chassis and get that configuration in iTest using "configuration get" command.

 

While connecting make sure that you are using the same session label name on iTest using which you have opened the session on your chassis.

 

3) Save that configuration in your iTest workspace using the command "configuration save project://session/agilent.tcl"

 

4) Later you can load this configuration file using "configuration load project://session/agilent.tcl" command.

 

5)Now use capture start <port no> and transmit start <port no> and then transmit stop and capture stop.

 

6) Now if you will run the show stream or show stats command it will run fine.

 

I am attaching the result of the two command  which I got after following the steps I suggested to you.

 

Note:- If you have chassis installed on the remote desktop, then make sure that you have installed the same version of Agilent client on the system on which you are using the iTest.


N2X_show_stats.JPG (118.9 KiB)
N2X_show_stream.JPG (155.6 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.