Print | Rate this content

HP Jetdirect and Embedded Jetdirect Inside Print Servers - Using Ping and Telnet to Test Communication to an HP Jetdirect Print Server

Introduction

Ping and Telnet can be used to test basic connectivity and communication of HP Jetdirect print servers. Ping tests the communication with the HP Jetdirect at the network layer, where Telnet tests the connection at the application layer. If these tests fail, this usually indicates a hardware connection or configuration problem (for example, a hub, a router, a switch, a patch panel, or a cable problem).

If both tests work, but the printer cannot print, there may be the following:

  • A software configuration problem

  • An application problem

  • A problem with a particular print job

  • A printer driver problem.

There are several different ways to troubleshoot these particular problems, depending on the following:

  • The software, printer driver, or network port used

  • The network protocol used

  • The network configuration (peer-to-peer or client-server)

The first step, however, is to test the network connectivity of the HP Jetdirect, and this document is intended to resolve the HP Jetdirect network connection only.

Application or printer driver issues are outside the scope of this document, but can be pursued by consulting the HP Web site support documents for the particular printer.

top

Prerequisites

The TCP/IP, the subnet-mask, and the default-gateway addresses must be properly configured on the computer and the HP Jetdirect print server. Print a Configuration page or a Self-Test page from the printer or from the external HP Jetdirect. Check the TCP/IP status, and make sure the TCP/IP addresses are valid. Also, verify the TCP/IP configuration of the computer.

Additional information about the IP status of the HP Jetdirect is printed on the Jetdirect Configuration page. See the "Troubleshooting" section below regarding the Configuration page

Using the route add command

It may be necessary to add the TCP/IP address to the route table of the computer or workstation, especially if the HP Jetdirect is at the default address, either 192.0.0.192 or 169.254.x.x. For example, if the HP Jetdirect has a TCP/IP address of 192.0.0.192 and the computer has a TCP/IP address of 192.168.1.10, open a command prompt and type: route add 192.0.0.192 192.168.1.10

Refer to the help files or man pages (in UNIX) of the operating system for more ways to use route add.

NOTE: The following Embedded Print Servers are not supported in a UNIX or Novell environment:
Printer
Embedded Print Server Model
HP Color LaserJet 3000dn
Q7535A
HP Color LaserJet 3000n
Q7534A
HP Color LaserJet 3600dn
Q5988A
HP Color LaserJet 3600n
Q5987A
HP Color LaserJet 3800dn
Q5983A
HP Color LaserJet 3800dtn
Q5984A
HP Color LaserJet 3800n
Q5982A

top

Ping

Open a command prompt and type the following

ping ip address:

For example, if the TCP/IP address of the HP Jetdirect is 192.168.192.191, open a command prompt and type the following:ping 192.168.192.191

Replies should be received if the network connection is good. Failure messages from ping could indicate that the IP address is invalid or that there may be a network connection problem between the computer and the HP Jetdirect (a hub, router, switch, patch panel, or cable).

Ping is a network layer level IP communication that verifies whether an IP device is alive on the network by sending an echo-request packet once per second from a host (PC, UNIX workstation, router, or other device) to another device.

top

Arp -a

If the HP Jetdirect replies to ping, open a command prompt and type the following:

arp -a

A list of IP addresses should appear along with the corresponding MAC or LAN Hardware address. Verify the LAN Hardware address with the HP Jetdirect LAN Hardware address from its Configuration page (see the "Troubleshooting" section below).

top

Telnet

The telnet application is slightly different between Windows and UNIX. The following are general instructions for Windows. For UNIX, check the man pages for Telnet.

Note that newer HP Jetdirect devices (for example, the HP Jetdirect 610n and 615n) do not require local echo to be set.

Assume that the HP Jetdirect print server has an IP address of 192.168.192.191.

Telnet in Windows 9x or NT

  1. To use Telnet with this example, open a command prompt and type the following: telnet 192.168.192.191

  2. When the HP Jetdirect responds, press Enter twice to make sure that the Telnet connection is initialized.

  3. Type a forward slash (/), and press Enter to see HP Jetdirect information.

  4. Type a question mark (?), and press Enter. A help screen will appear with examples of IP parameters that can be changed. With some HP Jetdirects in some Windows Telnet screens, local echo must be enabled to be able to see what is typed. To enable local echo in Telnet, select Terminal, and Preferences at the top of the Telnet window. Put a check in Local Echo and select OK.

Telnet in Windows 2000

  1. Click Start, and then Run.

  2. Type telnet, and press Enter.

  3. To set local echo, type the following: set local_echo (Some devices, such as an HP Jetdirect 610N card, do not need local echo set. If local echo is set and double sets of characters appear, type the following: unset local_echo)

  4. Type the following: open ipaddress(for example, open 192.168.192.191).

