1846482 Members
3393 Online
110256 Solutions
New Discussion

Re: Printer problems

 
SOLVED
Go to solution
Kevin_107
Regular Advisor

Printer problems

I have got a HP laserjet 4000n running on an old HP workstation (C200). When trying to add the printer via Jetadmin, it issues "Is not an offical address for HP jetdirect". I added the printer anyway but I cannot print to it..I can ping the printer but when sending any prints to it they just sit in the queue. The printer is enabled and ready. Any ideas??
He who laughs last.....doesnt get the joke !!
12 REPLIES 12
Armin Feller
Honored Contributor

Re: Printer problems

Hi,

a spooler trouble shooting is discussed by following URL:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x549a85079106d71190050090279cd0f9,00.html

Hope that helps.

Regrads,
Armin
Vicente Sanchez_3
Respected Contributor

Re: Printer problems

hI,

Can you show the configuration? It can help.

Regards, Vicente.
Kevin_107
Regular Advisor

Re: Printer problems

I have tried the spooler trouble shooting guide but still no joy...My configuration is the workstation IP addr is 172.16.1.2...my printer in 172.16.1.118 def G/Way is 172.16.1.1 and subnetmask is 255.255.255.0 - HW adress is 0010830df94d.
He who laughs last.....doesnt get the joke !!
Kevin_107
Regular Advisor

Re: Printer problems

I have got another HP 4000n laserjet printer. I have tried to install it just in case there is a problem with the printer. How can I change the IP of the spare computer it dosent let you change the IP via jetadmin. Any ideas !!
He who laughs last.....doesnt get the joke !!
Kevin_107
Regular Advisor

Re: Printer problems

SOrry I meant to say..how can I change the IP address of the other printer..DOH !!
He who laughs last.....doesnt get the joke !!
Thayanidhi
Honored Contributor
Solution

Re: Printer problems

Hi,

You can change/set IP address using control panel on the printer. Press menu+ util you get EIO configuration......

Try testing the printer with the below command.
(IP shoud have been set already)

#cat | telnet 9100

(9100 is the port which jetdirect listens to)

If this prints, then problem is with your spooler configuration.

TT
Attitude (not aptitude) determines altitude.
Armin Feller
Honored Contributor

Re: Printer problems


HP JetAdmin for UNIX

See the BootP information below for a further explanation of
Bootstrap Protocol (BootP). HP JetAdmin for UNIX can create a
BootP entry to set an IP address on an HP JetDirect device through
the following steps:

1. Run HP JetAdmin. Verify that you have turned on the HP
JetDirect device.

2. Select 1 for Configuration.

3. Select 1 for Create Printer Configuration in the BOOTP/TFTP
database.

4. Type the LAN hardware address of the HP JetDirect
device. This address can be found on a self-test page
from the printer or external HP JetDirect device.

5. Type the network printer name (hostname).

6. Type the IP address. Select Y when asked to add the printer
name and the IP address to /etc/hosts. If the host name
already exists in /etc/hosts, HP JetAdmin will only ask for
optional parameters (Step 7).

7. Enter optional parameters, for example, subnet mask or gateway.

8. Enter 0 (zero) to configure.

9. Power cycle the printer or external HP JetDirect device.


Telnet

This list contains the minimum firmware needed to set an IP address
using Telnet:

- A.03.03

- B.03.16

- C.03.16

- D.04.03

- E.04.20

Telnet is an application that provides an interactive login to a
remote system by way of TCP/IP:

syntax: telnet "IP address"

The unconfigured HP JetDirect print server with the appropriate
firmware will default to 192.0.0.192 after being active on the network
for five minutes. To determine if the HP JetDirect device has a default
IP address, run a self-test page and check the TCP/IP information. If
you have other HP JetDirect devices on the network with this default IP
address, they must be turned off before making the Telnet connection, or
you will not know which card you have connected to.

In some environments, the address 192.0.0.192 will have to be resolved
on the network before a Telnet session will be possible. You may have
to use a 'route add' command to resolve this address. For information
about your specific UNIX environment, do a man command on 'route add.'
For many systems, the 'route add' command is one:

