Re: check IP address of printers

From: Martha Starkey (martha.starkey_at_sun.com)
Date: 04/25/03


Date: Fri, 25 Apr 2003 08:44:49 -0400


>>>is there any commands to check IP addrss of Printers in solaris?
>>>
>>
>>I'm afraid you're not being clear about what you have in mind.
>>
>>Are you asking how to discover which IP address has been configured
>>into the Solaris print system for one or more printers?
>>
>>Are you asking how to verify that the printer or hostname previously
>>configured into the Solaris print system really is a printer?
>>
>>Are you asking how to find out if an IP address is reachable from
>>a Solaris machine, when that IP address happens to be a printer?
>>
>>
>>Since we can't read your mind, to us your question could mean any
>>of those three things (or even all of them), but they each have a
>>different answer. We need to know what problem you're trying to
>>before we can know which answer to give you.
>>
>> -Greg
>
>
> sorry i am refering more likely to
> "how to discover which IP address has been configured
> into the Solaris print system for one or more printers?"
>
> thanks

In that case, you should refer to /etc/hosts (or whatever you are using
for naming if not local files), the output of the "lpstat -p printername
-l" command, the /etc/printers.conf file and any 3rd party software that
is used to configure the printers (like Jetadmin).

Ideally, you would have any of your network printers identified in the
/etc/hosts file (or DNS or whatever) with some name. But since the
Solaris lpadmin command (and the JetDirect utility) will accept IP
addresses, you may have to look elsewhere.

If a network printer has been configured with the lpadmin command AND
the netstandard interface (a necessary distinction), then the lpstat -p
printername -l command will yield an OPTIONS: line that will have an
output like "dest=printerhostname" or "dest=10.0.0.2". (That same info
will also appear in the /etc/lp/printers/printername/configuration file.)

For HP Jetdirect configured printers, you can "grep PERIPH
/etc/lp/interfaces/printername" to output the name or IP addresses given
to the hppi configuration program.

So what is /etc/printers.conf for? It should correctly contain an entry
for ALL printers on the system, but any printer configured as "remote",
(printer defined on another system) will have an entry here and no where
else. If you have network printers defined as remote printers, then you
would need to see what name or IP address appears in after the "=" sign
in the "bsdaddr=" line. You don't want to setup network printers as
remote for many, many reasons, but that's another thread.

One other files that may come into play here:

If you know you have a correct /etc/hosts file (or DNS or whatever) but
name resolution is not correct, check the /etc/nsswitch.conf file,
specifically the hosts line to ensure the appropriate keyword appears.

If you are using bootp to set the ip addresses of your printers
(available through the HP JetDirect utility), checkout the /etc/bootptab
file to see what IP addresses have been configured for what MAC addresses.



Relevant Pages

  • Re: Another CUPS rant.
    ... > I guess I periodically need to do a CUPS rant. ... > don't beleve me try to change the configuration of a printer using ... > printers or print servers you quickly get yourself in trouble. ... > probably can also be done in the web interface. ...
    (Fedora)
  • Re: "Access denied, unable to connect" viewing shared print queues
    ... When the client opens the queue remotely the server connects to the client ... The printers are installed on ... > configuration of the lockdown policy: ...
    (microsoft.public.win2000.printing)
  • Re: "Access denied, unable to connect" viewing shared print queues
    ... > access denied contacting the spooler service on the client machines. ... The printers are installed on ... >> configuration of the lockdown policy: ... >> Directory pruning interval Not configured ...
    (microsoft.public.win2000.printing)
  • Re: "Access denied, unable to connect" viewing shared print queues
    ... Windows Printing Team ... The printers are installed on ... > configuration of the lockdown policy: ... > Directory pruning interval Not configured ...
    (microsoft.public.win2000.printing)
  • RE: Launching a New user
    ... If the new account cannot use network printers when first logon SBS ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)