Operating System - HP-UX
1751914 Members
5475 Online
108783 Solutions
New Discussion юеВ

Re: printer and memory slot info: using commands

 
zen_shrikant
Occasional Contributor

printer and memory slot info: using commands

Hello all
Please help to get the following info on HPUX:
Both PARISC & Ia64.

I need to write a script to get this info:
Printer - driver name and printer name
Memory тАУ slot number, size of memory in that slot and speed (As in Mhz)

Regds....
4 REPLIES 4
sujit kumar singh
Honored Contributor

Re: printer and memory slot info: using commands

Hi Shri,

can resort to take help of the cstm command.
refer to man 1M for cstm.


in normal command scene,
you can use,

can take help of cstm.


#cstm
cstm>map
cstm>selall
cstm>info;wait
cstm>infolog

you can save , print or filter the O/ps.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1311669

can follow the script as Pete Uses or
can have a look at the formatting that Ganeshan suggests.



regards
sujit
Johnson Punniyalingam
Honored Contributor

Re: printer and memory slot info: using commands

Hi Shrikant,

You no need to write a script to get this info,

Please check the nickel.script which HP has made for us, Its very Usefull,

You Just need to upload the nickel.script file to /tmp directory, run the nickel.script as root user and Information you are looking for created in HMTL formal,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Bill Hassell
Honored Contributor

Re: printer and memory slot info: using commands

> Printer - driver name and printer name

There is no printer driver (HP-UX is not a PC). There is a printer script that helps with formatting plain ASCII text. The original script is copied and renamed when a printer is created, and the different scripts so not have any consistent identification method (like a what string). You have to read the beginning of each printer's script but there isn't a lot of useful information. The active scripts are located in /etc/lp/interface and also /etc/lp/interface/model.orig.

To list all the printers:

lpstat -v

(lpstat -t provides more details but is extremely slow when any remote printer is offline or unreachable due to long timeout values (not settable).


Bill Hassell, sysadmin
skt_skt
Honored Contributor

Re: printer and memory slot info: using commands

"/opt/hpnpl/bin/addqueue -l" will list the drivers.

"lpstat -a " should list the printers and also /usr/sam/lbin/lpmgr -l"