How do I enable a printer in AIX?

  • Log into the server as root
  • Enable the UV print queue:
usa +o -p lp1
  • Enable the AIX print queue:
enable lp1
  • Check the status of the print queue:
lpstat -plp1
  • If the status is stuck in SENDING, run fixq, press ENTER followed by the printer name (ie: lp1):
fixq
  • If these commands do not work, it may be necessary to “power cycle” (unplug device from power and plug it back in) the printer AND print server, then repeat the commands above such as “enable lp1” or “fixq”.

You may want to try to “ping” the printer.  From the server, you can type “ping lp1” or from your PC, you can type “ping 192.168.x.x” (substitute the actual IP address for the printer). If you cannot ping the printer, check that the IP is correct, check the switch, cable, etc.  If you cannot ping the printer, it will never print from Eclipse.

Sometimes there is a job “stuck” in the queue that needs to be removed so the rest can print. This will often show up with a job stuck in “sending” when you run this command: lpstat -plp1 (lp1 is an example). You can cancel the job with the following command:

cancel (job number)

Example:

Queue   Dev   Status    Job Files              User         PP %   Blks  Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
lp13    @lp13 SENDING    51 STDIN.46158        root                   4   1   1
              QUEUED    161 STDIN.7472         root                   4   1   2
cancel 51
To cancel all jobs on lp13, you can type: cancel lp13

How to I remove an OS user from Linux?

Warning: As always, please exercise caution when performing system maintenance, especially when initiating processes that can potentially delete data.

Locking a User Account

In most cases, there is no reason to remove an OS user. It is better to simply lock down the account to prevent any future login.

Remove User

How do I find my Linux server’s IP address?

To find the LAN IP address, open a shell and run:

/sbin/ifconfig

Look for the inet addr in the output, which will look like below:

eth0      Link encap:Ethernet  HWaddr 00:22:19:84:9B:E8
          inet addr:192.168.1.89  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::222:19ff:fe84:9be8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8380921 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8360250 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:806377947 (769.0 MiB)  TX bytes:752649055 (717.7 MiB)
          Interrupt:169 Memory:f8000000-f8012100

How do I find my AIX server’s IP address?

To find the LAN IP address, open a shell and run:

ifconfig -a

Look for the inet addr in the output, which will look like below:

en0: flags=5e080863,c0
        inet 172.17.188.74 netmask 0xfffffe00 broadcast 172.17.189.255
         tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1