Telnet in Microsoft Windows XP

  1. Open the Command Prompt and type the following: telnet IPaddress (for example, telnet 198.162.20.10).

  2. Type Ctrl + ] (press and hold the Ctrl key and type a right bracket), then press Enter.

  3. Type the following: set localecho and press Enter. Local echo will be on.

  4. Press Enter again and the HP Jetdirect telnet interface should be seen.

  5. Once a telnet connection has been established, type a forward slash (/), and press Enter to see HP Jetdirect information.

  6. Type a question mark (?) and press Enter. A Help screen will appear with examples of IP parameters that can be changed

    NOTE: As long as a Telnet connection can be made, it is not necessary to make any changes in the Telnet session. The connection alone is enough to verify communication at the application layer.

Failure messages from Telnet indicate that there is a duplicate IP address, is an invalid IP address, or that there may be a network connection problem between the computer and the HP Jetdirect (such as a hub, a router, a switch, a patch panel, or a cable).

For instance, if ping works and Telnet fails, this is often because there is a duplicate IP address somewhere on the network. See the "Troubleshooting" section below.

Telnet to the port of the HP Jetdirect to test the printing

To test printing through a Telnet session, append the TCP port number to the Telnet command. For internal HP Jetdirect and single parallel port external HP Jetdirect devices, the port number is 9100. For the multiple parallel port external HP Jetdirect devices, the port numbers are 9100, 9101, and 9102 for parallel ports 1, 2, and 3, respectively.

Once in Telnet, type some text or characters, and then close the Telnet connection:

  • To close the Telnet session in Windows 2000, XP, and most variations of UNIX, press and hold down the Ctrl key, then press the right square bracket key ( ] ).

  • In Windows 9x and NT, click Connect, then Disconnect in the Telnet window.

Then, quit Telnet. Type quit at the Telnet prompt or exit the Telnet window.

(You may have to press the Go or Select button on the printer control panel to eject the page. The page should print whatever was typed in Telnet.)

For example, assume that the HP Jetdirect print server has an IP address of 192.168.192.191 and you use Telnet from Windows XP:

  1. For an internal HP Jetdirect or a single parallel port external HP Jetdirect, open a command prompt and type the following: telnet 192.168.192.191 9100 (For a three-port, external HP Jetdirect, use port numbers 9100, 9101, or 9102 for parallel ports 1, 2, or 3, respectively.)

  2. While in Telnet, type the following: This is a test and then press Enter.

  3. Type Ctrl + ] (press and hold the Ctrl key and type a right bracket), then press Enter.

  4. At the Telnet prompt, type the following: quit

The printer should print, "This is a test."

top

Host names or DNS names

A Ping or Telnet can also be a valid test for a host name. Assume the HP Jetdirect has the host name PRINTERA:

  1. Open a command prompt, and type the following:

    ping PRINTERA

  2. To Telnet to a host name, use the same instructions for Telnet above, but use the host name in place of the IP address.

If it is impossible to Telnet to a host name, but possible to Telnet to an IP address, there may be a host name conflict or a missing entry in the name server (for example, WINS/DNS or etc/hosts). Check for the appropriate host name settings for the network operating system that is used.

Telnet will help test the functionality of the TCP/IP stack from the application layer and help to prove communication to the HP Jetdirect print server through the network.

top

Troubleshooting

Printing a Configuration page to check the status of the HP Jetdirect

Print a Configuration page to determine the IP address and firmware revision of the HP Jetdirect print server. If there is an error condition, an error message may also be printed on the Configuration page.

There are at least two styles of printer control panels: Classic and Flex. Classic control panels typically have Menu and Item buttons; Flex control panels have a checkmark button and arrow buttons and/or a numeric keypad. While this complicates things in an environment with many different types of printers, the basic navigation concepts apply: the HP Jetdirect configuration page is usually found on an Information menu.

  • Most HP printers with an internal HP Jetdirect card can print a Configuration page by using the front panel of the printer. Use the MENU key on the front panel to go to the Test, PCL Test, or Information menu.

  • For Classic menus, press the MENU button to go to the Print Configuration, Print EIO Configuration, PCL Configuration Page, or the Self-Test menu. Press SELECT or ENTER. For Flex menus, press the checkmark button to enter the menu system, press the Down Arrow button to Information. Press the check mark button to enter the Information menu. Press the Down Arrow button to Print Configuration. Press the check mark button.

  • LIO print servers (Such as the 200m or 250m) have a TEST button on them. Press and release it to print the Configuration page.

  • External HP Jetdirects have a TEST button on the top or the back of the HP Jetdirect.

  • HP Designjet printers vary even more: their Configuration pages are usually under the Utilities menu and are called Service, Print Service Config, and Config Plot.

  • The HP LaserJet 2100 or 2200 printer will print its page when pressing both buttons on top of the printer simultaneously

