
Agilent Technologies 8712ET/ES and 8714ET/ES
RF Network Analyzers

Part No. 08714-90013
© Copyright 1998-2000 Agilent Technologies, Inc
Printed in USA · Supersedes October 1999

The information contained in this document is subject to change without notice. Agilent Technologies makes no warranty of any kind with regard to this material, including but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Agilent Technologies shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.
This manual uses the following conventions:
: This represents a key physically located on the analyzer (a “hardkey”).
: This indicates a “softkey”— a key whose label is determined by the instrument’s firmware, and is displayed on the right side of the instrument’s screen next to the eight unlabeled keys.
This manual documents analyzers with firmware revisions E.06.00 and later.
ii LAN Interface Supplement
Softkey

Excel™ is a product of Microsoft® Corporation.
Lotus® 1-2-3®, and Lotus Amipro are U.S. registered trademarks of Lotus Development Corporation.
Microsoft Excel® and Microsoft Word are U.S. registered trademarks of Microsoft Corporation.
QuickBasic™ is a product of Microsoft Corporation.
Windows® is a registered trademark of Microsoft Corporation.
Portions of the TCP/IP software are copyright Phil Karn, KA9Q.
GIF output routines are by John Silva (derived from Jef Poskanzer’s PBMplus package).
Java™ is a U.S. trademark of Sun Microsystems, Incorporated.
Lotus® 1-2-3® are U.S. registered trademarks of Lotus Development Corporation.
Microsoft® is a U.S. registered trademark of Microsoft Corporation.
MS® and MS-DOS® are U.S. registered trademarks of Microsoft Corporation.
MS Windows®, Windows®, Windows 95®, and Windows NT® are U.S. registered trademarks of Microsoft Corporation.
Netscape® is a U.S. registered trademark of Netscape Communications Corporation.
Pentium® is a U.S. registered trademark of Intel Corporation.
Postscript™ is a trademark of Adobe Systems Incorporated which may be registered in certain jurisdictions.
Reflection™ is a U.S. trademark of Walker, Richer & Quinn, Incorporated.
UNIX® is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Limited.
Portions of the software include source code from the Info–ZIP group. This code is freely available on the Internet by anonymous ftp asftp.uu.net:/pub/archiving/zip/unzip51/.tar.Z, and from CompuServe asunz51.zip in the IBMPRO forum, library 10 (data compression).
LAN Interface Supplement iii

This User’s Guide Supplement describes how to connect, use and troubleshoot the LAN interface on your analyzer. This supplement contains the following chapters:
Describes how to connect the analyzer to the LAN, and how to configure the analyzer for use on the LAN. Basic user account and file administration is also described. To effectively use this chapter, you should be familiar with your network setup and operation.
Describes how to use a Web browser to access built-in Web pages.
Describes how to access the analyzer’s file system using file transfer protocol (FTP). The directory structure of the analyzer is described here.
Describes the analyzer’s ‘data’ directory, the dynamic data disk. Includes an example program.
Shows you methods for programming the analyzer via the network connection.
Describes how to configure and use NFS.
Glossary Definitions for networking and other terms used in this book.
iv LAN Interface Supplement

The CDROM provides the contents of all of the documents listed below.
The User’s Guide shows how to make measurements, explains commonly-used features, and tells you how to get the most performance from the analyzer.
The LAN Interface User’s Guide Supplement shows how to use a local area network (LAN) for programming and remote operation of the analyzer.
The Automating Measurements User’s Guide Supplement provides information on how to configure and control test systems for automation of test processes.
The Programmer’s Guide provides programming information including GPIB and SCPI command references, as well as short programming examples.
LAN Interface Supplement v

The Example Programs Guide provides a tutorial introduction using BASIC programming examples to demonstrate the remote operation of the analyzer.
The Service Guide provides the information needed to adjust, troubleshoot, repair, and verify analyzer conformance to published specifications.
The HP Instrument BASIC User’s Handbook describes programming and interfacing techniques using HP Instrument BASIC, and includes a language reference.
The HP Instrument BASIC User’s Handbook Supplement shows how to use HP Instrument BASIC to program the analyzer.
The Option 100 Fault Location and Structural Return Loss Measurements User’s Guide Supplement provides theory and measurement examples for making fault location and SRL measurements. (Shipped only with Option 100 analyzers.)
The CATV Quick Start Guide provides abbreviated instructions for testing the quality of coaxial cables. (Shipped only with Option 100 analyzers.)
The Cellular Antenna Quick Start Guide provides abbreviated instructions for verifying the performance of cellular antenna systems. (Shipped only with Option 100 analyzers.)
vi LAN Interface Supplement



Connecting and Configuring the Analyzer About This Chapter
This chapter describes how to
In order to complete the steps in this chapter, you'll need
J A computer with a LAN interface, running an operating system that
supports TCP/IP, like UNIX® or Microsoft Windows 95®. A typical computer would be an IBM-compatible Pentium®-based PC with a 10Base-T LAN card, or an HP J210 PA-RISC workstation.
J A computer program that communicates over the LAN using TCP/IP.
This might be an FTP or telnet program, or a program that you write. This will be covered in detail in the following chapters.
J LAN cabling, and typically a LAN hub.
If you only wish to print to a LaserJet printer via the LAN, you'll need
J an HP LaserJet printer with an HP JetDirect LAN interface card
J LAN cabling, and typically, a LAN hub
Newer versions of Novell Netware, such as version 3.1x and 4.xx accommodate add-on products which provide a gateway to a TCP/IP network. Consult your Novell network administrator for the latest information on using Novell Netware with TCP/IP protocol.

Connecting and Configuring the Analyzer
Intoducing the LAN Interface
With the LAN interface you can
general information about the Agilent 87xx family of analyzers
online documentation such as SCPI command references
specific information about your analyzer such as your current
firmware revision, installed options, even the analyzer’s current screen image
general information about Agilent Technologies, and how to obtain
assistance if you need it
analyzer · transfer protocol (FTP)

Connecting and Configuring the Analyzer Intoducing the LAN Interface
Your analyzer acts as either a client or server when you use the client/server features of the analyzer. For example, if you use Network File System (NFS), your analyzer acts as an NFS client (see Chapter 7, “Using the Network File System (NFS),” on page 7-1). The table below lists the client/server features of the analyzer, and the function performed by the analyzer when you use each feature:
Client/Server Feature Analyzer Function

Connecting and Configuring the Analyzer
Connecting the Analyzer to the LAN
Your analyzer has an RJ-45 connector (see Figure 1-1) and connects to your network using 10Base-T unshielded twisted pair (UTP) cabling, also called Ethertwist. Ethertwist cables resemble standard modular phone cables.
To connect the analyzer to your network:
Figure 1-1 The LAN ETHERTWIST Port


Connecting and Configuring the Analyzer Setting Up a Network
If you do not already have a network, you will need to create one. A simple network consists of a central LAN hub with multiple Ethertwist cables, one connected to the LAN port of each network device. This is often called a star topology, with the LAN hub at the center.
HP J2610B AdvanceStack 10Base-T Hub-8U
HP J2611B AdvanceStack 10Base-T Hub-16U
92268A twisted-pair “straight-through” cable, 4 meters
92268B twisted-pair “straight-through” cable, 8 meters
92268C twisted-pair “straight-through” cable, 16 meters
92268D twisted-pair “straight-through” cable, 32 meters
92268N twisted-pair “straight-through” cable, 300 meters
To order cables, contact the nearest Agilent Technologies sales or service office. See Table 9-5 on page 9-11 for a list of sales and service offices.
Figure 1-2 Example of LAN Star Topology


Connecting and Configuring the Analyzer
Setting Up a Network
It is possible to connect a single computer to a single analyzer, and avoid using a LAN hub. To do this, you must use a special “cross-over” cable or adapter, which acts like a LAN hub. See “EIA/TIA 568B Wiring” on page 9-2 for wiring details. If you try to create a point-to-point connection using a standard “straight-through” cable, it will not work. For most applications, the use of a LAN hub is simpler, and additional devices can be added easily.

Connecting and Configuring the Analyzer Configuring the Analyzer
Before you configure your analyzer, you will need to contact your network administrator to obtain the following information:
J an IP address for the analyzer
J a host name for the analyzer
J a gateway IP address
J a subnet mask
Each device on your network must have a unique address so that all devices can communicate simultaneously over the same network. These unique addresses are called IP addresses, and are assigned by your network administrator. An IP address is a set of four decimal numbers, separated by periods, like 192.170.128.21. In this document, the term “LAN address” refers to the IP address.
You may also receive (or request) from your network administrator a hostname for your analyzer, like my8712.
The hostname is not required, but can be used on your computer so that you don't have to remember the IP address. Typically, the hostname is found in the /etc/hosts or control panel/network file on your computer or is returned by a name server.
Your network administrator will apply for a range of IP addresses from the Internet Network Information Center (InterNIC). InterNIC is responsible for registering domain names and assigning TCP/IP network numbers to networks that connect to the Internet. You may contact InterNIC via e-mail at hostmaster@internic.net, or by accessing their Web site at http://www.networksolutions.com

Connecting and Configuring the Analyzer
If your analyzer will be communicating with devices on different physical networks, you may need to have your network administrator assign a gateway IP address for you. The gateway IP address is the address of a routing device that connects your analyzer's LAN with other LANs. Set the gateway address to 0.0.0.0 if a gateway is not required. See “To Configure the Analyzer” on page 1-10 to set this.
See “Subnets and Gateways” on page 8-15 for more information on gateway addresses.
If your analyzer will be communicating with devices on different physical networks, you may need to have your network administrator assign a subnet mask number for you. The subnet mask tells your analyzer whether a remote device is on the same LAN as your analyzer. If your analyzer is attempting to communicate with another device, the subnet mask defines whether your analyzer needs to route communications through the gateway. Set the subnet mask to 0.0.0.0 if a subnet mask is not required. See “Configuring the Analyzer” on page 1-8to set this.
See “Subnets and Gateways” on page 8-15 for more information on subnet masks.
Your analyzer has a unique built-in Ethernet address associated with the LAN hardware inside it. The Ethernet address is a 48-bit number assigned at the factory. You don’t have to know the Ethernet address to configure and use the analyzer, unless you are using the BOOTP feature (see “Using BOOTP” on page 1-15 for details).
Configuring the Analyzer

Connecting and Configuring the Analyzer Configuring the Analyzer
LAN Port Setup HP 871xxx IP Address
Gateway IP Address · Subnet Mask

Connecting and Configuring the Analyzer
Testing the LAN Communication
You should now test communication between your computer and your analyzer.
The ping utility is typically used to test LAN communication.
Enter the following at the command prompt of a DOS window on your computer or workstation:
is the number that was assigned by your network administrator and was entered into your analyzer in “To Configure the Analyzer” on page 1-10. The is the hostname assigned to your IP address. For example, type:
where my8712 is the .
The ping utility has three common responses. If there is a valid working connection, you should see a response similar to this:
Pinging my8712 [15.4.43.5] with 32 bytes of data:
Reply from 15.4.43.5: bytes=32 time=37ms TTL=252 Reply from 15.4.43.5: bytes=32 time=30ms TTL=252 Reply from 15.4.43.5: bytes=32 time=30ms TTL=252 Reply from 15.4.43.5: bytes=32 time=31ms TTL=252
If you see a response similar to the following, your connection may have a problem. Refer to “Troubleshooting the Initial Connection” on page 8-3 for troubleshooting help and information.
Request timed out. Request timed out. Request timed out. Request timed out.

Connecting and Configuring the Analyzer Testing the LAN Communication
The following response is generally caused by an incorrect subnet mask or IP address. It usually points to a software setting conflict, and does not signify a hardware problem.
Host Unreachable. Host Unreachable. Host Unreachable. Host Unreachable.
The ping program is typically found in the /etc or/usr/etc directory, so you must add the appropriate directory to your path, or type the full path:
/etc/ping 64 5
/etc/ping 64 5
This command tells ping to send 5 packets of 64 bytes each.
The output should look similar to this:
PING hostname: 64 byte packets 64 bytes from 15.4.43.5: icmp_seq=0. time=8. ms 64 bytes from 15.4.43.5: icmp_seq=1. time=4. ms 64 bytes from 15.4.43.5: icmp_seq=2. time=4. ms 64 bytes from 15.4.43.5: icmp_seq=3. time=3. ms 64 bytes from 15.4.43.5: icmp_seq=4. time=3. ms
hostname PING Statistics 5 packets transmitted, 5 packets received, 0% packet loss round-trip (ms) min/avg/max = 3/4/8
If you do not see any output after about 20 seconds, interrupt the ping command using ^c (hold down the “Ctrl” key, and press “c”). Once you do this, the ping program should provide some statistics on how many packets were sent and received. If the statistics look like
hostname PING Statistics 4 packets transmitted, 0 packets received, 100% packet loss
there is a communications problem. Refer to “Troubleshooting the Initial Connection” on page 8-3 for troubleshooting help and information.
or

Connecting and Configuring the Analyzer Managing User Names and Passwords
Your analyzer implements a limited form of network security using user name and password pairs. Any remote access of the analyzer, including Telnet or FTP access, requires a valid user name and associated password.
A default user name and password pair is set for you prior to shipment:
A valid user name must have 1 to 40 characters. A valid password must have 8 to 40 characters.
Perform the following steps to add a new user name and password to the access list:
SYSTEM OPTIONS LAN Login User Setup

Connecting and Configuring the Analyzer Managing User Names and Passwords
If the entries are valid, the new user name and password will be confirmed with the following message:
User ... has been added to the list
Perform the following steps to remove a user from the access list:
SYSTEM OPTIONS LAN Login User Setup
If the entries are valid you should see a confirmation message displayed on the screen:
User ... has been deleted from the list
SYSTEM OPTIONS LAN Login User Setup Delete All Users
and re-enter all user names and passwords.
SYSTEM OPTIONS LAN Login User Setup
A table of the login user names will be displayed on the screen.

Connecting and Configuring the Analyzer
The Bootstrap Protocol (BOOTP) is a simple and elegant method of automatically distributing network information and software via the LAN. BOOTP is built on the client-server model. The BOOTP client configures itself using configuration information obtained from a BOOTP server. Your analyzer has a built-in BOOTP client. The analyzer can use BOOTP to configure itself automatically, obtaining its network configuration information (IP address, gateway address, and subnet mask) from a central BOOTP server over the network. On power up, the analyzer broadcasts a request to boot from a remote server. If a BOOTP server is available on the LAN listening for BOOTP client requests, it transmits configuration parameters to the analyzer over the network. The analyzer uses those parameters automatically.
BOOTP can also be used to automatically retrieve and execute an IBASIC program at boot time. The boot file is transferred to the analyzer from the BOOTP server using FTP or trivial file transfer protocol (TFTP). If the transfer is successful, the file will be loaded into the analyzer’s memory and executed. The boot file can be any valid IBASIC program.
To use the BOOTP client in your analyzer, you need a BOOTP server application running on a remote UNIX system or a PC. A BOOTP server, bootpd (BOOTP daemon), is an integral part of most UNIX operating systems. You will need to obtain a separate BOOTP server application for your PC. Consult your network administrator for obtaining a BOOTP server application for your PC, and for assistance setting up a BOOTP server.
The following steps are required to use BOOTP:
Using BOOTP

Connecting and Configuring the Analyzer Using BOOTP
J The Ethernet address of the analyzer. To find out the Ethernet
address of your analyzer, press
SYSTEM OPTIONS LAN LAN Port Setup Ethernet Address
J An IP address for the analyzer. This address is usually assigned
by your network administrator.
J An optional BOOTP host name and IP address.
J An optional absolute (fully qualified) path to the boot file, which
includes all the directories leading to it. If you want to retrieve an IBASIC boot program from your BOOTP server at boot time and execute it, you must know the absolute path to the boot file. The boot file must be accessible using FTP or TFTP.
J The LAN gateway address and the subnet mask.
Perform the following steps to set up the BOOTP client in your analyzer:
SYSTEM OPTIONS LAN BOOTP Setup
FTP
a. Press and enter a valid user name for your remote BOOTP host.
b. Press and enter a valid password for your remote BOOTP host.
value is the number of seconds that your analyzer will spend transmitting BOOTP requests at boot time. If there is no response to the first BOOTP request, then the analyzer will retransmit

