1832444 Members
3387 Online
110042 Solutions
New Discussion

Re: A few questions

 
SOLVED
Go to solution
SUZANNE CANNON
New Member

A few questions

I have come across these questions in working with our HP-UX 10.20 K370. If anyone has a solution for any of them, please help.

1. Can you make a remote Lexmark printer print landscape without using jetadmin? I set the printers up, but ALL of the printers use the default driver. I can't make any changes to that.
2. Can you make a copy of a printer? I want to have one printer with two names and two sets of properties.
3. Can I reset the internal modem? If so, how?
4. Is there a way to keep people from dialing into our modem? People are continuously trying to dial into our modem. When you're office is the server room, it gets to be irritating.
7 REPLIES 7
Alan Riggs
Honored Contributor

Re: A few questions

1. Can you make a remote Lexmark printer print landscape without using jetadmin? I set the printers up, but ALL of the printers use the default driver. I can't make any changes to that.
Yes, depending upon the driver you are using. lp -o landscape is a common flag. Check the driver script in /etc/lp/interface/model.orig for the flag appropriate ot your driver.

2. Can you make a copy of a printer? I want to have one printer with two names and two sets of properties.
You can define as many queues as you wish to address the same printer. A queue is simply a logical connection to the physical device.

3. Can I reset the internal modem? If so, how?
Not certain about what your "reset" needs are. You and manipulate the device file, certainly. You can even remove and recreate it.

4. Is there a way to keep people from dialing into our modem? People are continuously trying to dial into our modem. When you're office is the server room, it gets to be irritating.
You can configure your modem for dial out only. The easiest way is probably through sam.
SUZANNE CANNON
New Member

Re: A few questions

I guess I should have made myself even clearer on the first question.
We are using an application on Windows to access a database on our HP. The users then print from the database. I setup the printer to print directly from the application to the printer. The users never see the flags or commands. I need to set it so they can print from other applications portrait and from this particular application landscape...
I can't just add the flag to the /etc/lp/interface/model.orig driver.
Alan Riggs
Honored Contributor

Re: A few questions

You don't need to add the command to the driver. The driver will tell you the appropriate flag to add to the command line you access through your application. For instance: I have a print queue BOCMIS4, which uses an HP LJIII driver. To print landscape on that printer I issue the command:

lp -d BOCMIS4 -o landscape filename

So, wherever you have configured the printer in your application, just add the appropriate flag to the lp command.
SUZANNE CANNON
New Member

Re: A few questions

But the users are the ones printing. They don't see/use the command line. They have a GUI interface. They don't even know they are using HP-UX. All they know is that when they click on the Banner icon they get to what they want. And once inside, all they do is select the desired printer and it prints. I can't add that command to the application because some users prefer to print portrait to the same printer, depending on the report they are printing.
Alan Riggs
Honored Contributor
Solution

Re: A few questions

Well, there has to a configuration of printers in the application at some point, right? You have to tell the application what command to issue to the system when the user clicks the icon. You should be able to add another printer icon in the application which issues the lp command with the -o landscape flag.

We use Baan (unfortunately) as an erp package. Our solution is to define two "Baan printers" for each print queue. (BOCMIS4a BOCMIS4b, for instance). One prints landscape, one prints portrait.
James Odak
Valued Contributor

Re: A few questions

to keep your modem from accepting dial in connections you need to turn the auto answer off

reseting the modem and turning the auto answer off can be done inthe same manor
(im sure there is some gui to do this but here goes anyways)
you need to connect directly to you modem
cu -l /dev/cul0p1
or cu -l /dev/cul0p1 dir
(cul0p1 is the adress of the modem, best way to find this is to tail /usr/lib/uucp/Devices
ther should be an entry that says ACU cul0p1 or osme addres)
anyways connecting directly to the modem depends on your set up posibly
one of the above cu commands should work

once connected
type AT&V
this should give you your setting
AT&F will reset to factory settings
ats0=0 should turn off autoanswer on most modems
ats0=1 would turn it back on
once set you have to save
at&w&w1
then to exit type
~.
Patrick Wessel
Honored Contributor

Re: A few questions

Suzanne,

What is your point in preventing people from dialing into you modem? Is it a matter of security or are you just annoyed by the noise?
In case you are unsure about the security it's a good idea to set the S0 register to 0 (like James mentioned) or set the getty to off. If it's an internal modem (K- or D-Class) or modem connected to the remote access port on any other HP9000/800 you can 'cut' the serial connection between the server and the modem by pressing 'Ctrl B' on the console and type 'lr' at the CM> Prompt. But this would effect the dial out to.
If you are simply annoyed by the noise of the modem I would prefer to switch the sound off. Usually this is handled by atMx. M0 would turn the speaker off, M1 turns it on as long as the modems do the sync

There is no way to reset an internal modem except turning the whole system off!
There is no good troubleshooting with bad data