- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lpstat HPDPS error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 10:39 AM
07-30-2001 10:39 AM
lpstat HPDPS error
I am getting the following error when I do a lpstat.
lpstat
lpstat: HPDPS error (Cannot determine the local IP address.)
lpstat: HPDPS error (Cannot determine the local IP address.)
I recently changed the IP address of the server via sam and changed the hostname via set_parms hostname.
What do I need to do to make lpstat content?
Thanks!
-Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 11:00 AM
07-30-2001 11:00 AM
Re: lpstat HPDPS error
I think you need to stop & restart the pd processes. First, however, I would make sure name resolution is ok. If you are running DNS, you need to update the DNS tables to refelct the new hostname/IP address. If you are running NIS, the NIS hosts map needs to be updated.
Finally,
cd /sbin/init.d
./pd stop
./pd start
I think that will fix you.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 11:18 AM
07-30-2001 11:18 AM
Re: lpstat HPDPS error
I've run into this problem with HPDPS before. The HPDPS software stores the IP address of the printer inside of the HPDPS configuration, even if you specified a hostname when you created the physical printer. You'll have to use the 'pdset' command to change the 'printer-tcpip-internet-address' attribute for the printer.
Here are the commands to set the IP address for a sample printer named 'it_01' to be 10.1.2.4:
pddisable it01
pdset -c printer -x "printer-tcpip-internet-address=10.1.2.4" it_01
pdenable it01
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 11:18 AM
07-30-2001 11:18 AM
Re: lpstat HPDPS error
We are looking at files first for DNS resolution. If I do a nslookup $(hostname) it comes back with the IP address???
-Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 11:37 AM
07-30-2001 11:37 AM
Re: lpstat HPDPS error
If you aren't using HPDPS at all, you should be able to turn it off. Do an /sbin/init.d/pd stop, and then turn it off in /etc/rc.config.d/pd. Set the PD_CLIENT to 0.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 11:55 AM
07-30-2001 11:55 AM
Re: lpstat HPDPS error
I am not running hpdps. Now lpstat comes back with the HPDPS error.
What else to I need to check or change to make lpstat work with out the error message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 12:23 PM
07-30-2001 12:23 PM
Re: lpstat HPDPS error
Is your hostname and IP address resolving correctly when you do an 'nslookup'?
Have you tried stopping and restarting the lpsched daemon?
Have you tried going into SAM and seeing if you have any printers/spoolers/supervisors created under HPDPS? I know you aren't using it but maybe someone created an object in there once.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 12:42 PM
07-30-2001 12:42 PM
Re: lpstat HPDPS error
lpstat didn't return this message until the hostname and IP was changed.
There are not any hpdps printers setup in sam.
ALSO, This server used to be part of a ServiceGuard cluster. When it was decommissioned as part of the cluster that is when its IP and hostname was changed.
-Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 12:55 PM
07-30-2001 12:55 PM
Re: lpstat HPDPS error
Have you rebooted the system since you changed the IP address?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 12:58 PM
07-30-2001 12:58 PM
Re: lpstat HPDPS error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 01:00 PM
07-30-2001 01:00 PM
Re: lpstat HPDPS error
Are you running the lpstat command as root or as a regular user?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 01:02 PM
07-30-2001 01:02 PM
Re: lpstat HPDPS error
Does the 'lp' command work?
Did you have anything under /var mounted as another filesystem? Specifically, did you mount /var/spool as a shared filesystem to take spool files with you during a failover? (Don't look at me like that, I've done it before!) :)
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 01:17 PM
07-30-2001 01:17 PM
Re: lpstat HPDPS error
I am running the command as root. /var/spool was not part of the cluster. I am able to print to a printer. There are two jet direct printers setup on the system.
-Brad
#lpstat -t
scheduler is running
no system default destination
device for g001: /dev/null
device for g002: /dev/null
lpstat: HPDPS error (Cannot determine the local IP address.)
g001 accepting requests since May 18 09:51
g002 accepting requests since May 18 09:52
lpstat: HPDPS error (Cannot determine the local IP address.)
printer g001 is idle. enabled since May 18 09:53
fence priority : 0
printer g002 is idle. enabled since May 18 09:52
fence priority : 0
lpstat: HPDPS error (Cannot determine the local IP address.)
lpstat: HPDPS error (Cannot determine the local IP address.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 01:24 PM
07-30-2001 01:24 PM
Re: lpstat HPDPS error
I know you aren't running HPDPS, but maybe it has gotten corrupt or confused. You can rename the /var/opt/pd/basicdsd.db file and try bouncing pd again.
Try looking in the /var/opt/pd/pdclientd directory. There are some log files in there and they might give us a clue about what it is complaining about.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 01:32 PM
07-30-2001 01:32 PM
Re: lpstat HPDPS error
I looked at the log files and it didn't have any helpful information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 01:39 PM
07-30-2001 01:39 PM
Re: lpstat HPDPS error
Have you looked in /var/adm/lp/log for any error messages/clues?
Another thing to look at is in the /var/spool/lp/request directory. There is a PDRequest directory in that that takes requests for printing to HPDPS. Do you have that directory? Is it empty? While you are in the request directory, do you have any print queue directories in there that don't show up in lpstat?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 03:17 PM
07-30-2001 03:17 PM
Re: lpstat HPDPS error
In /var/spool/lp/request there is a PDrequest directory but it is empty.
I did not have the lpstat HPDPS message before I changed the hostname/IP.
I will reboot the server again tomorrow.
-Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 07:09 PM
07-30-2001 07:09 PM
Re: lpstat HPDPS error
Another thing to check is the /etc/pdclient.conf file. It should have 644 permissions.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2001 01:33 PM
07-31-2001 01:33 PM
Re: lpstat HPDPS error
The permissions are set correctly on pdclientd.conf.
New info:
When I go into set_parms hostname I get the following message:
dhcpdb2conf(ERR): main, setdhcpent() failed to access client database
The server is not setup to be a dhcp server. I installed phne_19241 because I saw note on the itrc about dhcp patches.
-Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 07:41 AM
08-01-2001 07:41 AM
Re: lpstat HPDPS error
Are you still having the problem with lpstat?
It looks like lpstat tries to report on the status of HPDPS printers also, and the error you are getting is coming from HPDPS. Can you do an nslookup on your two printers g001 and g002, and their IP addresses?
If you aren't running HPDPS, try doing a '/sbin/init.d/pd stop' and then try your lpstat. Maybe if lpstat knows HPDPS isn't running it won't complain?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 07:46 AM
08-01-2001 07:46 AM
Re: lpstat HPDPS error
The printers are jetdirect printers. If I do a nslookup by IP address on them I get a name back from DNS on one and not on the other.
They are configured in jetadmin by IP address.
-Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 07:55 AM
08-01-2001 07:55 AM
Re: lpstat HPDPS error
I'd try fixing the DNS entry for the printer that doesn't come up, and then see what you get.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 06:00 AM
01-17-2003 06:00 AM
Re: lpstat HPDPS error
With all the answers I still cannot solve the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 08:19 AM
01-17-2003 08:19 AM
Re: lpstat HPDPS error
"Cannot determine the local IP address" really seems to point to a name resolution issue and it seems to be the hostname/ip of the host your are sitting on when you do the lpstat or localhost/127.0.0.1.
Do you have an nsswitch.conf configured? If not, do so with "hosts files [NOTFOUND=countinue] dns". And check read permission for other's.
Keep in mind that nslookup could handle nsswitch.conf different from normal resolvers, especially a not existing nsswitch.conf.
Then you should check, if your local ip and 127.0.0.1 are configured in your local /etc/hosts. These ones shouldn't be exclusive in the dns database, but always held locally.
Regarding hpdps: To completely get rid of hpdps, besides checking PD_CLIENT in /etc/rc.config.d/pd, you should also check PD_SPOOLERS and PD_SUPERVISORS to be empty. Otherwise hpdps spoolers or supervisors could be started and confuse the lpstat.
Cheers,
Michael