Connecting and Configuring the Analyzer
a request. The analyzer will continue to retransmit requests at exponentially increasing time intervals until it receives a response or the value has expired.
If you do not want to use , make sure that it contains a null or empty string by pressing
Optional Boot Host Clear Entry Enter
/server5/users/testeng/prodtests/test23.bas

Connecting and Configuring the Analyzer Using BOOTP
Normally, your analyzer will obtain this file name from the BOOTP server, but you can override this using . If you do not want to use , make sure that it contains a null string. To do that, press
Optional File Name Optional File Name
Optional File Name Clear Entry Enter
After your analyzer has been set up correctly as a BOOTP client, make sure that the BOOTP server is also set up correctly and is running. Consult your network administrator if you need help doing this.
Perform the steps below to verify that BOOTP works correctly:
SYSTEM OPTIONS LAN BOOTP Setup Parameters Received
The following dialog box will appear:

Connecting and Configuring the Analyzer
Figure 1-3 BOOTP Setup Dialog Box

The dialog box shown above displays the following information:
Host Addr the host address of the BOOTP server
IP Addr the analyzer IP address set by BOOTP process
Gateway the analyzer gateway IP address set by the BOOTP process
Subnet Mask the subnet mask set for the analyzer by the BOOTP process
File Path the absolute (fully-qualified) path name received from the BOOTP server, or the [Optional File Path] if set
Step one shows the network parameters received from the BOOTP server. To verify that your IBASIC boot file is working correctly, perform steps two through four.
Using BOOTP

Connecting and Configuring the Analyzer Using BOOTP
a. Press
SYSTEM OPTIONS LAN LAN Port Setup 871xxx IP Address Clear Entry Enter
b. Press
SYSTEM OPTIONS LAN LAN Port Setup Gateway IP Address Clear Entry Enter
c. Press
SYSTEM OPTIONS LAN LAN Port Setup Subnet Mask Clear Entry Enter
10 ASSIGN @Hp8712 TO 800
20 OUTPUT @Hp8712;"DISP:ANN:TITL ON"
30 OUTPUT @Hp8712;"DISP:ANN:CLOC:MODE OFF"
40 OUTPUT @Hp8712;"DISP:ANN:TITL1:DATA 'BOOTP is here!!!'"
If you have a boot file set up correctly, your analyzer should also retrieve and execute your boot file. If you used the example program above, the screen will display
BOOTP is here!!!

Connecting and Configuring the Analyzer
Setting Up LAN Features with Wizards
An IBasic LAN wizard program is included with the analyzer to assist users in setting up the LAN features. It is located on the Example Program Disk, part number 08714-10003, under the name lan_wiz.
A Windows-based LAN wizard program is also included with the analyzer to assist users in setting up the LAN features. It is located on the Example Program Disk, part number 08714-10003, under the name wiz871x.exe.
It is necessary to set up the analyzer’s IP address and SCPI socket port number before using this program.


Accessing the Analyzer's Web Pages
This page left intentionally blank.

Accessing the Analyzer's Web Pages
Your analyzer has built-in web pages that are accessible with a web browser such as Netscape Navigator or Microsoft® Internet Explorer. These web pages contain links to general product information, selected on-line documentation, benchmarks, information about your analyzer, and a list of Agilent Technologies offices. You can also e-mail us with your comments and feedback on the Agilent Technologies 87xx family of analyzers.
Before you can access your analyzer with a web browser, you need to connect and configure your analyzer as described in Chapter 1, “Connecting and Configuring the Analyzer.”
If your analyzer is directly connected to a PC, without the use of a hub or a larger network, then you probably need to disable the proxy server in the browser. This is because most web browsers are configured to use proxy servers for accessing web pages. If your analyzer is directly connected to your computer, your computer cannot find the proxy server.
If you are communicating to your analyzer over a LAN, then the proxy setting can be left as it is.
About This Chapter

Accessing the Analyzer's Web Pages Accessing the Analyzer with Your Web Browser
To access your analyzer, start your web browser and connect to http://<hostname> where is the hostname that has been assigned to the IP address of your analyzer. If you are making a connection to the analyzer without using a domain name system (DNS) server, you can use http://<IP address>, where is the IP address of your analyzer. You can also use the IP address form when using a DNS server.
When you are connected to your analyzer, a web page will appear with the following information links:
Click on the hyperlinks (any underlined words) to browse through the analyzer's pages. See Figure 2-1.
The rest of this chapter explains some of the areas you can browse in further detail.

Accessing the Analyzer's Web Pages Accessing the Analyzer with Your Web Browser
Figure 2-1 Analyzer Web Page


Accessing the Analyzer's Web Pages Accessing the Analyzer with Your Web Browser
Clicking on Get a current screen snapshot shows an exact copy of your analyzer's current screen image. Use your web browser's “reload” or “refresh” function to get the most current screen image.
NOTE Before capturing the screen image with your web browser, you may wish to customize the look of the image using the menu on your analyzer. (See your analyzer's User's Guide for more information.) In particular, you may want to choose to create a white background, especially if you plan to print the page from your web browser. See Figure 2-2.
Color Options · Inverse Video

Accessing the Analyzer's Web Pages Accessing the Analyzer with Your Web Browser
Figure 2-2 Screen Snapshot


Accessing the Analyzer's Web Pages Accessing the Analyzer with Your Web Browser
Clicking on Control the Analyzer with SCPI Commands launches a Java applet. This applet creates a command-entry dialog box. You can control your analyzer over the LAN by entering SCPI commands in this dialog box. See Figure 2-3. Commands or queries are sent to the analyzer by entering the SCPI mnemonic in the SCPI Command: area, and the response from the analyzer is displayed in the Response Messages: area.
Example commands are provided on this web page as well as a link to the SCPI command reference.
It may be helpful to save frequently-sent SCPI command strings in a separate ASCII file. These commands can then be cut and pasted from the ASCII file into the command line of the dialog box, and edited, if necessary, before sending them to the analyzer.

Accessing the Analyzer's Web Pages Accessing the Analyzer with Your Web Browser
Figure 2-3 SCPI Command Screen


Accessing the Analyzer's Web Pages Accessing the Analyzer with Your Web Browser
Clicking on Examine your analyzer's configuration brings up a screen of information that is equivalent to pressing
SYSTEM OPTIONS Service Instrument Info
on the analyzer. This screen shows the model and serial number of your analyzer, the firmware revision, installed options, and the amount of memory.
This section provides selected portions of your analyzer's documentation on-line, as well as benchmark information and information about product upgrades and options.
The following list shows the links currently available on this page:
If there are additional portions of the analyzer's documentation that you think would be helpful to have on-line, please contact us via e-mail. Click on “Contact Agilent Technologies” and “Send us your feedback!” from your analyzer's web page.

Accessing the Analyzer's Web Pages Accessing the Analyzer with Your Web Browser
The links in this area provide generic information about the Agilent Technologies 871xE family of analyzers. New features, compatibility issues, and available options are included here.
At the bottom of every web page in the analyzer, you'll find the following links:


Printing About This Chapter
Your analyzer can print directly to an HP LaserJet printer on your network. In order to print to a LAN printer, your analyzer must be communicating on the network. Refer to Chapter 1, “Connecting and Configuring the Analyzer,” on page 1-1 if you have not yet connected and configured your analyzer.
The HP LaserJet 4 and HP LaserJet 5 families of printers are compatible with your analyzer for printing directly via a point-to-point connection or over your network. These newer printers allow you to enter the printer's IP address directly from the analyzer front panel and do not require a boot server computer. Your printer should have a JetDirect LAN card installed.

Printing Configuring the Printer
Refer to your printer's documentation for instructions on how to set up your printer for LAN usage. Typically, you will need to contact your network administrator to assign a unique IP address for your printer. Your printer software will configure the printer with the assigned IP address each time it is turned on.

Printing Configuring the Analyzer for Printing to a LAN Printer
To set up your analyzer to print to a LAN printer:
HARDCOPY Select Copy Port
Figure 3-1 Selecting and Configuring the LAN Printer

Select

Printing Configuring the Analyzer for Printing to a LAN Printer
LAN Printr IP Addr
Prior Menu Define PCL5

Printing If You Have Trouble Printing


Accessing the Analyzer's File System Using FTP About This Chapter
This chapter shows you how to access the analyzer's file system using file transfer protocol (FTP). This chapter provides two simple examples: one example copies a file to the analyzer from your computer, and the other retrieves a file from the analyzer. The last section of this chapter contains a summary of commonly used ftp commands.
FTP File Transfer Protocol: a standardized service that provides methods to remotely transfer files among different computers and operating systems. The FTP service is implemented by many different computer applications, including programs named ftp.
ftp The name given to many different computer programs, each implementing File Transfer Protocol (FTP). Programs with the name ftp are available for Windows 95, Windows NT, and Unix, for example.
ftp The letters you type to start a program named ftp.
This chapter assumes that your analyzer is physically connected to your local area network. If it is not connected, refer to “Connecting the Analyzer to the LAN” on page 1- 5 for information on how to connect the system.
When you access the analyzer, you will have read and write access to the analyzer's file system (except for some files in the dynamic “data” disk, which are described in “The Dynamic Data Disk” on page 5- 2).
This caution also applies to file system access performed via SCPI commands using LAN, GPIB, or IBASIC.

Accessing the Analyzer's File System Using FTP
Using FTP to Access the Analyzer
If you are using a UNIX workstation, you have built-in networking software that includes ftp. The same is true if you are operating under Windows 95. If you are operating under Windows 3.1, you will need to have additional networking software that includes ftp.
To access the analyzer's file system using FTP and the ftp utility
ftp 223.15.2.44
200 Port command okay 150 Opening data connection for LIST / drwx 2 root sys 1024 Oct 9 int drwx 2 root sys 1024 Oct 9 nvram drwx 2 root sys 1024 Oct 9 ram drwx 2 root sys 1024 Oct 9 data 226 File sent OK

Accessing the Analyzer's File System Using FTP Using FTP to Access the Analyzer
The first character in the first field indicates the entry type. A “d” indicates that the entry is a directory. A “–” indicates that the entry is an ordinary file.
The next nine characters in the first field are interpreted as three sets of three bits each. The first three bits identify access permissions for the user (rwx). The second three bits are left blank. The final three bits identify the file type:
You can read and write files to:
The data directory is a dynamic data disk with files that are linked directly to analyzer operations. See “The Dynamic Data Disk” on page 5- 2 for information on accessing and using this directory.

Accessing the Analyzer's File System Using FTP
Using FTP to Access the Analyzer
You can copy files from your computer to your analyzer. For instance, you may want to develop an IBASIC program on your computer and then copy it to the analyzer so that you can run it from the front panel of the analyzer.
This example copies a file, “ib_prog”, from your computer to the analyzer's nvram disk:
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password. The username and password pair must be one of the entries in the analyzer’s access list. Refer to “Managing User Names and Passwords” on page 1- 13 for details.
You can now recall and run the program from the front panel of your analyzer.
SAVE RECALL Select Disk Non-Vol RAM Disk
Prior Menu Programs · Recall Program Run

Accessing the Analyzer's File System Using FTP Using FTP to Access the Analyzer
NOTE When copying files from a UNIX environment to the analyzer, files that do not meet the DOS file-naming criteria (no more than eight (8) characters in filename, with no more than three (3) characters in extension) will be truncated to comply. For example, if you copy a file from UNIX named “ibasic_program.abcd”, it will appear as “ibasic_p.abc” on the analyzer. There will be no indication from ftp that this has occurred.
You can copy files from your analyzer to your computer. For instance, you may want to retrieve saved measurement data from your analyzer (or a group of analyzers) for statistical analysis on your computer. In another scenario, you may have automated your measurement system using an IBASIC program to save data or instrument states to the analyzer's RAM disk. Your remote computer could asynchronously copy and delete files from the RAM disk, back up data, and prevent the RAM disk from filling up.
You may also want to copy instrument states and calibrations to your computer as a backup, eliminating the need for backups on floppy disks. Analyzer files can also be saved to a remote computer using NFS (see Chapter 7, “Using the Network File System (NFS),” on page 7-1).
This example copies a file “STATE2.STA” from your analyzer's nvram disk to a directory on your computer or workstation.
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password.

Accessing the Analyzer's File System Using FTP
Using FTP to Access the Analyzer

Accessing the Analyzer's File System Using FTP Commonly Used FTP Commands
The exact commands you use within ftp depend on the software. If you are not familiar with your ftp software, type “?” or “help” at the ftp prompt to see a list of commands.
The following table provides a list and brief description of some commonly used ftp commands. See “The FTP Command” on page 9- 6 for a summary of ftp.

Accessing the Analyzer's File System Using FTP
Commonly Used FTP Commands
ascii Sets the file transfer type to ASCII.
binary Sets the file transfer type to binary.
bye Closes the connection to the host and exits ftp.
cd remote_directory Sets the working directory on the host to remote_directory.
delete remote_file Deletes remote_file or empty remote_directory.
dir [remote_directory]
Lists the contents of the specified remote_directory. If remote_directory is unspecified, the contents of the current remote directory are listed.
get remote_file [local_file]
Copies remote_file to local_file. If local_file is unspecified, ftp uses the remote_file name as the local_file name.
help Provides a list of ftp commands.
help command Provides a brief description of command.
lcd [local_directory] Sets the local working directory to local_directory.
ls [remote_directory]
Lists the contents of the specified remote_directory. If the remote_directory is unspecified, the contents of the current remote directory are listed.
Copies remote_file to the local system. If globbing is enabled, globbing metacharacters are expanded. If local_file is unspecified, ftp uses the remote_file name as the local_file name.
Copies local_file to remote file. If remote_file is unspecified, ftp uses the local_file name as the remote_file name. If globbing is enabled, globbing characters are expanded.
put local_file [remote_file]
Copies local_file to remote file. If remote_file is unspecified, ftp uses the local_file name as the remote_file name.
quit Closes the connection to the host and exits ftp.

Accessing the Analyzer's File System Using FTP Using GUI FTP Software
There are versions of FTP programs available with a graphical user interface (GUI). These programs can make transferring files between the analyzer and your PC a simple “drag and drop” operation.
This example copies a file, “ib_prog”, from your computer to the analyzer's nvram disk.

Accessing the Analyzer's File System Using FTP
Using GUI FTP Software
10.To drag and drop multiple files, hold down the Ctrl key on your PC while selecting files with the mouse. When you drag and drop, your entire selection will be transferred to the analyzer.
11.You can also transfer files from the analyzer to your computer by dragging files in the other direction.


Accessing the Analyzer's Dynamic Data Disk The Dynamic Data Disk
Your analyzer has an ftp directory called “data,” which is a dynamic data disk. The files in this directory trigger analyzer operations. For example, you can put an instrument state into this directory and the analyzer will automatically recall this state. You can do the same with an IBASIC program: copy it to the analyzer's data directory and it will automatically run. You can also transfer a screen-image file from the analyzer in either GIF, PCX, or HP-GL format.
The following files make up the contents of the dynamic data disk:
Table 5-1 Contents of the Dynamic Data Disk
File File Type Description
readme.txt ASCII This file contains a brief description of each file in this directory.
state.sta1 binary This file contains the analyzer's current instrument state settings. Instrument state settings consist of all the stimulus and response parameters that set up the analyzer to make a specific measurement including markers, limit lines, and memory traces. Instrument state information is saved and recalled for both measurement channels. You can either retrieve this information from the analyzer, or you can put another analyzer's instrument state information into this file, which will cause the analyzer to immediately enter the new instrument state.
cal.sta1 binary This file contains the analyzer's current calibration and instrument state settings. The measurement calibration information is the measurement correction data that the analyzer creates when you make a calibration. Measurement calibration information is saved and recalled for both measurement channels. You can either retrieve this information from the analyzer, or you can put another analyzer's calibration and instrument state information into this file, which will cause the analyzer to immediately enter the new cal and instrument state.

