10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi ALL,
I am trying to collect and print all the network interface details in linux shell script.
operating system : centos 7
Below is my shell script :
#!/usr/bin/env bash
for i in $(ip link show | awk -F: '$1>0 {print $2}')
do
if ; then
echo -e... (2 Replies)
Discussion started by: balu1234
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
We have a Unix 3.2v5.0.5.
I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts).
This is the configuration file :
Code:
root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies
3. SCO
Hello All,
I am upgrading a server from SCO to LINUX (CENTOS) and have about 50 odd printers which i have transferred.
The only problem is, that they have hard coded printer commands which my new version of CUPS does not understand.
For example:
"-o nb -tl60"
Once I know the... (1 Reply)
Discussion started by: stuaz
1 Replies
4. Solaris
Hello guys,
I'm having a problem at configuring an HP printer for solaris 2.5.1. Unfortunatly solaris did not support network printing until 2.6.x so i had to use jetadmin, wich suprisingly worked well the verry first time i installed the package.
Allthough the sparcstation witch i'm using is... (0 Replies)
Discussion started by: Goodfellas
0 Replies
5. UNIX for Advanced & Expert Users
I am installing a HP printer using ./hpnpcfg and I am getting the following:
Please enter selection: 5
Enter the network peripheral name or IP address: hpndlife
The following types of test files can be sent to the printer:
1) text file
... (1 Reply)
Discussion started by: likando
1 Replies
6. UNIX for Dummies Questions & Answers
I am installing a HP printer using ./hpnpcfg and I am getting the following:
Please enter selection: 5
Enter the network peripheral name or IP address: hpndlife
The following types of test files can be sent to the printer:
1) text file
... (0 Replies)
Discussion started by: likando
0 Replies
7. SCO
I have several printers setup but nothing prints.
I get the following error email
Subject: Status of lp request aclj3-2297
Your request aclj3-2297 destined for aclj3
encountered an error while printing on printer aclj3.
Reason for failure:
cat: cannot open 0: No such file or... (1 Reply)
Discussion started by: Jessie Nand
1 Replies
8. UNIX for Advanced & Expert Users
Iv'e been having a problem with printing that driving me CRAZY! I am trying to print a large file about 200-300 pgs, but the print job reaches a certain point then stops, the job does'nt finish.
Anyone have any suggestions? (2 Replies)
Discussion started by: dpadron
2 Replies
9. IP Networking
I am trying to set up TCP/IP printing to so we can remove the old novel server. The printer details have been added to the etc/hosts file correctly, and the printer added as a remote UNIX printer . However when a print job is issued lpstat -o displays the job, but it dosent move. Any help yould... (2 Replies)
Discussion started by: eel_king
2 Replies
10. IP Networking
When I send a request to print to a HP4si networked printer, It prints an extra page with User, Host, Class & job info.
Is it possible to eliminate this page? (2 Replies)
Discussion started by: sbuck331
2 Replies
setnetlp(1M) setnetlp(1M)
NAME
setnetlp - configure the LP spooling system for network printers
SYNOPSIS
/usr/sbin/setnetlp
/usr/sbin/setnetlp -p printer [options]
/usr/sbin/setnetlp -x printer
DESCRIPTION
The command configures network printers in the LP spooling systems with specified printer model interface file. It is used to add and
remove specified printer that is referred as a LP destinations, change configuration of the printer if the printer exists.
Network printers that support lpd protocol or JetDirect interface can be configured by The command is a shell procedure. It calls lpad-
min(1M) command for lpd printer configuration. It may also call addqueue(1) and removequeue(1) commands for configuring printers with Jet-
Direct interface when the optional software HP JetDirect Printer Installer for Unix is installed on the system.
Exactly one of the -p, -x options or no options must be present for every legal invocation of
-p printer Names a printer to which all of the options below refer. If printer does not exist, it will be created.
-x printer Removes the printer from the LP spooling system. The printer is a LP destination configured in the LP spooling sys-
tem. No other options are allowed with -x.
The following options are required for -p and can appear in any order.
-orm machine The name of the remote machine or IP address of the network printer is machine.
-om model This option selects a printer model interface program for printer. The model is one of the model file name at
/usr/lib/lp/model/* supplied with the LP software or generated by psmsgen(1M). Refer to lpadmin(1M) Models for
details.
One and only one of the following options is required for -p and can appear in any order.
-orp rprinter The name of the remote printer queue that has configured on the remote machine is rprinter. This option is required
to configure lpd printer and can not be used with -jd option.
-jd When this option is specified, configures the printer using commands provided by HP JetDirect Printer Install-
er for Unix
Interactive terminal user interface (TUI) will be invoked when is invoked without any options. At the TUI, values of all options described
above can be set. In addition, for some printer model, defaults of model interface options also can be customized. When HP JetDi-
rect Printer Installer for Unix is available on the system, some recommended initial values for options may be provided for some printer
model. The model customization support feature by is available only for TUI. No customization is performed by non-interactive invocation
of To customize model options for a printer without the TUI, pre-customized model file needs to be generated before running for configuring
the printer.
EXAMPLES
Assuming a LIPS printer supported lpd protocol on a network as remote printer host name lphost and remote printer name lipslp the command:
/usr/sbin/setnetlp -p netlp -orm lphost -orp lipslp -om LIPS4
causes the spool system to use the local printer netlp and the local model file LIPS4.
FILES
SEE ALSO
lpadmin(1M), addqueue(1), removequeue(1), psmsgen(1M)
setnetlp(1M)