Hi
I've set up a printer on our Solaris box using admintool (other than printer name,
all other properties for this printer follows that of an existing working printer as
shown by admintool GUI). It's a HP Laserjet with JetDirect network port
connected to the network.
The printer name is then defined in the /etc/hosts with the IP address of the
JetDirect (following an existing working printer).
When I test print using root using the command below, nothing was printed :
# lp -d slareghp1 /tmp/test.txt
request id is slareghp1-24421 (1 file(s))
Using ordinary account would give error :
$ lp -d slareghp1 /tmp/test.txt
request id is slareghp1-24421 (1 file(s))
UX:lp: ERROR: You are not allowed to use the destination
"slareghp1".
TO FIX: Use the lpstat -p command to list all
known printers; you can use those marked
"available".
$ ksh: syntax error: `(' unexpected
Also, from the same Sun server, I was able to telnet
into the JetDirect's IP address (but this is not lp's port,
only port 23).
What Tcp port does "lp" uses when it send a print job
to a remote print server (ie JetDirect in this case)?
What should I do next to get it to work ? Could it be
a firewall is on one of the subnet that prevented the
printing? I probably can verify if I know the Tcp port
used by lp
Since I could telnet into this JetDirect, what's the command I
could issue to do a "test print" locally to the printer - just want
to verify that the user & I are talking about the same printer
More info :
A colleague just told me the likely Tcp port used for printing to
the JetDirect is Tcp 9100 & from the Solaris server, I could
establish port 9100 is reachable :
boasun02:/etc >telnet slareghp1 9100
Trying 10.51.19.140...
Connected to slareghp1.
Escape character is '^]'.
I telnet into the JetDirect & checked current configuration :
> /
===JetDirect Telnet Configuration===
HP JetDirect : J7949E
Firmware Version : V.33.15
Manufacturing ID : 4718471800****
Hardware Address : 00:1A:4B:1D:EA:AB
System Up Time : 73:06:58
GENERAL___________________
__________
_______
Admin Password : Not Specified
System Location : Not Specified
System Contact : Not Specified
SSL state : 2
TCP/IP MAIN______________________
__________
Host Name : NPI80B400
IP Config Method : USER SPECIFIED
IP Address : 10.51.19.140
Subnet Mask : 255.255.252.0
Default Gateway : 10.51.19.254
Config Server : 10.51.1.71 (Read-Only)
TFTP Server : Not Specified (Read-Only)
TFTP Filename : No Domain Name : sla.gov.sg
Pri DNS Server : 10.51.1.73
Sec DNS Server : 10.51.1.71
Pri WINS Server : 10.51.1.73
Sec WINS Server : 10.51.1.71
TCP/IP PRINT OPTIONS___________________
____
9100 Printing : Enabled <== this looks OK
FTP Printing : Enabled
IPP Printing : Enabled
LPD Printing : Enabled
LPD Banner Page : Enabled
IPP Job Acct. : Enabled
TCP/IP LPD QUEUES____________________
______
LPD Print Queues :
Queue Name: RAW Prepend String: Append String: Processing:RAW
Queue Name: TEXT Prepend String: Append String: Processing:TEXT
Queue Name: AUTO Prepend String: Append String: Processing:AUTO
Queue Name: BINPS Prepend String: Append String: Processing:BINPS
LPD Default Queue : AUTO
LPD Queue Strings :
TCP/IP RAW PRINT PORTS_____________________
TCP/IP ACCESS CONTROL___________________
___
Allow :
TCP/IP OTHER_____________________
__________
Syslog Config : Enabled
Syslog Server : Not Specified
Syslog MaxMsg/Min : 10
Syslog Priority : 7
SLP Config : Enabled
SLP Keep Alive : 0
Multicast DNS : Enabled
mDNS Service Name : hp LaserJet 4250 [1DEAAB]
mDNS Domain Name : NPI1DEAAB.local. (Read-Only)
mDNS Priority Svc. : 6
TTL/SLP : 4 Hops
IPv4 Multicast : Enabled
Idle Timeout : 270 Seconds
User Timeout : 900 Seconds
Cold Reset : Disabled
ICMPv4 TS requests : Di EWS Config : Enabled
TCP MSS : 0
Default IP : Auto IP
Default IP DHCP : Enabled
DHCP unique ID :
DHCP FQDN behavior : 0
DNS Cache TTL : 60
DHCP arbitration : 5
Phone Home Config : 2
SNMP______________________
__________
_______
SNMP Config : Enabled
Get Cmnty Name : Not Specified
Set Cmnty Name : Not Specified
Default Get Cmnty : Enabled
SNMP TRAPS_____________________
__________
__
Auth. Trap : Enabled
Trap Destination :
IPX/SPX___________________
__________
_______
IPX/SPX Config : Enabled
Print Server Name : NP Address : 0.001A4B1DEAAB (Read-Only)
Frame Type : AUTO
SAP Interval : 60 Seconds
Mode : NONE (Read-Only)
NDS Tree Name : Not Specified
NDS Context : Not Specified
Job Poll Interval : 2 Seconds
PJL Banner Pages : Disabled
PJL End-Of-Job Noti: Disabled
PJL Toner Low : Disabled
APPLETALK_________________
__________
_______
AppleTalk Config : Enabled
Name : hp LaserJet 4250 (Read-Only)
Zone : * (Read-Only)
Print Type 1 : HP LaserJet (Read-Only)
Print Type 2 : LaserWriter (Read-Only)
Print Type 3 : Not Specified (Read-Only)
Phase : 2 (Read-Only)
Status : Ready (Read-Only)
DLC/LLC___________________
__________
_______
DLC/LLC Config : En Strict 802.2 : Disabled
OTHER_____________________
__________
_______
Panic Behavior : DUMP_AND_HALT
Link Type : AUTO
HW Acceleration : 1
LAA : 001A4B1DEAAB
HP XML Services : Enabled
SUPPORT___________________
__________
_______
Support Contact : Not Specified
Phone Number : Not Specified
Product Support URL:
http://www.hp.com/go/jetdirect Tech. Support URL :
http://www.hp.com/go/supportStart Free Trial