Accessing the Analyzer's Dynamic Data Disk
The Dynamic Data Disk
File File Type Description
data.sta2 binary This file contains the measurement data for both measurement channels. You can either retrieve this information from the analyzer, or you can put data trace information from another analyzer into this file.
tset_cal.cal1 binary For use with multiport test sets only. This file contains the test set calibration data that currently resides on the analyzer's non-volatile RAM disk. You can either retrieve this information from the analyzer, or you can put test set calibration data into this file.
prog.bas2 ASCII This file contains the currently loaded IBASIC program. You can either retrieve the program that is currently in this file, or copy a new program to this file.
prog_run.bas2 ASCII This file accepts a copy of an IBASIC program, copies it to prog.bas, and immediately runs the program.
prog_run.scp2 ASCII This file accepts a copy of a file containing SCPI commands and immediately executes the commands.
screen.hgl3 ASCII This file contains the current screen image in HP-GL format. It is available for uploading to a file on your computer.
screen.gif binary This file contains the current screen image in GIF format. It is available for uploading to a file on your computer.
screen.pcx3 binary This file contains the current screen image in PCX format. It is available for uploading to a file on your computer.
screen_m.hgl3 ASCII This file contains the current screen image, as well as the current softkey menu, in HP-GL format. It is available for uploading to a file on your computer.
screen_m.pcx4 binary This file contains the current screen image, as well as the current softkey menu, in PCX format. It is available for uploading to a file on your computer.

Accessing the Analyzer's Dynamic Data Disk The Dynamic Data Disk
File File Type Description
screen_m.gif4 binary This file contains the current screen image, as well as the current softkey menu, in GIF format. It is available for uploading to a file on your computer.
parm_all.txt5 ASCII This file contains a listing of all of the instrument's operating parameters in ASCII text format.
parm_screen.txt5 ASCII This file contains the information in the current operating parameters screen in ASCII text format.
trace1.prn6 ASCII This file contains the measurement channel 1 measurement data in ASCII spreadsheet format.
trace2.prn6 ASCII This file contains the measurement channel 2 measurement data in ASCII spreadsheet format.
trace1.s1p6 ASCII This file contains the measurement channel 1 measurement data in Touchstone format.
trace2.s1p6 ASCII This file contains the measurement channel 2 measurement data in Touchstone format.
1. See “Saving and Recalling Analyzer States” on page 5-5 for information on how to use this file. 2. See “Copying Programs to and from the Analyzer” on page 5-7 for information on how to use this file. 3. See “Copying a Screen Image to a Local File” on page 5-10 for information on how to use this file. 4. See “Copying a Screen Image to a Local File” on page 5-10 for information on how to use this file. 5. See “Copying Instrument Parameters in ASCII Text Format” on page 5-13 for information on how to use this file. 6. See “Retrieving Measurement Data in ASCII Format” on page 5-14 for information on how to use this file.

Accessing the Analyzer's Dynamic Data Disk
Saving and Recalling Analyzer States
This section describes how to use the state.sta, cal.sta, and data.sta files that reside in the data directory of the analyzer. See Table 5-1 on page 5-2 for a brief description of each of these files.
You may have a particular instrument state set up on an analyzer and would like to set up that state on one or more additional analyzers. To do this you should do the following:
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password. See “Managing User Names and Passwords” on page 1-13 for instructions on how to do this.
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password.

Accessing the Analyzer's Dynamic Data Disk Saving and Recalling Analyzer States
The above procedure can be performed with the cal.sta and data.sta files as well.
CAUTION When transferring *.sta files between instruments with different model numbers and/or option configurations, it is possible that some instrument state settings will not be compatible. For example, if you try to put an instrument state with a stop frequency of 3 GHz into an Agilent Technologies 8712ET/ES, the instrument will limit the frequency to 1.3 GHz (its high frequency limit). When you transfer this file over ftp, you will not receive any warning or indicator that this has occurred.
NOTE When copying files from a UNIX environment to the analyzer, files that do not meet the DOS file-naming criteria (no more than eight [8] characters in filename, with no more than three [3] characters in extension) will be truncated, and will not generate an error message. For example, if you copy a file from UNIX named "ibasic_program.abcd", the destination file name will be ibasic_p.abc.

Accessing the Analyzer's Dynamic Data Disk Copying Programs to and from the Analyzer
This section describes how to use the prog.bas, prog_run.bas, and prog_run.scp files that reside in the data directory of the analyzer. See Table 5-1 on page 5-2 for a brief description of each of these files.
You can create IBASIC programs on your computer and copy them to your analyzer. Conversely, you can retrieve a copy of the currently loaded IBASIC program from your analyzer to your computer. From there you might want to copy it into another analyzer, or edit it.
To copy an IBASIC program file named "ib_prog" to the analyzer:
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password. See “Using FTP to Access the Analyzer” on page 4-3 for instructions on how to do this.

Accessing the Analyzer's Dynamic Data Disk Copying Programs to and from the Analyzer
SYSTEM OPTIONS IBASIC Run
To copy the currently loaded IBASIC program from your analyzer to your computer:
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password. See “Using FTP to Access the Analyzer” on page 4-3 for instructions on how to do this.
get prog.bas newfile

Accessing the Analyzer's Dynamic Data Disk Copying Programs to and from the Analyzer
You can create an IBASIC program or a file with a list of SCPI commands on your computer, and then copy and automatically run it by using the prog_run.bas and prog_run.scp files.
To copy the IBASIC program ib_prog to the analyzer and immediately run it, follow the instructions below:
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password. See “Using FTP to Access the Analyzer” on page 4-3 for instructions on how to do this.
The file you copy to "prog_run.scp" should simply be a list of SCPI commands. Following is an example file containing SCPI commands:
These commands set the analyzer to measure transmission, place a marker on the maximum point, and then set the measurement trace to autoscale mode.

Accessing the Analyzer's Dynamic Data Disk Copying a Screen Image to a Local File
This section describes how to copy a screen image from the analyzer to a file on your computer.
To copy a screen image to your computer
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password. See “Using FTP to Access the Analyzer” on page 4-3 for instructions on how to do this.
NOTE The appearance of the image you retrieve will depend on the selections in the Define Hardcopy menu on your analyzer, as well as the file you choose to retrieve from the data directory. For example, Figure 5-1 was retrieved with the "screen.hgl" file, using the analyzer's default hardcopy mode, which includes the measurement graph and the marker table. Figure 5-2 was retrieved with the analyzer's hardcopy mode defined as Graph Only, using the "screen_m.hgl" file. Figure 5-2 also includes the analyzer’s softkeys. See Table 5-1 on page 5-2 for the filenames of screen images.

Accessing the Analyzer's Dynamic Data Disk
Copying a Screen Image to a Local File
Figure 5-1 Screen Image with Marker Table Shown

Accessing the Analyzer's Dynamic Data Disk Copying a Screen Image to a Local File
Figure 5-2 Screen Image without Marker Table

Accessing the Analyzer's Dynamic Data Disk Copying Instrument Parameters in ASCII Text Format
This section describes how to use the parm_all.txt and parm_screen.txt files that reside in the data directory of the analyzer. See Table 5-1 on page 5-2 for a brief description of each of these files.
Instrument parameters can be viewed on the analyzer by pressing
. Several screens of information are available (the exact number depends upon your model number and option configuration). These screens describe all the current settings and configurations of the analyzer. You can copy all of these screens using "parm_all.txt," or just the current screen with "parm_screen.txt" to an ASCII file on your computer.
SYSTEM OPTIONS Operating Parameters
To copy instrument operating parameters
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password. See “Using FTP to Access the Analyzer” on page 4-3 for instructions on how to do this.
get parm_all.txt newfile

Accessing the Analyzer's Dynamic Data Disk Retrieving Measurement Data in ASCII Format
This section describes how to use the trace1.prn, trace2.prn, trace1.s1p and trace2.s1p files that reside in the data directory of the analyzer. See Table 5-1 on page 5-2 for a brief description of each of these files.
Measurement data can be saved in ASCII formats that are compatible with many personal computer software packages. The files with the ".prn" extension in the data directory contain measurement data in a two-column format that can be directly imported into Lotus® 1-2-3®, as well as other spreadsheet programs. The files with an ".s1p" extension in the data directory contain measurement data in a format that can be directly imported into CAE programs such as EEsof's Microwave Design System (MDS) and Advanced Design System (ADS).
To retrieve measurement data
ftp my8712 user name password
where my8712 is the , user name is your login name, and password is your user password. See “Using FTP to Access the Analyzer” on page 4-3 for instructions on how to do this.
get trace1.prn newfile

Accessing the Analyzer's Dynamic Data Disk Importing Graphics or Data into PC Applications
Some PC word processor and spreadsheet programs provide methods to import graphics and data from a LAN connection using the internet http: protocol. The following examples show how to import a screen image from your analyzer into Microsoft® Word 97, and how to import trace data from your analyzer into Microsoft® Excel 97.
This example steps you through importing a picture of the analyzer's current screen into a word processor. These steps were developed using Microsoft® Word 97. Other word processing programs may or may not have the same capability, and will probably have different steps:
in the File name box.
You can also set the Windows operating system to refresh pages (or files) every time you access them. From your Windows desktop, select Start>Settings>Control Panel>Internet. Under Temporary Internet Files, select Settings. Under Check for Newer Versions of Stored Pages, select Every Visit to the Page.

Accessing the Analyzer's Dynamic Data Disk Importing Graphics or Data into PC Applications
This example steps you through importing the analyzer's current trace data into a spreadsheet program. These steps were developed using Microsoft® Excel 97. Other spreadsheet programs may or may not have the same capability, and will probably have different steps:
in the File name box.
NOTE If you have previously imported trace data from the trace1.s1p file (or whichever of the four trace data files you are attempting to access), your computer may reload the file from its memory. To ensure that the screen snapshot is actually the current trace data displayed on your analyzer, click the Refresh Current Page icon on the Web toolbar of Excel.
You can also set the Windows operating system to refresh pages (or files) every time you access them. From your Windows desktop, select Start>Settings>Control Panel>Internet. Under Temporary Internet Files, select Settings. Under Check for Newer Versions of Stored Pages, select Every Visit to the Page.

Accessing the Analyzer's Dynamic Data Disk Importing Graphics or Data into PC Applications
Figure 5-3 Trace Data and Screen Snapshot Imported into a Spreadsheet



Controlling the Analyzer via the LAN About This Chapter
This chapter contains important information about how to control your analyzer. It includes a number of example programs, and has the following sections:

Controlling the Analyzer via the LAN Using Socket Programming to Control Your Analyzer
Your analyzer implements a sockets applications programming interface (API) compatible with Berkeley sockets, Winsock, and other standard sockets APIs. You can write programs using sockets to control your analyzer by sending SCPI commands to a socket connection you create in your program. Refer to “Controlling the Analyzer with a C Program” on page 6-9 and “Controlling the Analyzer with a Java™ Applet” on page 6-33 for example programs using sockets to control the analyzer.
Before you can use socket programming, you must set up your analyzer by setting a socket port number. Follow the steps below to set up a port number for socket programming:
SYSTEM OPTIONS LAN SCPI Sock. Setup Socket Port No.
Port 5025 is set up for you as a default value.
If you would like to select or restore the default value for the
Socket Port No. SYSTEM OPTIONS LAN SCPI Sock. Setup Restore Defaults
, press

Controlling the Analyzer via the LAN Controlling the Analyzer via the Dynamic Data Disk
You can control your analyzer by accessing the data directory over the LAN. With this method you can do the following:
See “The Dynamic Data Disk” on page 5-2 and see “IBASIC Communication across the LAN” on page 6-24.

Controlling the Analyzer via the LAN Entering Commands Directly with Telnet
Before connecting to your analyzer using telnet, you must have connected and configured your analyzer as described in Chapter 1, “Connecting and Configuring the Analyzer.”
Using telnet to send commands to your analyzer works in a similar way to communicating over GPIB; you establish a connection with the analyzer, and then send or receive information using SCPI commands.
The syntax of the telnet command is
telnet 15.4.45.255
A brief message appears confirming the connection, and tells you the escape sequence for breaking the connection:
Trying... Connected to 15.4.45.255. Escape character is '^]'. login:

Controlling the Analyzer via the LAN Entering Commands Directly with Telnet
When you connect to the analyzer, the analyzer will prompt you for a user name and password. Enter a user name and password that appear in the user access list. Refer to “Managing User Names and Passwords” on page 1-13 for information about the user access list. After you have entered a valid user name and password, the analyzer will display a welcome message and a command prompt:
Welcome to the HP871xE Network Analyzer at SCPI>
The analyzer is now ready to accept your SCPI commands. As you type analyzer SCPI commands, query results appear on the next line. When you are done, break the telnet connection using the escape character (in this case Ctrl and “]”), and type quit. To send a “Device Clear” command to the analyzer, enter Ctrl c. The analyzer will respond with the following message:
See the detailed example that follows.
SCPI>

Controlling the Analyzer via the LAN Entering Commands Directly with Telnet
To connect to the analyzer named "my8712", enter the following command:
The computer responds with the following messages:
Trying... Connected to my8712 Escape character is '^]'. login:
Enter a valid user name. The analyzer responds with the following prompt:
password:
Enter the password for the user name given above. The analyzer responds with a welcome message and the SCPI prompt:
Welcome to the HP871xE Network Analyzer at 15.4.45.255 SCPI>
You can immediately enter programming (SCPI) commands. Typical commands might be:
The above example sets the analyzer to measure transmission, places a marker on the maximum point, and then queries the analyzer for the amplitude of the marker.
You need to press Enter after typing in each command. After pressing Enter on the last line in the example above, the analyzer returns the amplitude level of the marker to your computer and displays it on the next line. For example, after typing CALC1:MARK:POIN? and pressing Enter, the computer would display:
When you are done, close the telnet connection. Enter the escape character to get the telnet prompt. The escape character (Ctrl and "]" in this example) does not print.
At the telnet prompt, type quit or close.
telnet my8712