Reading the Configuration page

  1. Check the HP Jetdirect Configuration page or the self-test page of the printer or the external HP Jetdirect for the following:

    • The I/O Card status must be Ready. If it reads, Not Ready, the most likely cause is a bad connection (for instance, a bad cable, or a bad hub). Other messages that may accompany the Not Ready message include, Internal Loopback Error, External Loopback Error, or Infinite Deferral.

    • The TCP/IP status on the Status page must be Ready.

    • The TCP/IP IP address, the default gateway, and the subnet mask must be valid for the network. Compare the HP Jetdirect IP address to the IP address of the computer form which you are trying to print or configure the printer.

  2. These errors may appear on the HP Jetdirect Configuration page or the Self-Test page:

    • ARP Duplicate IP Address: the HP Jetdirect print server acknowledges another device on the network with the same IP address. The LAN hardware address of that device may be displayed along with this error on the Self-Test page. The IP address on one of the devices must be changed to prevent IP conflicts.

    • TFTP local error: an issue could exist with the BootP address resolution. If using HP Jetadmin for UNIX or the HP Jetdirect printer installer for UNIX, delete and recreate the BootP entry through the software. Reset the printer or the HP Jetdirect to factory defaults

Using Ping and Telent commands

If Ping or Telnet responds with Ping is not recognized as an internal or external command.

  1. Search for ping.exe or telnet.exe, and note the directory in which the executable file is located.

  2. Type the full directory path including the ping or telnet command (for example, C:\WINNT\system32\telnet)It may necessary to add the path of these files to the path statement of the computer. For example, if telnet.exe is in D:\winnt\system32, type the following: path=D:\winnt\system32\%path%

    NOTE: If the path statement is not changed properly, some programs that were in the original path statement may no longer run until the computer is restarted. See the computer's Help screens or contact Microsoft for more information. HP cannot support configuring the computer's path statement.

If Ping or Telnet may responds with any of the following messages:

  • Request timed out

  • Destination unreachable

  • Connection refused

  • Connection Failed

    Failure messages usually indicate one or more conditions, such as the IP address is a duplicate address, is invalid, or that there may be a network connection problem between the computer and the HP Jetdirect (such as a hub, a router, a switch, a patch panel, or a cable).

    The steps to begin troubleshooting include:

  1. Print a Configuration or self-test page from the printer or the HP Jetdirect print server. Verify that the TCP/IP addresses are configured correctly for the network. See the Configuration page section below.

  2. Check that the IP address is typed correctly when using ping or telnet. Typographical errors will cause error messages.

  3. Check the TCP/IP configuration for the network. A route may need to be added to the HP Jetdirect. See steps below.

  4. Use an arp -a command at the DOS prompt to verify the MAC hardware address resolution:

    1. Ping the TCP/IP address of the HP Jetdirect.

    2. If it replies, type the following at the command prompt: arp -a

    3. The TCP/IP address should be displayed along the physical address or the LAN hardware address of the HP Jetdirect.

  5. Check the network hardware connections between the HP Jetdirect and the computer. For external HP Jetdirect print servers, make sure that a printer is connected and online.

TCP/IP configuration

If a router is between the computer and the HP Jetdirect print server, the default gateway of the HP Jetdirect usually is the IP address of the router on the HP Jetdirect side. If there is no router, the default gateway should be the IP address of the HP Jetdirect print server.

Some routers can act as DHCP servers and also act as a route to the Internet.

If a cable modem is used to connect to the Internet, the Internet service provider (ISP) may be assigning TCP/IP addresses using DHCP. In this case, the default gateway assigned to the HP Jetdirect may route communication to the Internet rather than to the computer on the network.

If so, change the gateway address of the HP Jetdirect to match its IP address:

  1. If using an internal HP Jetdirect in an HP LaserJet printer or plotter, use the control panel to change the gateway (GW BYTE on the control panel display) to the same address as the IP address.

  2. If unable to use the control panel of the printer, or if using an external HP Jetdirect, disconnect the HP Jetdirect from the network, and restore it to factory defaults. Use HP Jetadmin, HP Web Jetadmin, the Embedded Web server, or Telnet to reconfigure the TCP/IP address the same as that, which was assigned by DHCP, but use the IP address for the default gateway address.

Network hardware connections

  • Ping or Telnet to other devices or computers on the network. If they do not respond, the problem may be with one computer. Check the network configuration and the network hardware on that computer.

  • Ping or Telnet from other computers to see if the problem is with the network, with the HP Jetdirect, or with only one computer. If the problem is with one computer, check the network configuration and the network hardware on that computer.

  • Make sure the LAN cable is functional and that it has a good connection with the HP Jetdirect and the hub.

  • The hub must supply a linkbeat signal and must match the network speed of the HP Jetdirect (check the support documentation of the hub if necessary).

  • If a router is between the server and the HP Jetdirect print server. Move the print server to the same subnet as the computer.

  • Ping the address, 127.0.0.1, to test the TCP/IP protocol on the computer. This is known as the "loopback" address.

  • If using an external print server, connect a printer to it.

  • Use the tracert command to trace the IP path between the computer and the HP Jetdirect. This will help to identify the route and the gateways (routers) in the network path to the HP Jetdirect. For example, type: tracert 192.168.192.191 If the tracert times out, there may be a problem with a router or switch.

  • A similar tool in Windows 2000 is pathping. Pathping is used the same as the tracert or ping command, but it also shows packet loss and latency that occurs. However, the results from pathping can take time while it analyzes the replies. Interpreting the results may or may not be any more helpful than ping or tracert. For more information, see the help files of Windows 2000.

top

Provide feedback

Please rate the information on this page to help us improve our content. Thank you!