syntax: route add 192.0.0.192 "Machine IP address"

The command 'netstat -rn' will display the 192.0.0.192 in the route
table. If Telnet to 192.0.0.192 is successful, follow these directions:

1. Press the return key twice.

2. Type a question mark (?) to provide a menu listing of the
current parameters and commands for modifying these parameters.

Note: On Firmware x.05.05 and above, typing a "?" will
only provide commands for modifying these parameters; a
"/" must be typed to get the current settings on
the card.

3. Make the desired changes.

4. Type "quit" to exit and save changes.

Note: To exit Telnet without saving any changes, type
"exit".
Bill Hassell
Honored Contributor

Re: Printer problems

JetDirect interface cards in HP printers are just like computers. They need all 3 values correctly added to the printer (IP address, subnet mask and gateway address). When admins setup printer IP addresses, they often forget the other two values.

You can determine the current settings in the printer by printing the test page where the LAN settings will be listed. The default IP address is 192.0.0.192 with no gateway or subnet mask. That means that you can telnet to the printer, but only on the same subnet and only if there are no other unassigned printers (or HP Web Consoles) on the same network. Then set the address using the interactive menu provided by the card.

Otherwise, make sure you put all 3 values into the front panel of the printer. JetAdmin (obsolete) and HP Printer Installer for HP-UX can provide bootp as an automated method to assign the address (again, on the same subnet), or you can use a DHCP server to provide the printer's address.

While ping may work, problems with the subnet mask and/or gateway at the printer may cause the symptoms you're seeing. If the printer has an IP address, you can telnet to the printer. NOTE: if the JetDirect card (LAN interface) has a problem such as dupe IP addr or other config issue, it will be shown on the printer's selftest page.

Use hpnpadmin as the easiest way to see the printer's state, as in:

/opt/hpnp/bin/hpnpadmin -v IP_address


Bill Hassell, sysadmin
Thayanidhi
Honored Contributor

Re: Printer problems

Hi Bill,

I think there is typo in your post.

/opt/hpnpl/bin/hpnpadmin -v IP_Address

Tks.
Attitude (not aptitude) determines altitude.
Kevin_107
Regular Advisor

Re: Printer problems

I had success when running
#cat | telnet 9100

It didnt actually print my test file. However, would this still print if there was a problem with my subnet mask or default gateway !?!?!
He who laughs last.....doesnt get the joke !!
Thayanidhi
Honored Contributor

Re: Printer problems

Hi,

Just take a "configuration printout" from the printer's "Information menu", and verify your subnet mask and gateways are correct. I feel if you are able print with command

"cat |telnet 9100"

then it is mostly lp spooler related issue, not the network issue.But it is always better to verify the network settings first.

TT

Note: You may also try to configure the spooler from begning.
Attitude (not aptitude) determines altitude.
Bill Hassell
Honored Contributor

Re: Printer problems

Actually, the path hpnp is correct for the obsolete JetAdmin software while hpnpl is for the supported HP Printer Installer.

In the very early (circa 1993-1995) JetDirect cards, telnet to port 9100 would indeed print. However, the protocol is a little more complicated now.

Can you perform: telnet
and see the JetDirect card's menu? If so, all is well so you can print a simple file without the spooler with:

JETPATH=/opt/hpnp/bin
JETPATH=/opt/hpnpl/bin
# (pick the one that matches your software)
$JETPATH/hpnpf -x -n /etc/profile

This should print /etc/profile. Now delete the old printer using $JETPATH/removequeue
and add it back with:
$JETPATH/addqueue -h -q

and all should be well. (I like to put the value of JETPATH intpo root's .profile so I can just type the command) If telnet to the card fails, then you'll have to check the printer's setting page for the required values.

If you use SAM to add the printer, do NOT use REMOTE PRINTER as this is only for print servers like NT (where lp options are ignored), but use NETWORK PRINTER. However, with removequeue and addqueue, SAM seems very clumsy.


Bill Hassell, sysadmin