Controlling the Analyzer via the LAN Entering Commands Directly with Telnet
The telnet connection closes and you see your regular prompt.
Connection closed. $
To remedy this, you need to change your telnet connection to "character-by-character" mode. This can be accomplished in most systems by escaping out of telnet to the telnet> prompt and then typing mode char. If this does not work, consult your telnet program's documentation for how to change to "character-by-character" mode.

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
The following example program demonstrates simple socket programming. It is written in C, and compiles in the HP-UX UNIX environment, or the WIN32 environment. It is portable to other UNIX environments with only minor changes.
In UNIX, LAN communication via sockets is very similar to reading or writing a file. The only difference is the openSocket() routine, which uses a few network library routines to create the TCP/IP network connection. Once this connection is created, the standard fread() and fwrite() routines are used for network communication.
In Windows, the routines send() and recv() must be used, since fread() and fwrite() may not work on sockets.
The program reads the analyzer's hostname from the command line, followed by the SCPI command. It then opens a socket to the analyzer using port 5025, and sends the command. If the command appears to be a query, the program queries the analyzer for a response, and prints the response.
This example program can also be used as a utility to talk to your analyzer from the command prompt on your UNIX workstation or Windows 95 PC, or from within a script.

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
/* **************************************************************************** * $Header: lanio.c,v 1.5 96/10/04 20:29:32 roger Exp $ * $Revision: 1.5 $ * $Date: 96/10/04 20:29:32 $ * * $Contributor: LSID, MID $ * * $Description: Functions to talk to an HP 8711C/12C/13C/14C/30A * analyzer via TCP/IP. Uses command-line arguments. * * A TCP/IP connection to port 5025 is established and * the resultant file descriptor is used to "talk" to the * instrument using regular socket I/O mechanisms. $ * 871xC Examples: * * Query the center frequency: * lanio 15.4.43.5 'sens:freq:cent?' * * Select Lin Mag format: * lanio my8711.sr.hp.com 'CALC:FORM MLIN' * * Take a sweep, wait for end of sweep, move mkr to peak and query x pos: * lanio my8711 ':abort;INIT:CONT OFF;:INIT1;*wai; :calc:mark:max; x?' * * Query X and Y values of marker 1 and marker 2 (assumes they are on): * lanio my8711 'calc:mark1:x?;y?; :calc:mark2:x?;y?' * * Check for errors (gets one error): * lanio my8711 'syst:err?' * * Send a list of commands from a file, and number them: * cat scpi_cmds | lanio -n my8711 * **************************************************************************** * * This program compiles and runs under * - HP-UX 9.05 (UNIX), using HP cc or gcc: * + cc -Aa -O -o lanio lanio.c * + gcc -Wall -O -o lanio lanio.c * * - Windows 95, using Microsoft Visual C++ 4.0 Standard Edition * - Windows NT 3.51, using Microsoft Visual C++ 4.0 * + Be sure to add WSOCK32.LIB to your list of libraries! * + Compile both lanio.c and getopt.c * + Consider re-naming the files to lanio.cpp and getopt.cpp * * Considerations: * - On UNIX systems, file I/O can be used on network sockets. * This makes programming very convenient, since routines like * getc(), fgets(), fscanf() and fprintf() can be used. These * routines typically use the lower level read() and write() calls. * * - In the Windows environment, file operations such as read(), write(), * and close() cannot be assumed to work correctly when applied to * sockets. Instead, the functions send() and recv() MUST be used. */

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
/* Support both Win32 and HP-UX UNIX environment */ #ifdef _WIN32 /* Visual C++ 4.0 will define this */ # define WINSOCK #endif
#ifndef WINSOCK # ifndef _HPUX_SOURCE # define _HPUX_SOURCE # endif #endif
#include /* for fprintf and NULL */ #include /* for memcpy and memset */ #include /* for malloc(), atol() */ #include /* for strerror */
#include
# ifndef _WINSOCKAPI_ # include // BSD-style socket functions # endif
#else /* UNIX with BSD sockets */
# include /* for connect and socket*/ # include /* for sockaddr_in */ # include /* for gethostbyname */
# define SOCKET_ERROR (-1) # define INVALID_SOCKET (-1)
#endif /* WINSOCK */
#ifdef WINSOCK /* Declared in getopt.c. See example programs disk. */ extern char *optarg; extern int optind; extern int getopt(int argc, char * const argv[], const char* optstring); #else # include /* for getopt(3C) */ #endif
#define COMMAND_ERROR (1) #define NO_CMD_ERROR (0)
#define SCPI_PORT 5025 #define INPUT_BUF_SIZE (64*1024)
/************************************************************************** * Display usage **************************************************************************/ static void usage(char *basename) { fprintf(stderr,"Usage: %s [-nqu] []\n", basename);
#ifdef WINSOCK · typedef int SOCKET;

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
fprintf(stderr," %s [-nqu] < stdin\n", basename); fprintf(stderr," -n, number output lines\n"); fprintf(stderr," -q, quiet; do NOT echo lines\n"); fprintf(stderr," -e, show messages in error queue when done\n"); }
#ifdef WINSOCK int init_winsock(void) { WORD wVersionRequested; WSADATA wsaData; int err; wVersionRequested = MAKEWORD(1, 1); wVersionRequested = MAKEWORD(2, 0);
err = WSAStartup(wVersionRequested, &wsaData);
if (err != 0) { /* Tell the user that we couldn't find a useable */ /* winsock.dll. */ fprintf(stderr, "Cannot initialize Winsock 1.1.\n"); return -1; } return 0; }
int close_winsock(void) { WSACleanup(); return 0; } #endif /* WINSOCK */
/*************************************************************************** * > $Function: openSocket$ * * $Description: open a TCP/IP socket connection to the instrument $ * * $Parameters: $ * (const char *) hostname Network name of instrument. * This can be in dotted decimal notation. * (int) portNumber The TCP/IP port to talk to. * Use 5025 for the SCPI port. * * $Return: (int) A file descriptor similar to open(1).$ * * $Errors: returns -1 if anything goes wrong $ * ***************************************************************************/ SOCKET openSocket(const char *hostname, int portNumber) { struct hostent *hostPtr; struct sockaddr_in peeraddr_in; SOCKET s;

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
memset(&peeraddr_in, 0, sizeof(struct sockaddr_in));
/***********************************************/ /* map the desired host name to internal form. */ /***********************************************/ hostPtr = gethostbyname(hostname); if (hostPtr == NULL) { fprintf(stderr,"unable to resolve hostname '%s'\n", hostname); return INVALID_SOCKET; }
/*******************/ /* create a socket */ /*******************/ s = socket(AF_INET, SOCK_STREAM, 0); if (s == INVALID_SOCKET) { fprintf(stderr,"unable to create socket to '%s': %s\n", hostname, strerror(errno)); return INVALID_SOCKET; }
memcpy(&peeraddr_in.sin_addr.s_addr, hostPtr->h_addr, hostPtr->h_length); peeraddr_in.sin_family = AF_INET; peeraddr_in.sin_port = htons((unsigned short)portNumber);
if (connect(s, (const struct sockaddr*)&peeraddr_in, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { fprintf(stderr,"unable to create socket to '%s': %s\n", hostname, strerror(errno)); return INVALID_SOCKET; }
/*************************************************************************** * > $Function: commandInstrument$ * * $Description: send a SCPI command to the instrument.$ * * $Parameters: $ * (FILE *) file pointer associated with TCP/IP socket. * (const char *command) . . SCPI command string. * $Return: (char *) a pointer to the result string. * * $Errors: returns 0 if send fails $ * ***************************************************************************/ int commandInstrument(SOCKET sock, const char *command) { int count;
return s; }

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
/* fprintf(stderr, "Sending \"%s\".\n", command); */ if (strchr(command, '\n') == NULL) { fprintf(stderr, "Warning: missing newline on command %s.\n", command); }
count = send(sock, command, strlen(command), 0); if (count == SOCKET_ERROR) { return COMMAND_ERROR; }
/************************************************************************** * recv_line(): similar to fgets(), but uses recv() **************************************************************************/ char * recv_line(SOCKET sock, char * result, int maxLength) { #ifdef WINSOCK int cur_length = 0; int count; char * ptr = result; int err = 1;
while (cur_length < maxLength) { /* Get a byte into ptr */ count = recv(sock, ptr, 1, 0);
/* If no chars to read, stop. */ if (count < 1) { break; } cur_length += count;
/* If we hit a newline, stop. */ if (*ptr == '\n') { ptr++; err = 0; break; } ptr++;
if (err) { return NULL; } else { return result; } #else /*********************************************************************** * Simpler UNIX version, using file I/O. recv() version works too. * This demonstrates how to use file I/O on sockets, in UNIX. ***********************************************************************/ FILE * instFile; instFile = fdopen(sock, "r+"); if (instFile == NULL)
return NO_CMD_ERROR; } · } · *ptr = '\0';

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
{ fprintf(stderr, "Unable to create FILE * structure : %s\n", strerror(errno)); exit(2); } return fgets(result, maxLength, instFile); #endif }
/*************************************************************************** * > $Function: queryInstrument$ * * $Description: send a SCPI command to the instrument, return a response.$ * * $Parameters: $ * (FILE *) file pointer associated with TCP/IP socket. * (const char *command) . . SCPI command string. * (char *result) where to put the result. * (size_t) maxLength maximum size of result array in bytes. * * $Return: (long) The number of bytes in result buffer. * * $Errors: returns 0 if anything goes wrong. $ * ***************************************************************************/ long queryInstrument(SOCKET sock, const char *command, char *result, size_t maxLength) { long ch; char tmp_buf[8]; long resultBytes = 0; int command_err; int count;
/********************************************************* * Send command to analyzer *********************************************************/ command_err = commandInstrument(sock, command); if (command_err) return COMMAND_ERROR;
/********************************************************* * Read response from analyzer ********************************************************/ count = recv(sock, tmp_buf, 1, 0); /* read 1 char */ ch = tmp_buf[0];
if ((count < 1) || (ch == EOF) || (ch == '\n')) { *result = '\0'; /* null terminate result for ascii */ return 0; }
/* use a do-while so we can break out */ do { if (ch == '#')

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
{ /* binary data encountered - figure out what it is */ long numDigits; long numBytes = 0; /* char length[10]; */
count = recv(sock, tmp_buf, 1, 0); /* read 1 char */ ch = tmp_buf[0]; if ((count < 1) || (ch == EOF)) break; /* End of file */
if (ch < '0' || ch > '9') break; /* unexpected char */ numDigits = ch - '0';
if (numDigits) { /* read numDigits bytes into result string. */ count = recv(sock, result, (int)numDigits, 0); result[count] = 0; /* null terminate */ numBytes = atol(result); }
if (numBytes) { resultBytes = 0; /* Loop until we get all the bytes we requested. */ /* Each call seems to return up to 1457 bytes, on HP-UX 9.05 */ do { int rcount; rcount = recv(sock, result, (int)numBytes, 0); resultBytes += rcount; result += rcount; /* Advance pointer */ } while ( resultBytes < numBytes );
/************************************************************ * For LAN dumps, there is always an extra trailing newline * Since there is no EOI line. For ASCII dumps this is * great but for binary dumps, it is not needed. ***********************************************************/ if (resultBytes == numBytes) { char junk; count = recv(sock, &junk, 1, 0); } } else { /* indefinite block ... dump til we can an extra line feed */ do { if (recv_line(sock, result, maxLength) == NULL) break; if (strlen(result)==1 && *result == '\n') break; resultBytes += strlen(result); result += strlen(result); } while (1); } } else { /* ASCII response (not a binary block) */ *result = (char)ch;

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
if (recv_line(sock, result+1, maxLength-1) == NULL) return 0;
/* REMOVE trailing newline, if present. And terminate string. */ resultBytes = strlen(result); if (result[resultBytes-1] == '\n') resultBytes -= 1; result[resultBytes] = '\0'; } } while (0);
/************************************************************************* * > $Function: showErrors$ * * $Description: Query the SCPI error queue, until empty. Print results. $ * * $Return: (void) * *************************************************************************/ void showErrors(SOCKET sock) { const char * command = "SYST:ERR?\n"; char result_str[256];
do { queryInstrument(sock, command, result_str, sizeof(result_str)-1);
/****************************************************************** * Typical result_str: * -221,"Settings conflict; Frequency span reduced." * +0,"No error" * Don't bother decoding. ******************************************************************/ if (strncmp(result_str, "+0,", 3) == 0) { /* Matched +0,"No error" */ break; } puts(result_str); } while (1);
/*************************************************************************** * > $Function: isQuery$ * * $Description: Test current SCPI command to see if it a query. $ * * $Return: (unsigned char) . . . non-zero if command is a query. 0 if not. * ***************************************************************************/ unsigned char isQuery( char* cmd ) { unsigned char q = 0 ;
return resultBytes; } · }

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
/*********************************************************/ /* if the command has a '?' in it, use queryInstrument. */ /* otherwise, simply send the command. */ /* Actually, we must a little more specific so that */ /* marker value queries are treated as commands. */ /* Example: SENS:FREQ:CENT (CALC1:MARK1:X?) */ /*********************************************************/ if ( (query = strchr(cmd,'?')) != NULL) { /* Make sure we don't have a marker value query, or * any command with a '?' followed by a ')' character. * This kind of command is not a query from our point of view. * The analyzer does the query internally, and uses the result. */ query++ ; /* bump past '?' */ while (*query) { if (*query == ' ') /* attempt to ignore white spc */ query++ ; else break ; }
if ( *query != ')' ) { q = 1 ; } } return q ; }
/*************************************************************************** * > $Function: main$ * * $Description: Read command line arguments, and talk to analyzer. Send query results to stdout. $ * * $Return: (int) . . . non-zero if an error occurs * ***************************************************************************/ int main(int argc, char *argv[]) {
SOCKET instSock; char *charBuf = (char *) malloc(INPUT_BUF_SIZE); char *basename; int chr; char command[1024]; char *destination; unsigned char quiet = 0; unsigned char show_errs = 0; int number = 0;
basename = strrchr(argv[0], '/'); if (basename != NULL) basename++ ;
char *query ;

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
else basename = argv[0];
while ( ( chr = getopt(argc,argv,"qune")) != EOF ) switch (chr) { case 'q': quiet = 1; break; case 'n': number = 1; break ; case 'e': show_errs = 1; break ; case 'u': case '?': usage(basename); exit(1) ; }
/* now look for hostname and optional */ if (optind < argc) { destination = argv[optind++] ; strcpy(command, ""); if (optind < argc) { while (optind < argc) { /* provided; only one command string */ strcat(command, argv[optind++]); if (optind < argc) { strcat(command, " "); } else { strcat(command, "\n"); } } } else { /* Only provided; input on */ strcpy(command, "");
if (optind > argc) { usage(basename); exit(1); } } } else { /* no hostname! */ usage(basename); exit(1); }
/**********************************************/ /* open a socket connection to the instrument */ /**********************************************/ #ifdef WINSOCK if (init_winsock() != 0) { exit(1); } #endif /* WINSOCK */
instSock = openSocket(destination, SCPI_PORT); if (instSock == INVALID_SOCKET) {

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
fprintf(stderr, "Unable to open socket.\n"); return 1; } /* fprintf(stderr, "Socket opened.\n"); */
if (strlen(command) > 0) { /********************************************************/ /* if the command has a '?' in it, use queryInstrument. */ /* otherwise, simply send the command. */ /********************************************************/ if ( isQuery(command) ) { long bufBytes; bufBytes = queryInstrument(instSock, command, charBuf, INPUT_BUF_SIZE); if (!quiet) { fwrite(charBuf, bufBytes, 1, stdout); fwrite("\n", 1, 1, stdout) ; fflush(stdout); } } else { commandInstrument(instSock, command); } } else { /* read a line from */ while ( gets(charBuf) != NULL ) { if ( !strlen(charBuf) ) continue ;
if ( *charBuf == '#' || *charBuf == '!' ) continue ;
if (!quiet) { if (number) { char num[10]; sprintf(num,"%d: ",number); fwrite(num, strlen(num), 1, stdout); } fwrite(charBuf, strlen(charBuf), 1, stdout) ; fflush(stdout); }
if ( isQuery(charBuf) ) { long bufBytes;
/* Put the query response into the same buffer as the * command string appended after the null terminator. */
strcat(charBuf, "\n");

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
bufBytes = queryInstrument(instSock, charBuf, charBuf + strlen(charBuf) + 1, INPUT_BUF_SIZE -strlen(charBuf) ); if (!quiet) { fwrite(" ", 2, 1, stdout) ; fwrite(charBuf + strlen(charBuf)+1, bufBytes, 1, stdout); fwrite("\n", 1, 1, stdout) ; fflush(stdout); } } else { commandInstrument(instSock, charBuf); } if (number) number++; } }
if (show_errs) { showErrors(instSock); }
#ifdef WINSOCK closesocket(instSock); close_winsock(); #else close(instSock); #endif /* WINSOCK */
/* End of lanio.c */
return 0; }

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
NAME getopt - get option letter from argument vector
SYNOPSIS int getopt(int argc, char * const argv[], const char *optstring);
extern char *optarg; extern int optind, opterr, optopt;
DESCRIPTION getopt returns the next option letter in argv (starting from argv[1]) that matches a letter in optstring. optstring is a string of recognized option letters; if a letter is followed by a colon, the option is expected to have an argument that may or may not be separated from it by white space. optarg is set to point to the start of the option argument on return from getopt.
getopt places in optind the argv index of the next argument to be processed. The external variable optind is initialized to 1 before the first call to the function getopt.
When all options have been processed (i.e., up to the first non-option argument), getopt returns EOF. The special option -- can be used to delimit the end of the options; EOF is returned, and -- is skipped.
#include /* For NULL, EOF */ #include /* For strchr() */
char *optarg; /* Global argument pointer. */ int optind = 0; /* Global argv index. */
static char *scan = NULL; /* Private scan pointer. */
int getopt( int argc, char * const argv[], const char* optstring) { char c; char *posn;
if (scan == NULL || *scan == '\0') { if (optind == 0) optind++;
if (optind >= argc || argv[optind][0] != '-' || argv[optind][1] == '\0') return(EOF); if (strcmp(argv[optind], "--")==0) { optind++; return(EOF); }

Controlling the Analyzer via the LAN Controlling the Analyzer with a C Program
c = *scan++; posn = strchr(optstring, c); /* DDP */
if (posn == NULL || c == ':') { fprintf(stderr, "%s: unknown option -%c\n", argv[0], c); return('?'); }
posn++; if (*posn == ':') { if (*scan != '\0') { optarg = scan; scan = NULL; } else { optarg = argv[optind]; optind++; } }
optind++; } · return(c); · }

Controlling the Analyzer via the LAN IBASIC Communication across the LAN
You may need a way for an IBASIC program running on the analyzer to signal a remote computer that it has completed some operation.
IBASIC cannot communicate directly across LAN using the ASSIGN and OUTPUT or ENTER commands. However, IBASIC can use the following SCPI command to send a message to a remote computer via LAN:
DIAGnostic:COMMunicate:LAN:SEND ,,
This command opens a socket to the remote computer, and sends the specified string. The argument specifies the IP address of the remote computer. The argument specifies the port number to use. The is the message to be sent.
For example:
DIAGnostic:COMMunicate:LAN:SEND ‘15.4.40.49’,8001,’Ready!’
If the remote computer is not listening for a LAN connection at the specified port, this command will block, and wait for the remote computer to accept the connection. After about 75 seconds, it will time out. This is the standard TCP/IP timeout period.
The following IBASIC example program demonstrates LAN communication using IBASIC.
The section “Controlling Multiple Analyzers using a Perl Script” on page 6-28 shows an example of a program that monitors the LAN for a response from an IBASIC program.

Controlling the Analyzer via the LAN IBASIC Communication across the LAN
110 ! This program demonstrates how IBASIC can communicate
120 ! with a remote computer via LAN. This is done using a
130 ! SCPI command that sends a LAN message to the computer:
140 ! DIAG:COMM:LAN:SEND '15.4.40.49',8003,'Ready!'
150 ! 8003 is an arbitrary unused port number.
210 ! Initialize the instrument
230 ASSIGN @Na TO 800
240 OUTPUT @Na;"SYST:PRES;*WAI"
250 OUTPUT @Na;"SENS1:STAT ON; *WAI"
260 OUTPUT @Na;"POW1:MODE FIXed" ! Freq sweep
270 OUTPUT @Na;"DISP:ANN:FREQ1:MODE CSPAN"
280 OUTPUT @Na;"SENS1:FREQ:CENT 177e6;SPAN 200e6;*WAI"
290 ! Put sweep in hold
300 OUTPUT @Na;"ABOR;:INIT1:CONT OFF;*WAI"
310 ! Sync up with analyzer
360 ! Get serial number
370 OUTPUT @Na;"DIAG:SNUM?"
390 Snum$=Snum$[2,11] ! remove quotes
410 ! Begin infinite loop:
420 ! - Take sweep
430 ! - Compute bandwidth
440 ! - Send signal to computer

Controlling the Analyzer via the LAN IBASIC Communication across the LAN
460 Loop: !
470 DISP "Taking sweep..."
490 ! Take sweep, and wait for it to finish.
520 ! Autoscale trace to give feedback.
530 OUTPUT @Na;"DISP:WIND1:TRAC:Y:AUTO ONCE"
540 ! Perform a search for the -3 dB bandwidth of the filter
550 ! This function uses several markers to find 4 key values.
560 OUTPUT @Na;"CALC1:MARK:BWID -3;FUNC:RES?"
570 ! Read the four values: the bandwidth, center
580 ! frequency, Q and the insertion loss.
610 ! Signal computer that we are done,
620 ! so that it can come grab the meas results
640 ! Create a string that looks like this:
650 ! Ready!,"US36100007",6.159E+7,1.7248E+8,-1.6088
660 ! Could send any string. Could also save meas results to
670 ! a file, and send filename, and computer could FTP the file.
730 ! Send the message to the computer, via LAN
750 Cmd$="DIAG:COMM:LAN:SEND '15.4.40.49',8003,"&Msg$
770 DISP "Done with loop ";Count;" Continuing..."
790 ! Pause, and wait for computer to grab data.

Controlling the Analyzer via the LAN IBASIC Communication across the LAN
800 ! Computer will send 'PROG:STAT CONT' when ready
840 END
810 ! · 830 GOTO Loop

Controlling the Analyzer via the LAN Controlling Multiple Analyzers using a Perl Script
The following Perl script demonstrates how you can control a network of analyzers from your workstation.
The script downloads an IBASIC program to a group of analyzers. The IBASIC program makes a measurement, and then signals the computer that it needs service. (See the previous section, “IBASIC Communication across the LAN” on page 6-24 to see how the IBASIC program accomplishes this.)
The computer receives this signal, then queries the analyzer for measurement data, and then tells the IBASIC program to continue.
# # Perl script to listen on a port, and print received messages. # # This script is based on the "server" example in the # book "Programming perl" by O'Reilley & Associates, Inc. #
# require 'sys/socket.ph'; # Not needed on HP-UX require 'ctime.pl'; # Allow use of ctime() to get date
# Get the port number from the command line (first arg). # If no argument, default to a high-numbered port. # Users can use ports above 1024 or so. ($port) = @ARGV; $port = 8003 unless $port;
$AF_INET = 2; # from /usr/include/sys/socket.h $SOCK_STREAM = 1; # from /usr/include/sys/socket.h $PF_INET = $AF_INET; # from /usr/include/sys/socket.h
# Is this line noise? No, it's the pack format: # S = unsigned short, n = short in network order # a4 = 4 ascii characters, null padded, # x8 = 8 null bytes (?) $sockaddr = 'S n a4 x8';
#! /usr/bin/perl · chop($this_hostname = `hostname`);

Controlling the Analyzer via the LAN Controlling Multiple Analyzers using a Perl Script
($name, $alias, $proto) = getprotobyname('tcp');
# # Create arguments for bind() and connect() calls, below. # 0000 = Wildcard address # $thisport = pack($sockaddr, $AF_INET, $port, "\0\0\0\0");
select(NEW_SOCK); $| = 1; select(stdout);
# # Open a network connection via a socket # socket(SOCK, $PF_INET, $SOCK_STREAM, $proto) || die "cannot create socket: $!\n"; bind(SOCK, $thisport) || die "cannot bind socket: $!\n"; listen(SOCK, SOMAXCONN) || die "cannot listen socket: $!\n";
printf "Listening on port %d.\n", $port; # # for ($con = 1;; $con++) { # # Wait for incomming connections # $client_addr = accept(NEW_SOCK, SOCK) || die "cannot accept socket: $!\n";
# We have a connection! # printf("Accepted connection #$con!\n");
# # Here we used to call fork() to fork a child process. # However, this causes problems if the parent doesn't wait() # for the child -- zombie child processes are left behind! # To fix this, it might be better to exec() the child process # code so that it doesn't wait for the parent. # This way, we can handle multipe overlapping messages. # Even if we don't fork(), listen() will allow multiple # pending connections. # # if (($child = fork()) == 0) {
# # Get info about incoming connection, and print it # ($af, $port, $ipaddr) = unpack($sockaddr, $client_addr); @ipaddr = unpack('C4', $ipaddr); $IP_addr = sprintf("%d.%d.%d.%d", @ipaddr[0], @ipaddr[1], @ipaddr[2], @ipaddr[3]); $Date = &ctime(time()); # "Mon Oct 21 21:52:22 PDT 1996\n" printf "%d: Got message from %s at %s", $con, $IP_addr, $Date;
# # Read incoming message, and save it to a file

Controlling the Analyzer via the LAN Controlling Multiple Analyzers using a Perl Script
# Append it to a file named data.IP_addr giving # each analyzer its own data file. # $file = "./data.$IP_addr"; # print "Routing input to $file.\n"; open(FILE_OUT, ">> $file") || die "Cannot open $file: $!"; print FILE_OUT $Date; while () { print FILE_OUT "$_"; } close(NEW_SOCK); close(FILE_OUT);
# Tell the instrument's IBASIC program to continue system("lanio $IP_addr 'PROGram:STATe CONT'");
} · exit 0;

Controlling the Analyzer via the LAN Controlling the Analyzer using HP VEE
To control your analyzer via LAN using HP VEE, click on the VEE menu titled "I/O." Then select "To/From Socket" and position the I/O object box on the screen. Fill in the following fields:
For faster troubleshooting, you may want to set the timeout to a smaller number. If the hostname you enter doesn't work, try using the IP address of your analyzer (example: 15.4.43.5). Using the IP address rather than the hostname may also be faster. See Figure 6-1 for an example of an HP VEE screen.

Controlling the Analyzer via the LAN Controlling the Analyzer using HP VEE
Figure 6-1 Sample HP VEE Screen


Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
The following example program demonstrates simple socket programming with Java. It is written in Java programming language, and will compile with Java compilers versions 1.0 and above.
This program is on the Example Programs Disk that was shipped with your analyzer. Please read the README file on the Example Programs Disk before using this program.
import java.awt.*; import java.io.*; import java.net.*; import java.applet.*;
// This is a SCPI Demo to demonstrate how one can communicate with the // HP87xx network analyzer with a JAVA capable browser. This is the // Main class for the SCPI Demo. This applet will need Socks.class to // support the I/O commands and a ScpiDemo.html for a browser to load // the applet.
// To use this applet, either compile this applet with a Java compiler // or use the existing compiled classes. copy ScpiDemo.class, // Socks.class and ScpiDemo.html to a floppy. Insert the floppy into // your instrument. Load up a browser on your computer and do the // following:
// 1. Load this URL in your browser:
// http://<Your instrument's IP address or name>/int/ScpiDemo.html
// 2. There should be two text windows show up in the browser: // The top one is the SCPI response text area for any response // coming back from the instrument. The bottom one is for you // to enter a SCPI command. Type in a SCPI command and hit enter. // If the command expects a response, it will show up in the top // window.
public class ScpiDemo extends java.applet.Applet implements Runnable {
TextField scpiCommand = new TextField();
TextArea scpiResponse = new TextArea(10, 60);
Thread responseThread; · Socks sck; · URL appletBase;

Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
Panel southPanel = new Panel();
// Initialize the applets
public void init() {
// Set up font type for both panels
Font font = new Font("TimesRoman", Font.BOLD,14);
scpiResponse.setFont(font);
scpiCommand.setFont(font);
scpiResponse.appendText("SCPI Demo Program: Response messages\n");
scpiResponse.appendText(" \n");
// This routine is called whenever the applet is actived
public void start() {
// Open the sockets if not already opened
sck.OpenSockets();
// Start a response thread
// This routine is called whenever the applet is out of scope
// i.e. minimize browser
public void stop() {
// Close all local sockets
sck.CloseSockets();
// Kill the response thread
// Action for sending out scpi commands

Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
// This routine is called whenever a command is received from the
// SCPI command panel.
public boolean action(Event evt, Object what) {
// If this is the correct target
if (evt.target == scpiCommand) {
// Get the scpi command
String str = scpiCommand.getText();
// Send it out to the Scpi socket
sck.ScpiWriteLine(str);
// Query for any error
sck.ScpiWriteLine("syst:err?");
// Start/Stop a Response thread to display the response strings
private void StartResponseThread(boolean start) {
// Start a response thread
responseThread = new Thread(this);
responseThread.start();
// Kill the response thread
// Response thread running
public void run() {
String str = ""; // Initialize str to null

Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
// Clear the error queue before starting the thread
// in case if there's any error messages from the previous actions
while ( str.indexOf("No error") == -1 ) {
sck.ScpiWriteLine("syst:err?");
str = sck.ScpiReadLine();
// Start receiving response or error messages
str = sck.ScpiReadLine();
// If response messages is "No error", do no display it
if ( str.indexOf("No error") == -1 ) {
// Display the error message in the Response panel
scpiResponse.appendText(str+"\n");
// Query for any error messages
sck.ScpiWriteLine("syst:err?");
// Set up and open the SCPI sockets
private void SetupSockets() {
// Get server url
// Open the sockets
sck = new Socks(appletBase);
// Set up the SCPI command and response panels
private void SetupPanels() {
// Set up SCPI command panel
southPanel.setLayout(new GridLayout(1, 1));

Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
p = new Panel();
p.setLayout(new BorderLayout());
p.add("West", new Label("SCPI command:"));
p.add("Center", scpiCommand);
southPanel.add(p);
// Set up the Response panel
// Socks class is responsible for open/close/read/write operations
// from the predefined socket ports. For this example program,
// the only port used is 5025 for the SCPI port.
class Socks extends java.applet.Applet {
// To add a new socket, add a constant here, // change MAX_NUM_OF_SOCKETS
// then, edit the constructor for the new socket.
public final int SCPI=0;
private final int MAX_NUM_OF_SOCKETS=1;
// 5025 is the dedicated port number for HP8711's SCPI port
private final int SCPI_PORT = 5025;
private Socket[] sock = new Socket[MAX_NUM_OF_SOCKETS];
private DataInputStream[] sockIn=new DataInputStream[MAX_NUM_OF_SOCKETS];
private PrintStream[] sockOut = new PrintStream[MAX_NUM_OF_SOCKETS];
private int[] port = new int[MAX_NUM_OF_SOCKETS];

Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
private boolean[] sockOpen = new boolean[MAX_NUM_OF_SOCKETS];
// Set up for port array.
// Initialize the sock array
for ( int i = 0; i < MAX_NUM_OF_SOCKETS; i++ ) {
//***** Sockects open/close routines
// Open the socket(s) if not already opened
// Open each socket if possible
for ( int i = 0; i < MAX_NUM_OF_SOCKETS; i++ ) {
if ( !sockOpen[i] ) {
sock[i] = new Socket(appletBase.getHost(),port[i]);
sockIn[i]=new DataInputStream(sock[i].getInputStream());
sockOut[i]=new PrintStream(sock[i].getOutputStream());
if ( (sock[i] != null) && (sockIn[i] != null) &&
(sockOut[i] != null) ) {

Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
catch (IOException e) {
System.out.println("Sock, Open Error "+e.getMessage());
// Close the socket(s) if opened
public void CloseSocket(int s)
if ( sockOpen[s] == true ) {
// write blank line to exit servers elegantly
sockOut[s].println();
sockOut[s].flush();
sockIn[s].close();
sockOut[s].close();
sock[s].close();
catch (IOException e) {
System.out.println("Sock, Close Error "+e.getMessage());
// Close all sockets
for ( int i=0; i < MAX_NUM_OF_SOCKETS; i++ ) {

Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
// Return the status of the socket, open or close.
public boolean SockOpen(int s)
//************* Socket I/O routines.
//*** I/O routines for SCPI socket
// Write an ASCII string with carriage return to SCPI socket
public void ScpiWriteLine(String command)
if ( SockOpen(SCPI) ) {
sockOut[SCPI].println(command);
sockOut[SCPI].flush();
// Read an ASCII string, terminated with carriage return
// from SCPI socket public String ScpiReadLine()
if ( SockOpen(SCPI) ) {
return sockIn[SCPI].readLine();
catch (IOException e) {
System.out.println("Scpi Read Line Error "+e.getMessage());

Controlling the Analyzer via the LAN Controlling the Analyzer with a Java™ Applet
// Read a byte from SCPI socket
if ( SockOpen(SCPI) ) {
return sockIn[SCPI].readByte();
catch (IOException e) {
System.out.println("Scpi Read Byte Error "+e.getMessage());

Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
SICL LAN is a LAN protocol using the Standard Instrument Control Library (SICL). It provides control of your analyzer over the LAN, using a variety of computing platforms, I/O interfaces, and operating systems. With SICL LAN, you control your remote analyzer over the LAN with the same methods you use for a local analyzer connected directly to the controller with the GPIB.
Your analyzer implements a SICL LAN server. To control the analyzer, you need a SICL LAN client application running on a computer or workstation that is connected to the analyzer over a LAN. Typical applications implementing a SICL LAN client include:
At the time of the publication of this manual, National Instruments’ VISA does not support the VXI-11 Instrument Protocol. However, future revisions of National Instruments’ VISA will support the VX-11 protocol. Contact National Instruments for their release date.
SICL LAN can be used with Windows 95, Windows 98, Windows NT, and HP-UX.

Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
Before you set up your analyzer as a SICL LAN server, you will need to collect some information about your HP VISA/SICL LAN client application. Record the following parameters from your HP VISA/SICL LAN client application after you have set it up:
GPIB name The GPIB name is the name given to a device used to communicate with the analyzer. hpib and gpib are typical GPIB names. Your analyzer is shipped with gpib as the GPIB name. The GPIB name is the same as the remote SICL address.
GPIB logical unit The logical unit number is a unique integer assigned to the device to be controlled using SICL LAN. Your analyzer is shipped with the logical unit number set to 7.
Numbers 0 through 30, excluding 21, are valid logical unit numbers for your analyzer. Logical unit number 21 is used for the analyzer’s internal emulation mode. (If you are using HP VEE and SICL LAN, the logical unit number is limited to the range of 0-8.)
GPIB device address The device address is the GPIB device address (bus address) assigned to the device to be controlled using SICL LAN. Your analyzer is shipped with the GPIB device address set to 18. You can enter any address from 0 to 1024 as an GPIB address.
The SICL LAN server uses the GPIB name, GPIB logical unit number, and GPIB address configuration on the SICL LAN client to communicate with the client. You must match these parameters exactly when you set up the SICL LAN client and server.

Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
After you have collected the required information from the SICL LAN client, perform the following steps to set up your analyzer as a SICL LAN server:
SYSTEM OPTIONS LAN SICL LAN Setup GPIB Name
, enter the GPIB name from the SICL LAN client, and press . Press if you need to replace the existing entry.
Press , enter the GPIB logical unit number from the SICL LAN client, and press .
GPIB Log. Unit
Press , enter the GPIB device address from the SICL LAN client, and press .
GPIB Dev. Address
If you want to restore the default settings, press .
The descriptions here are based on HP’s VISA revision G.02.02, model number HP2094G. A copy of HP’s VISA can be found on the following website:
http://www.tm.agilent.com/tmo/software/English/HP_IO_Libraries html.
These descriptions assume a LAN connection between your computer and network analyzer. They are not written for the GPIB-to-LAN gateway.
Press · ENTER Clear Entry · Restore Defaults

Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
10.Enter a VISA Interface name, such as GPIB1.
11.Enter the hostname or IP address of your analyzer in the Hostname field, such as my8712.hp.com
12.Enter a remote SICL address, such as gpib1.
13.Set the LAN interface to match the defined LAN client (lan1 in this example).
14.Select OK.
15.Close I/O Configuration by selecting OK.
Before you can use SICL LAN with HP VEE, you need to set up HP VISA/SICL LAN I/O drivers for use with your HP VEE application. Consult your HP VEE documentation for information how to do this.
The logical unit number is the same as the interface select code (ISC). HP VEE reserves ISC values 9--18, and does not allow you to use them for SICL/LAN communications with your analyzer. HP VEE also does not allow any ISC values higher than 18.
After you have the VISA/SICL LAN I/O drivers installed, perform the steps below to set up HP VEE to control your analyzer:

Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
Figure 6-2 I/O|Instrument Manager Menu


Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
Figure 6-3 Adding Your Analyzer as an HP VEE Device


Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
To send SCPI commands to the analyzer, select I/O|Instrument Manager, and the GPIB device just added. Select Direct I/O. You can now type SCPI commands in the command window, and they will be sent over the LAN to your analyzer.
Figure 6-4 Sending SCPI Commands Directly to Your Analyzer

See the HP VEE example program for more details.

Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
Before you can use HP BASIC for Windows with SICL LAN, you need to set up HP VISA/SICL LAN I/O drivers for use with your HP BASIC applications. Consult your HP BASIC documentation for information how to do this.
To set up SICL LAN for HP BASIC, add the following statement to the AUTOST program on your PC (all on a single line):
LOAD BIN “HPIBS;DEV lan[analyzer IP address]:HP-IB name TIME 30 ISC 7”
Replace analyzer IP address with the IP address of your analyzer, HP-IB name with the GPIB name given to your analyzer, and 7 with the logical unit number.
For example, the following LOAD statement should be added to your AUTOST program for the parameters listed below:
analyzer IP address 12.22.344.225
analyzer GPIB name test02
logical unit number 7
timeout value (seconds) 30
LOAD statement (all on a single line)
LOAD BIN “HPIBS;DEV lan[12.22.344.225]:test02 TIME 30 ISC 7”

Controlling the Analyzer via the LAN Controlling the Analyzer using SICL LAN
Consult your HP BASIC documentation to learn how to load the SICL driver for HP BASIC.
After the SICL driver is loaded, you control your analyzer using commands such as the following:
where 18 is the device address for the analyzer.
See the HP BASIC example program in this chapter for more information.
Controlling Your Analyzer with SICL LAN and HP BASIC for UNIX (Rocky Mountain BASIC)
Before you can use HP Rocky Mountain Basic (HP RMB) with SICL LAN, you will need to set up the HP SICL LAN I/O drivers for HPRMB. Consult your system administrator for details.
Create a .rmbrc file in your root directory of your UNIX workstation with the following entries:
SELECTIVE_OPEN=ON Interface 8= “lan[analyzer IP address]:HPIB name”;NORMAL
Replace analyzer IP address with the IP address of your analyzer, and GPIB name with the GPIB name given to your analyzer. Also replace the “8” of Interface 8 with the logical unit number. Consult your HPRMB documentation for the exact syntax.
After your SICL driver is configured correctly on your UNIX workstation, you control your analyzer using commands such as the following:
where 18 is the device address for the analyzer.


Using the Network File System (NFS) About This Chapter
This chapter provides a short introduction to the network file system (NFS), and describes how to configure your analyzer to use NFS. The following topics are included:

Using the Network File System (NFS)
Network file system (NFS) is a client/server application that provides access to remote1 files and directories using the LAN. With NFS, remote files and directories behave like local2 files and directories. The remote file system can be used from your analyzer's menu as if it were a local device. The remote file system can be part of a PC, workstation, or other computing device.
NFS allows you to save test data from your analyzer directly to a remote directory; the remote machine does not have to initiate an ftp session to retrieve the data. This can make saving data in an automated environment, with many analyzers running independently, very easy. As a result, NFS simplifies central management of analyzer files and directories.
NFS requires an NFS server and an NFS client. The server is a computer that makes its local file system available to NFS clients, using a process called exporting (or sharing). An NFS client is a computer that uses the file system made available by the NFS server using a process called mounting. The file system that is exported by the NFS server is mounted by the NFS client and behaves like part of the client’s local file system. When using NFS, your analyzer comprises the NFS client part of the Network File System. You must provide a workstation, PC or other computer to serve as the NFS server, and it must include an NFS server application.
Introduction to NFS · Save/Recall

Using the Network File System (NFS) Introduction to NFS
Current implementations of NFS use transmission control protocol (TCP) as the transport protocol1 over the network. TCP is a reliable protocol designed to provide guaranteed data delivery. Your analyzer uses TCP/IP over the LAN.
NFS also uses remote procedure call (RPC) protocol. RPC is a client/server protocol providing remote services to a local application (program). The local application can request and execute a procedure on a remote machine, pass data to the remote procedure, and retrieve data from the remote procedure. RPC is a key component of the NFS.

Using the Network File System (NFS)
Your analyzer implements the client side of the network file system (NFS). As an NFS client, your analyzer accesses the remote1 file system by mounting the remote file system. If the remote file system is mounted successfully, it can be accessed from your analyzer's menu as if it were a local2 device.
To configure the NFS client on your analyzer, you will need to set up an NFS server on the remote system. NFS servers are readily available with most UNIX operating systems. To use NFS with a PC, you will need NFS server software for the PC. Consult your network administrator about obtaining an NFS server for your PC.
NFS uses remote procedure call (RPC) authentication for file access permissions. To be able to read and write to your remote file system, you must enter a user ID and a group ID for your analyzer. A default user ID (2001) and a default group ID (100) are assigned for you before the analyzer is shipped. If the defaults do not work for you, consult your network administrator about obtaining a user ID and group ID.
Setting Up NFS · Save/Recall

Using the Network File System (NFS) Setting Up NFS
Before setting up the NFS client on your analyzer, do the following:
The host name and IP address for the remote system (the server).
The name of your remote file system or subdirectory.
The user ID and the group ID to allow access to the remote host
file system.
A local name to assign to the remote file system. Choose a local
name which is short and easy to remember. Append a colon (:) or some other special character if you need to distinguish a device name from a subdirectory name on your menu.
Save/Recall

Using the Network File System (NFS)
The file system that is exported by the NFS server is mounted by the NFS client, and behaves like part of the local file system. Perform the following procedure to set up your analyzer to mount to a remote host file system:
SYSTEM OPTIONS LAN NFS Device Setup
To retype the file system names, first press [Cancel], then press [Remote IP Addr/Host] to start from the beginning.
At this point, the analyzer will attempt to mount the remote file system. If the remote file system is successfully mounted, the analyzer will display
NFS Mount to successful
where is the remote host name or IP address.

Using the Network File System (NFS) Setting Up NFS
Enter NFS Setup · Clear Entry Enter

Using the Network File System (NFS)
To find out if a remote file system has been successfully mounted, press
SYSTEM OPTIONS LAN NFS Device Setup NFS Device Table
The analyzer will display an NFS device table containing three columns (left to right):
Press to view an expanded version of your local file system.
Press to view an expanded version of your remote file system.
Perform the following steps to set up authentication IDs for your NFS client:
SYSTEM OPTIONS LAN NFS Device Setup Authentication

Using the Network File System (NFS) Setting Up NFS
Perform the following steps to unmount a remote file system from your analyzer:
SYSTEM OPTIONS LAN Unmount NFS Device
If the device is successfully unmounted, the device will be removed from the displayed NFS device table. If the NFS device is not present, an error message will be displayed after the analyzer times out, and the device will be removed from the NFS device table. The device will also be removed from the NFS device table if it is unmounted unsuccessfully due to disconnected links.

Using the Network File System (NFS)
You can add one or more host names of other network devices to a local HOSTS file. This file associates host IP addresses with host names, so that you can use the host name instead of the host IP address to mount and automount Network File System (NFS) devices.
On powerup, your analyzer will load the local HOSTS file from non-volatile RAM. You can then use the host name in
SYSTEM OPTIONS LAN NFS Device Setup SYSTEM OPTIONS LAN NFS Device Setup Automount Dev Setup
You can create a local HOSTS file using an ASCII text editor on your computer or workstation. Save the file locally, and transfer it to your analyzer’s non-volatile RAM disk using a 3.5” disk, FTP or NFS. Refer to “Using FTP to Access the Analyzer” on page 4-3 for information about disk or FTP file transfers.
The HOSTS file is an ASCII text file formatted according to the following rules:
Setting Up NFS · and

Using the Network File System (NFS) Setting Up NFS
The following is an example of a valid HOSTS file:
# This is a sample hosts file
15.4.45.232 host1 # John Doe's workstation
15.4.45.233 host2 # Jane Doe's PC
If you place the above HOSTS file in non-volatile RAM and power cycle your analyzer, you can use the name host1 to mount an NFS device by name instead of the IP address 15.4.45.232.

Using the Network File System (NFS)
NFS Automount allows your analyzer to automatically mount one or more NFS devices on power-up without user intervention.
Follow the steps below to add a device to the automount device table:
SYSTEM OPTIONS LAN NFS Device Setup Automount Setup
a. Press to use the default local file system name.
b. To use your own local file system name, press and enter a unique local file system name. Press to confirm your entry.

Using the Network File System (NFS) Setting Up NFS
Perform the following steps to verify that the NFS device has been successfully added to the automount device table:
SYSTEM OPTIONS LAN NFS Device Setup Automount Setup
The automount device table has three columns. The first column lists the device numbers. The second column lists the given name for your local file system. The third column lists remote file system names and the remote host IP addresses. The lines in the automount device table are listed in the order they were entered.
Perform the following steps to remove an NFS device from the automount table:
SYSTEM OPTIONS LAN NFS Device Setup Automount Setup
The numbers on the automount device table match the device numbers displayed on the softkeys. If the table is empty, you do not have any NFS devices in the automount device table.

Using the Network File System (NFS)
To access file systems with NFS, you will have to set up at least one NFS device. See “Configuring the Analyzer as an NFS Client” on page 7-5 in this chapter for details on how to do this. The following procedures assume you have already set up at least one NFS device.
To save or recall a state, a program, or measurement data to or from an NFS device, you must first select an NFS device from the [Select Disk] menu. Since NFS provides transparent access to the remote file system, the procedure for saving or recalling an instrument state or program remotely is the same as that used to save or recall an instrument state or program locally. See Chapter 4, “Accessing the Analyzer's File System Using FTP,” as well as “Copying Programs to and from the Analyzer” on page 5-7 and “Saving and Recalling Analyzer States” on page 5-5 for information on how to save or recall a state or program to a local device. Also see “Saving and Recalling Measurement Results” in Chapter 4 of the User’s Guide for your analyzer.
To select an NFS device do the following:
SAVE RECALL Select Disk NFS Device
The analyzer displays a two-column NFS device table. The first column contains the device numbers which correspond to the device numbers on the front panel softkeys. The second column contains the local path or device names for the NFS devices.
if there is a network problem, or if the remote device is not available. You will have to set up the NFS device again before using it with save/recall.
Setting Up NFS · Non-Vol RAM Disk

Using the Network File System (NFS) Setting Up NFS
Some of the remote files may show the word unknown in the file attributes column. This may be due to the lack of appropriate file access permissions. NFS authentication must be set up correctly for you to have permission to access certain files on your remote NFS device. To make sure that all required files are accessible from your analyzer, confirm that your NFS authentication user ID and group ID match the corresponding IDs on the remote system. See “Configuring the Analyzer as an NFS Client” on page 7-5 for details.
Perform the following steps to copy files from a local device to a remote NFS device:
SAVE RECALL Select Disk
SAVE RECALL File Utilities
Copy to NFS Device
The device name and file name are case-sensitive, and you can append the file name with either a '/' or '\' between the device name and the file name.
If you encounter a file access error, make sure that your network and the remote system are working correctly and that the NFS authentication IDs are set up correctly.
Copy File · Enter · Enter

Using the Network File System (NFS)
Perform the following steps to copy files from a remote NFS device to a local device:
SAVE RECALL Select Disk NFS Device
SAVE RECALL File Utilities
Copy to NonVol RAM Copy to Vol RAM Copy to 3.5” Disk
The device name and file name are case-sensitive, and you can append the file name with either a '/' or '\' between the device name and the file name.
If you encounter a file access error, make sure that your network and the remote system are working correctly and that the NFS authentication IDs are set up correctly.


General Troubleshooting About This Chapter
This chapter provides troubleshooting information for the LAN interface. It has four sections:

General Troubleshooting Troubleshooting the Initial Connection
Getting the analyzer to work with your network often requires detailed knowledge of your local network software. This section attempts to help you with some common problems. Contact your network administrator for additional assistance.
The analyzer LAN interface does not need or include any proprietary driver software. It was designed to operate with common network utilities and drivers.
Either a hardware problem or a software problem can prevent the analyzer's remote file server from communicating over the LAN. The following common problems may be encountered:
Timeout errors such as "Device Timeout," "File Timeout," and "Operation Timeout," are symptoms of one or both of the following problems:
To increase your timeout period, refer to your computer documentation for instructions. Contact your LAN administrator if problems continue.
If packets are routinely lost, proceed to the troubleshooting section in this chapter relating to your network.
If you have problems copying files out of or into the analyzer, you might be experiencing timeout problems. See the previous section on "Timeout Errors."

General Troubleshooting Troubleshooting the Initial Connection
If you have just installed and configured the LAN interface and you have never been able to access the analyzer via ftp or telnet, go directly to “Ping the Analyzer from Your Computer or Workstation” on page 8-5.
If you have previously been able to access the analyzer via ftp or telnet and now cannot do so, check the following:
J /etc/inetd.conf
PCs:
J dependent network files
If you know or suspect that something has changed on your network, consult with your network administrator.
J /etc/hosts · J /etc/services

General Troubleshooting Troubleshooting the Initial Connection
Verify the communications link between the computer and the analyzer remote file server using the ping utility.
From a UNIX workstation, type:
ping hostname 64 10
where 64 is the packet size, and 10 is the number of packets transmitted.
From a DOS or Windows environment, type:
where 10 is the number of echo requests.
A normal response to the ping will be a total of 9, 10, or possibly 11 packets received with a minimal average round-trip time. The minimal average will be different from network to network. LAN traffic will cause the round-trip time to vary widely.
Because the number of packets received depends on your network traffic and integrity, the normal number might be different for your network.
A normal response to the ping will be a total of 9, 10, or possibly 11 packets received if 10 echo requests were specified.
Because the number of packets received depends on your network traffic and integrity, the normal number might be different for your network.
ping hostname 10

General Troubleshooting Troubleshooting the Initial Connection
No packets received indicates no response from a ping.
If you received 1 to 8 packets back, there is probably a problem with the network. Because the number of packets received depends on your network traffic and integrity, the number might be different for your network.
Use a LAN analyzer or LAN management software to monitor activity and determine where bottlenecks or other problems are occurring. The analyzer will still function, but communications over the LAN will be slower.
On a single-client/single-server network, the most likely cause of intermittent response to an echo request is a hardware problem with the LAN module installed in the PC, the cable, or the analyzer. To check the analyzer performance, refer to the analyzer’s Service Guide.
LAN Port Setup

General Troubleshooting Troubleshooting the Initial Connection
The last section helped you verify connectivity from your computer to your analyzer. This section helps you verify the connectivity path in the opposite direction — from your analyzer to your computer.
To check for connectivity to your computer or any other device on your network from your analyzer:
SYSTEM OPTIONS LAN LAN Port Setup Diagnostic Utilities
IP Address to Ping
Perform Ping

General Troubleshooting Troubleshooting the Initial Connection
A normal response after pressing is shown below. The analyzer successfully attempts four cycles of communications with the indicated network device, and displays the response time for each cycle.
Figure 8-1 Example of a Successful Ping

Perform Ping

General Troubleshooting Troubleshooting the Initial Connection
If communication is not established with the selected device within one second for each cycle, the display will look like this:
Figure 8-2 Example of a Failed Ping


General Troubleshooting Troubleshooting the Initial Connection
Your analyzer can capture a wide range of network statistics to help find network problems if they occur. This collection and recording is called network statistic capturing. It captures the network statistics at the moment that this feature is enabled, like a snapshot. If you enable this feature, the analyzer will capture network statistics in the following categories:
To enable network statistic capturing, press
SYSTEM OPTIONS LAN LAN Port Setup Diagnostic Utilities Netstat Capture
If you enable network statistic capturing, a file named NETSTAT.CAP will be maintained on your non-volatile RAM disk. NETSTAT.CAP is an ASCII text file containing network statistics for your analyzer. This information could be useful if network problems occur, and you should have a printed copy of this file available if you call Agilent Technologies for support with a network problem.
The following is an example of a NETSTAT.CAP file:
->hostShow - host names
hostname inet address aliases
HP871xE 15.4.45.2xx
localhost 127.0.0.1
nvBootLine 0.0.0.0
->ifShow "lo0" - statistic for interface lo0
lo (unit number 0):
Flags: (0x69) UP LOOPBACK ARP RUNNING Internet address: 127.0.0.1 Netmask 0xff000000 Subnetmask 0xff000000 Metric is 0 Maximum Transfer Unit size is 4096

General Troubleshooting Troubleshooting the Initial Connection
24 packets received; 24 packets sent 0 input errors; 0 output errors 0 collisions
->ifShow "sn0" - statistic for interface sn0 sn (unit number 0):
Flags: (0x63) UP BROADCAST ARP RUNNING Internet address: 15.4.45.2xx Broadcast address: 15.4.47.255 Netmask 0xff000000 Subnetmask 0xfffff800 Ethernet address is 00:60:b0:84:xx:xx Metric is 0 Maximum Transfer Unit size is 1500 1348 packets received; 0 packets sent 0 input errors; 0 output errors 0 collisions
->inetstatShow - activities for internet protocol sockets Active Internet connections (including servers)
PCB Proto Recv-Q Send-Q Local Address Foreign Address (state) c1fe8e8c TCP 0 0 0.0.0.0.1024 0.0.0.0.0 LISTEN c1fe818c TCP 0 0 0.0.0.0.5025 0.0.0.0.0 LISTEN c1fe8a0c TCP 0 0 0.0.0.0.23 0.0.0.0.0 LISTEN c1fe8b0c TCP 0 0 0.0.0.0.80 0.0.0.0.0 LISTEN c1fe840c TCP 0 0 0.0.0.0.998 0.0.0.0.0 LISTEN c1fe8e0c TCP 0 0 0.0.0.0.1000 0.0.0.0.0 LISTEN c1fe870c TCP 0 0 0.0.0.0.111 0.0.0.0.0 LISTEN c1fe8f8c TCP 0 0 0.0.0.0.513 0.0.0.0.0 LISTEN c1fe940c TCP 0 0 0.0.0.0.21 0.0.0.0.0 LISTEN c1fe830c UDP 0 0 0.0.0.0.1003 0.0.0.0.0 c1fe868c UDP 0 0 0.0.0.0.111 0.0.0.0.0 c1fe860c UDP 0 0 0.0.0.0.1004 0.0.0.0.0 c1fe858c UDP 0 0 0.0.0.0.1005 0.0.0.0.0 c1fe850c UDP 0 0 0.0.0.0.1006 0.0.0.0.0 c1fe848c UDP 0 0 0.0.0.0.1007 0.0.0.0.0 c1fe838c UDP 0 0 0.0.0.0.2049 0.0.0.0.0 c1fe828c UDP 0 0 0.0.0.0.69 0.0.0.0.0 c1fe900c UDP 0 0 127.0.0.1.1024 127.0.0.1.17185 c1fe908c UDP 0 0 0.0.0.0.17185 0.0.0.0.0 ->tcpstatShown - TCP statistics
0 packet sent 0 data packet (0 byte) 0 data packet (0 byte) retransmitted 0 ack-only packet (0 delayed) 0 URG only packet 0 window probe packet

General Troubleshooting Troubleshooting the Initial Connection
0 window update packet 0 control packet 0 packet received 0 ack (for 0 byte) 0 duplicate ack 0 ack for unsent data 0 packet (0 byte) received in-sequence 0 completely duplicate packet (0 byte) 0 packet with some dup. data (0 byte duped) 0 out-of-order packet (0 byte) 0 packet (0 byte) of data after window 0 window probe 0 window update packet 0 packet received after close 0 discarded for bad checksum 0 discarded for bad header offset field 0 discarded because packet too short 0 connection request 0 connection accept 0 connection established (including accepts) 1 connection closed (including 0 drop) 0 embryonic connection dropped 0 segment updated rtt (of 0 attempt) 0 retransmit timeout 0 connection dropped by rexmit timeout 0 persist timeout 0 keepalive timeout 0 keepalive probe sent 0 connection dropped by keepalive
->udpstatShow - UDP statistics
368 total packets 346 input packets 22 output packets 0 incomplete header 0 bad data length field 0 bad checksum 321 broadcasts received with no ports 0 full socket
->ipstatShow - IP statistics
total 415 badsum 0 tooshort 0 toosmall 0 badhlen 0 badlen 0 fragments 0 fragdropped 0 fragtimeout 0 forward 0 cantforward 67 redirectsent 0

General Troubleshooting Troubleshooting the Initial Connection
->icmpstatShow - ICMP statistics ICMP:
2 calls to icmp_error 0 error not generated because old message was icmp Output histogram: destination unreachable: 2 0 message with bad code fields 0 message < minimum length 0 bad checksum 0 message with bad length
->arptabShow - arp entries ->mbufShow - memory buffer statistics type number
FREE : 37 DATA : 0 HEADER : 0 SOCKET : 0 PCB : 28 RTABLE : 3 HTABLE : 0 ATABLE : 0 SONAME : 0 ZOMBIE : 0 SOOPTS : 0 FTABLE : 0 RIGHTS : 0 IFADDR : 2 TOTAL : 70
number of times failed to find space: 0
number of times waited for space: 0
number of times drained protocols for space: 0
->routeShow - network routes

General Troubleshooting Troubleshooting the Initial Connection
destination gateway flags Refcnt Use Interface
0.0.0.0 15.4.45.2xx 1 0 0 sn0 15.4.40.0 15.4.45.2xx 1 1 24 sn0
destination gateway flags Refcnt Use Interface
127.0.0.1 127.0.0.1 5 1 0 lo0

General Troubleshooting Subnets and Gateways
When you configure your analyzer as described in “Configuring the Analyzer” on page 1-8, you should enter a value for Gateway IP Address and Subnet Mask if they are required with your LAN. Your network administrator can tell you if you need to enter these values, and will supply you with the values to enter. This section provides some basic information on subnets and gateways.
In large systems, the LAN is often split into subnets. Each subnet is isolated from other subnets by a router. Each subnet uses a unique and contiguous range of IP addresses for its hosts. The router acts as the "gateway" between the subnets. The router decides whether or not LAN traffic is allowed from one subnet to another.
See Figure 8-3 on page 8-16. This illustration shows a portion of a LAN system that includes a router (gateway) and two subnets, each including two hosts.
Each host is a unique device (such as a computer or an analyzer) with a unique IP address. The router also has a unique IP address.

General Troubleshooting Subnets and Gateways
Figure 8-3 Example of a LAN with Two Subnets
In order for a host on Subnet 1 to communicate with a host on Subnet 2, there are two configuration parameters that must be set up correctly:
These parameters are used by the analyzer (host) and the router to define the IP address ranges used by each subnet, and by the router.
Refer again to Figure 8-3 for the following discussion:
You would like Analyzer A to communicate with Computer C. Note that they exist on different subnets, separated by a router.

General Troubleshooting Subnets and Gateways
Before Analyzer A tries to access Computer C, the analyzer looks at its subnet mask setting, and uses this mask to determine if Computer C is on the same LAN subnet.
If the analyzer determines from the subnet mask setting that Computer C is on the same subnet, then the analyzer establishes direct communication with Computer C (it sends LAN packets directly to Computer C's IP address).
If the analyzer determines that Computer C is on a different subnet from the analyzer (see Figure 8-3), then the analyzer must send LAN packets to the router's IP address. The router then forwards the packets to Computer C.
If your analyzer and computer are on separate LAN segments (subnets), separated by a gateway router, and you are experiencing difficulties in communicating, try the following solutions:
Gateway IP Address Subnet Mask LAN Port Setup
See “Configuring the Analyzer” on page 1-8.
Your network administrator should be able to tell you whether or not you need to enter these parameters, and should provide you with the correct numbers if you do.

General Troubleshooting Solutions to Common Problems
This section describes common problems you may encounter when using the analyzer on a LAN. It assumes you have been able to connect to the analyzer in the past. If this is not so, refer to the previous sections first.
If you suspect a bad LAN connection between your computer and analyzer, you can verify the network connection by using the ping command described earlier in this chapter or another similar echo request utility.
If a bad connection is revealed, try the following solutions:
SYSTEM OPTIONS LAN LAN Port Setup
.)
If you get a "connection refused" message, try the following solutions:
If you get a "connection timed out" message

General Troubleshooting Solutions to Common Problems
If you get a "connection refused" message
If you get a "connection timed out" or "no response from host" message
If you get a "connection refused" or "no response from host" message
If you cannot access internal web pages or import graphic images when using a point-to-point connection


Quick Reference EIA/TIA 568B Wiring
Table 9-1 Straight-Through Cable (Unshielded-twisted-pair (UTP) cable with RJ-45 connectors)
Standard, Straight-Through Wiring (each end)
Wire Color Pair #
RX+ 1 white/orange 2
TX+ 3 white/green 3
Table 9-2 Cross-Over Cable (Unshielded-twisted-pair (UTP) cable with RJ-45 connectors)
Connector A Connector B
RJ-45
RX+ 1 3 TX+
RX2 6 TX-
TX+ 3 1 RX+
TX6 2 RX-

Quick Reference EIA/TIA 568B Wiring
Connector A Connector B
RJ-45
4 4 Not Used 5 5
a. Either end of this cable can be used at the ana-
lyzer or LAN device. The connector names are a convention useful during cable construction only.
This cable can be used to cascade hubs or to make point-to-point connections without a LAN hub.
NOTE A convenient way to make a cross-over adapter is to use two RJ-45 jacks wired according to Table 9-2, above. Standard straight-through patch cables can then be used from the analyzer to the adapter, and from the adapter to other LAN devices. If you use a special-purpose adapter, you will avoid having a cross-over cable mistaken for a standard, straight-through patch cable.

Quick Reference EIA/TIA 568B Wiring
Figure 9-1 Cross-Over Patch Cable Wiring (cross-over end)


Quick Reference The TELNET Command
telnet [host [port]]
The telnet command is used to communicate with another host using the TELNET protocol. When telnet is invoked with host or port arguments, a connection is opened to host, and input is sent from the user to host.
telnet operates in line-by-line mode or in character-at-a-time mode. In line-by-line mode, typed text is first echoed on the screen. When the line is completed by pressing the key, the text line is then sent to host. In character-at-a-time mode, text is echoed to the screen and sent to host as it is typed.
In some cases, if your telnet connection is in “line-by-line” mode, there is no local echo. This means you will not be able to see the characters you are typing on your computer's display until after you press the key. Only a portion of the available commands and options are described. See your telnet documentation for more complete information.
To remedy this, you need to change your telnet connection to “character-by-character” mode. This can be accomplished in most systems by escaping out of telnet to the telnet> prompt and then typing mode char. Consult your telnet program's documentation for how to change to “character-by-character” mode.
Enter · Enter

Quick Reference The FTP Command
ftp [-g] [-i] [-n] [-v] [server-host] [-B DataSocketBufferSize]
The ftp command is used to transfer files using the File Transfer Protocol. ftp transfers files over a network connection between a local machine and the remote server-host.
When ftp is invoked with a server-host specified, a connection is opened immediately. Otherwise, ftp waits for user commands.
The following options are supported:
-g disables expansion of shell metacharacters in file and directory names
-i disables prompts during multiple-file operations
-n disables automatic log-in
-v enables verbose output
-B specifies a new DataSocketBufferSize
server-host the name or address of the remote host.
Table 9-3 lists the available user commands.

Quick Reference The FTP Command
Table 9-3 ftp Commands
ascii Sets the file transfer type to ASCII.
binary Sets the file transfer type to binary.
bye Closes the connection to the host and exits ftp.
cd remote_directory Sets the working directory on the host to remote_directory.
delete remote_file Deletes remote_file or empty remote_directory.
dir [remote_directory]
Lists the contents of the specified remote_directory. If remote_directory is unspecified, the contents of the current remote directory are listed.
get remote_file [local_file]
Copies remote_file to local_file. If local_file is unspecified, ftp uses the remote_file name as the local_file name.
help Provides a list of ftp commands.
help command Provides a brief description of command.
lcd [local_directory] Sets the local working directory to local_directory.
ls [remote_directory]
Lists the contents of the specified remote_directory. If the remote_directory is unspecified, the contents of the current remote directory are listed.
Copy remote_file to the local system. If local_file is unspecified, ftp uses the remote_file name as the local_file name.
Copies local_file to remote file. If remote_file is unspecified, ftp uses the local_file name as the remote_file name.
put local_file [remote_file]
Copies local_file to remote file. If remote_file is unspecified, ftp uses the local_file name as the remote_file name.
quit Closes the connection to the host and exits ftp.
Command Description · mget remote_file [local_file] · mput local_file [remote_file]

Quick Reference The PING Command
ping [-r] [-v] [-o] host [packetsize] [count]
The ping command sends an echo request packet to the host once per second. Each echo response packet that is returned is listed on the screen, along with the round-trip time of the echo request and echo response.
-r Bypasses the routing tables, and sends the request directly to the host.
-v Reports all packets that are received, including the response packets.
-o Requests information about the network paths taken by the requests and responses.
host The host name or IP address.
packetsize The size of each packet (8 bytes - 4096 bytes).
count The number of packets to send before ending ping (1-(231-1)). If count is not specified, ping sends packets until interrupted.

Quick Reference Dynamic Data Disk Contents
Table 9-4 Contents of the Dynamic Data Disk
File File Type Description
readme.txt ASCII This file contains a brief description of each file in this directory.
state.sta binary This file contains the analyzer's current instrument state settings.
cal.sta binary This file contains the analyzer's current calibration and instrument state settings.
data.sta binary This file contains the measurement data for both measurement channels.
tset_cal.cal binary For use with multiport test sets only. This file contains the test set calibration data that currently resides on the analyzer's non-volatile RAM disk.
prog.bas ASCII This file contains the currently loaded IBASIC program.
prog_run.bas ASCII This file accepts a copy of an IBASIC program, copies it to prog.bas, and immediately runs the program.
prog_run.scp ASCII This file accepts a copy of a file containing SCPI commands and immediately executes the commands.
screen.hgl ASCII This file contains the current screen image in HP-GL format. It is available for uploading to a file on your computer.
screen.gif binary This file contains the current screen image in GIF format. It is available for uploading to a file on your computer
screen.pcx binary This file contains the current screen image in PCX format. It is available for uploading to a file on your computer.
screen_m.hgl ASCII This file contains the current screen image, as well as the current softkey menu, in HP-GL format.
screen_m.pcx binary This file contains the current screen image, as well as the current softkey menu, in PCX format.

Quick Reference Dynamic Data Disk Contents
File File Type Description
screen_m.gif binary This file contains the current screen image, as well as the current softkey menu, in GIF format.
parm_all.txt ASCII This file contains a listing of all of the instrument's operating parameters in ASCII text format.
parm_screen. txt
ASCII This file contains the information in the current operating parameters screen in ASCII text format.
trace1.prn ASCII This file contains the measurement channel 1 measurement data in ASCII spreadsheet format.
trace2.prn ASCII This file contains the measurement channel 2 measurement data in ASCII spreadsheet format.
trace1.s1p ASCII This file contains the measurement channel 1 measurement data in Touchstone format.
trace2.s1p ASCII This file contains the measurement channel 2 measurement data in Touchstone format.

Quick Reference Agilent Technologies Sales and Service Offices
Table 9-5 Sales and Service Offices
UNITED STATES Instrument Support Center Agilent Technologies, Inc. (800) 403-0801
EUROPEAN FIELD OPERATIONS Headquarters Agilent Technologies S.A. 150, Route du Nant-d’Avril 1217 Meyrin 2/ Geneva Switzerland (41 22) 780.8111
France Agilent Technologies France 1 Avenue Du Canada Zone D’Activite De Courtaboeuf F-91947 Les Ulis Cedex France (33 1) 69 82 60 60
Germany Agilent Technologies GmbH Agilent Technologies Strasse 61352 Bad Homburg v.d.H Germany (49 6172) 16-0
Great Britain Agilent Technologies Eskdale Road, Winnersh Triangle Wokingham, Berkshire RG41 5DZ England (44 118) 9696622
Continued on next page.

Quick Reference Agilent Technologies Sales and Service Offices
INTERCON FIELD OPERATIONS Headquarters Agilent Technologies 3495 Deer Creek Rd. Palo Alto, CA 94304-1316 USA (650) 857-5027
Australia Agilent Technologies Australia Ltd. 31-41 Joseph Street Blackburn, Victoria 3130 (61 3) 895-2895
Canada Agilent Technologies (Canada) Ltd. 17500 South Service Road Trans-Canada Highway Kirkland, Quebec H9J 2X8 Canada (514) 697-4232
Japan Agilent Technologies Japan, Ltd. Measurement Assistance Center 9-1, Takakura-Cho, Hachioji-Shi Tokyo 192-8510, Japan TEL (81) -426-56-7832 FAX (81) -426-56-7840
Singapore Agilent Technologies Singapore (Pte.) Ltd. 150 Beach Road #29-00 Gateway West Singapore 0718 (65) 291-9088
Taiwan Agilent Technologies Taiwan 8th Floor, H-P Building 337 Fu Hsing North Road Taipei, Taiwan (886 2) 712-0404
China China Agilent Technologies 38 Bei San Huan X1 Road Shuang Yu Shu Hai Dian District Beijing, China (86 1) 256-6888

Glossary-1

bridge A device that moves traffic from one network to another.You use a bridge to connect networks of the same type together.
datagram An independent piece of data comprising sufficient information to be routed to the destination, without reliance on previous messages.
10Base-T A physical network connection that uses twisted-pair cables with RJ-45 connectors.
absolute pathname (The specification of a node (file or directory) in a hierchical file system relative to the root directory (the topmost node)—It is the full path name of a file or directory, including all the directories leading to it, starting with the root (/) and ending with the file or directory name itself.
client A computer system or process that requests services from a server.
Depending on the protocol, your analyzer is either a client or a server:
authentication The verification of an entity (person or process) for the purpose of granting access to files or directories, or to verify the source of a message.
Automount The automatic mounting of a remote file system.
BOOTP (Bootstrap Protocol) A protocol for passing configuration information on a TCP/IP network. Specified by RFC-951.
client/server A distributed computing system, with tasks split between a client and a server. Clients send requests to servers, asking for information or actions.
Glossary-2 LAN Interface Supplement

The client and server must share a common protocol for client-server communication to occur.
host A computer or device on a network.
host name A unique name that is used to identify each host machine on a network. The host name is created by the user or the system administrator. The hostname is directly linked to a specific IP address, and can usually be used in place of the harder-to-remember IP address.
Ethernet A network that adheres to the IEEE 802.3 Local Area Network standard.
Ethernet address A hexadecimal number which is used to identify a machine on a network. Each analyzer is assigned a unique Ethernet address at the factory and it is stored in the analyzer's ROM.
http (HyperText Transfer Protocol) A protocol used to carry World Wide Web (WWW) traffic.
Ethertwist See 10Base-T.
internet The connection of two or more distinct networks. Often a gateway or router is used to make the connection.
FTP (File Transfer Protocol) A service that allows you to remotely transfer files among different operating systems.
Internet The largest internet (see above) in the world, connecting millions of networks. The Internet uses the TCP/IP protocol.
ftp (File Transfer Program) A file transfer program that uses file transfer protocol.
gateway A generic term usually referring to a router.
IP address (Internet Protocol Address) A unique number that is assigned to each device which is to be connected to a TCP/IP network. Before using your analyzer on a network, your network administrator will need to assign an IP address.
group ID In UNIX, a unique number between 0 and 32767 that identifies a set of users. Each file has a group ID associated with it, to indicate the group to which its group permissions apply. Group IDs are stored in /etc/passwd and /etc/group databases.
LAN Interface Supplement Glossary-3

An IP address consists of a 32-bit value presented in decimal dot notation: 4 octets (bytes) separated by a dot.
protocol A set of conventions that specify how information will be formatted and transmitted on a network, and how machines on a network will communicate.
For example, the binary address 10000000 00000111 00001111 00000001 has the decimal dot notation of 128.7.15.1
relative pathname The specification of a node (file or directory) in a hierarchical file system relative to the current (context-dependent) directory.
Similar to “system administrator”.
RPC (Remote Procedure Call) A client/server protocol used to obtain a service from a remote process, over a network. RPC is a fundamental part of NFS.
network logging The collection and recording of network performance measures and other parameters and statistics.
router A device that moves traffic from one network to another. Routers are used to connect different types of networks together.
NFS (Network File System) A standard network protocol for file sharing among different operating systems.
ping A utility that allows you to determine the status of the connections between devices and a network. The ping utility is usually included with software packages that provide networking services. Your analyzer has a ping utility included in its firmware.
server A device that is configured to provide a service to other devices on a network, such as shared access to a file system or a printer. See client.
Depending on the protocol, your analyzer is either a client or a server:
Glossary-4 LAN Interface Supplement
network administrator

system administrator A person who manages systems and machines on a network. The system administrator is responsible for installing software and hardware on the network and assigning addresses and names to machines.
TCP/IP (Transmission Control Protocol/Internet Protocol) A set of standards for communications between computers and between networks.
SICL LAN A LAN protocol using the Standard Instrument Control Library (SICL). It provides control of instruments over the LAN, using a variety of computing platforms, I/O interfaces and operating systems.
TFTP (Trivial File Transfer Protocol Protocol) A very simple protocol for file transfer over a network. TFTP uses an unreliable data protocol without user identification or directory visibility. TFTP is specified by RFC 1350.
socket An endpoint for communication over a network. A socket, consisting of a port number and a network address, is part of a mechanism for creating a virtual connection between two processes.
telnet A protocol that allows users to create a session to run programs on or transfer information to and from a remote computer.
subnet mask (Also called an address mask) A bit mask that identifies the bits corresponding to the network address and subnet address portions of the IP address. The mask has ones in positions of the IP address corresponding to the network and subnet addresses, and zeros in the host address positions.
ThinLAN A physical network connection that uses coax cables with BNC connectors.
LAN Interface Supplement Glossary-5

time out A period of system inactivity during which the system awaits user or network response. If there is no response by the end of the period, the system takes an action.
UDP (User Datagram Protocol) A protocol for passing data on an IP network. UDP does not guarantee delivery, and does not require a connection. It is a lightweight and efficient protocol, but all error processing and retransmission of data must be done by the application program. Specified by RFC-768.
VISA (Virtual Instrument Software Architecture) VISA is an I/O library used to develop I/O applications and instrument drivers that comply with plug&play standards. Applications and instrument drivers developed with VISA work on any system that has the VISA I/O layer. This allows software from many sources to work together.
Glossary-6 LAN Interface Supplement

file system, analyzer, 4-2–4-9 file transfer program, 4-2 file transfer protocol, 4-2 file, copying, 4-5, 4-6 filename compatibility, UNIX to
lcd, 4-9 line-by-line mode, 6-8 local echo, lack of, 6-8 local HOSTS file, 7-11 logging on to the analyzer, 4-3 ls, 4-9
I IBASIC, 5-7 IBASIC programming, 6-24–6-
DOS, 4-6 FTP, 4-2, 9-6, Glossary-3 ftp, 4-1, 4-2, Glossary-3 ftp commands, 4-8 ftp, UNIX, 4-3
27 IBASIC programs, copying, 5-7 ID
M measurement data, 5-14 mounting, 7-3
group, 7-5, 7-9 user, 7-5, 7-9 IDs
confirming, 7-9 remote host, 7-7
G gateway, 8-15, Glossary-3 gateway address, 1-9 Gateway IP Address key, 1-10,
setting up, 7-9 image, 4-9 importing graphics or data, 5-15 instrument info via Web, 2-10 instrument state, 5-2 instrument states, save and
N NETSTAT.CAP, 8-10 network administrator,
8-15 get, 4-9 get command, 4-6 GPIB
recall, 5-5 int, 4-3 intermittent response, 8-6 Internet, Glossary-3 internet, Glossary-3 IP address, 1-8, Glossary-3 IP Address to Ping key, 8-7
Glossary-4 Network File System, 7-2–7-17 network statistics, capturing, 8-
device address, 6-43 logical unit number, 6-43 name, 6-43 group ID, 7-5
10 networks, 1-6 NFS, 7-2–7-17
automount, 7-13 copying files, 7-16 using Save/Recall, 7-15–7-17 NFS protocols, 7-4 no response from host, 8-19 Novell Netware, 1-2 nvram, 4-3
setting up, 7-9 GUI FTP software, 4-10
J java program example, 6-33–6-
H hardcopy, 3-2 hardcopy address, 3-5 hardcopy configuration, 3-4 hardcopy via ftp, 5-10 hardcopy, color, 3-5 help, 4-9 host, Glossary-3 host name, Glossary-3 hostname, 1-8 HOSTS file, 7-11 HP BASIC, 6-42 HP VEE, 6-31, 6-42, 6-43, 6-45 HP VISA/SICL LAN, 6-42, 6-43,
O openSocket, 6-9
client/server functions, 1-4 star topology, 1-6 LAN cables, 1-6 LAN connector, 1-5 LAN ETHERTWIST connector,
P parm_all.txt, 5-2, 9-9 parm_screen.txt, 5-2, 9-9 password
1-5 LAN ETHERTWIST rear panel
ftp, 4-2 passwords
port, 1-5 LAN hubs, 1-6 LAN Port Setup, 1-10 LAN Printr IP Addr key, 3-4
adding, 1-13 default, 1-13
6-45 http, Glossary-3
hubs, 1-6 · 2 Index

removing, 1-14 pathname
snapshot, screen, 2-6, 2-7 socket, Glossary-5 socket programming, 6-3 spreadsheet, data, 5-14 star topology, 1-6 state.sta, 5-2, 5-5 subnet, 8-15 subnet mask, 1-9 Subnet Mask key, 1-10, 8-15 subnet, troubleshooting, 8-17 support via the Web, 2-11 system administrator, Glossary-
absolute, Glossary-2 relative, Glossary-4 Perl script, example, 6-28–6-30 ping, 1-11, 1-12, 8-5–8-9, 9-8,
R ram, 4-3 recalling instrument states, 5-5 relative pathname, Glossary-4 remote host file system, 7-7 remote procedure call, Glossary-
Glossary-4 point-to-point connection, 1-7 printer configuration, 3-3 printer connections, 1-7 printers, compatible, 3-2 printing, 3-2 printing configuration, 3-4 printing, color, 3-5 problems and solutions, 8-2 product documentation, 2-10 product feedback, 2-11 product support, 2-11 prog.bas, 5-2, 5-7, 9-9 prog_run.bas, 5-2, 5-7, 5-9, 9-9 prog_run.scp, 5-2, 5-7, 5-9, 9-9 program example, 6-9–6-23 programming
4 retrieving a file, 4-6 retrieving measurement data, 5-
14 RFC 1350, Glossary-5 RJ-45 connector, 1-5 router, 8-15, Glossary-4 RPC, 7-4, Glossary-4 running programs, 5-9
T TCP/IP, Glossary-4, Glossary-5 technical support, 2-11 telnet, 6-5–6-8, 9-5, Glossary-5 test set cal, 5-2, 9-9 testing BOOTP, 1-18 testing LAN communication, 1-
S sales and service, 9-11 sales and service offices, 9-11 Save/Recall, NFS, 7-15–7-17 saving instrument states, 5-5 SCPI commands, 2-8 screen snapshot, 2-6, 2-7 screen.hgl, 5-2, 5-10, 9-9 screen.pcx, 5-2, 5-10, 9-9 screen_m.gif, 5-2, 5-10, 9-9 screen_m.hgl, 5-2, 5-10, 9-9 screen_m.pcx, 5-2, 5-10, 9-9 screendump, 3-2 screendump configuration, 3-4 screendump via ftp, 5-10 screendump via Web, 2-6, 2-7 screendump, color, 3-5 server, Glossary-4
11 TFTP, Glossary-5 ThinLAN, 1-5, Glossary-5 time out, Glossary-6 timeout errors, 8-3 timeout period, 6-24 Touchstone format, 5-14 trace data, 5-14 trace1.prn, 5-2, 5-14, 9-9 trace1.s1p, 5-2, 5-14, 9-9 trace2.prn, 5-2, 5-14, 9-9 trace2.s1p, 5-2, 5-14, 9-9 trivial file transfer protocol,
with C, 6-9–6-23 with IBASIC, 6-24–6-27 with Perl, 6-28–6-30 programming via LAN, 6-3 programming, socket, 6-3 programs, copying, 5-7 programs, running, 5-7 programs, to run, 5-9 protocol, Glossary-4
TCP, 7-4 protocols
NFS, 7-4 RPC, 7-4 TCP/IP, 7-4 put, 4-9 put command, 4-5
Glossary-5 troubleshooting, 8-2 tset_cal.cal, 5-2, 9-9 twisted-pair cables, 1-6
BOOTP, 1-15 NFS, 7-3 SICL LAN, 6-42, 6-44 SICL LAN, 6-42–6-50, Glossary-
Q queries, 5-9

unmounting a remote file
system, 7-10 user ID, 7-5
setting up, 7-9 user names
adding, 1-13 default, 1-13 removing, 1-14
W wiring, EIA/TIA 568B, 9-2–9-4 wizards, 1-21
4 Index
Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.