HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding printer remotely
Operating System - HP-UX
1826070
Members
3928
Online
109690
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
08-16-2001 01:06 PM
08-16-2001 01:06 PM
This is a restatement of my previous question to clarify some things.
I'm not trying to add a remote printer, and the .rhosts file for allowing a remote login is already in place on all my machines.
I maintain a system of HP-Tac4's that get their user information via a networked file system. What I'm attempting to do is to remotely add a printer (SCSI connection to each machine)from my server via a script.
The problem that I'm having is that the lpadmin command doesn't create the device file for the printer. Does anyone know what command does create that file? SAM will add a printer without any problems. Once a printer is created with SAM, addition of printers with the lpadmin command does not cause any problems.
Thanks
Jonathan
I'm not trying to add a remote printer, and the .rhosts file for allowing a remote login is already in place on all my machines.
I maintain a system of HP-Tac4's that get their user information via a networked file system. What I'm attempting to do is to remotely add a printer (SCSI connection to each machine)from my server via a script.
The problem that I'm having is that the lpadmin command doesn't create the device file for the printer. Does anyone know what command does create that file? SAM will add a printer without any problems. Once a printer is created with SAM, addition of printers with the lpadmin command does not cause any problems.
Thanks
Jonathan
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 01:21 PM
08-16-2001 01:21 PM
Solution
Hi Jonathan,
You could use mknod (man 1m mknod) to create special files. You can run this as remsh from your machine.
Another thing you could do is look at the /var/sam/log/samlog.
Look at what is sam doing (search for mknod in the logfile). Once you figure out what it is doing you can create the device file and then add the printer using the lpadmin command.
-HTH
I am RU
You could use mknod (man 1m mknod) to create special files. You can run this as remsh from your machine.
Another thing you could do is look at the /var/sam/log/samlog.
Look at what is sam doing (search for mknod in the logfile). Once you figure out what it is doing you can create the device file and then add the printer using the lpadmin command.
-HTH
I am RU
They think they know but don't. At least I know I don't know - Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 04:18 PM
08-16-2001 04:18 PM
Re: Adding printer remotely
Hi Jonathan,
I uses this command on my script.
/usr/sam/lbin/lpmgr -a -xlocalname=$LPRINTER,default=n,fence=0,rc=y,is_bsd=n,remname=$PRINTER,remsys=$HOST,remcancel=rcmodel,remstatus=rsmodel
and for lpadmin
/usr/sbin/lpadmin -p$LPRINTER -orm$HOST -orp$PRINTER -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel
if [ $? != 0 ]; then
echo "lpadmin failure exiting"
# exit 1
fi
Sachin
I uses this command on my script.
/usr/sam/lbin/lpmgr -a -xlocalname=$LPRINTER,default=n,fence=0,rc=y,is_bsd=n,remname=$PRINTER,remsys=$HOST,remcancel=rcmodel,remstatus=rsmodel
and for lpadmin
/usr/sbin/lpadmin -p$LPRINTER -orm$HOST -orp$PRINTER -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel
if [ $? != 0 ]; then
echo "lpadmin failure exiting"
# exit 1
fi
Sachin
Is photography a hobby or another way to spend $
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP