Hi All,
For some reason, I need to have the printer detail from the AIX. Following are the part of /etc/qconfig and /etc/hosts. Can any one of you please help me with an awk some other option to get the detail ? I have mentioned the required output format at the end.
/etc/qconfig
s63lb1:
device = @s63lb1
host = s63lb1
rq = zebra
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
@s63lb1:
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piorlfb -f !
s63lb2:
device = @s63lb2
host = s63lb2
rq = zebra
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
@s63lb2:
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piorlfb -f !
s10comp2:
device = @s10comp2
host = s10comp2
rq = HPLaserj
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
@s10comp2:
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piorlfb -f !
/etc/hosts
192.168.100.122 s63lb1
192.168.100.123 s10comp2
192.168.100.124 roh_elc
192.168.100.125 s63lb2
192.168.100.126 roh_evl2
192.168.100.127 roh_lh750c
192.168.100.128 roh_star2
192.168.100.129 roh_arc2k2
Required out put format
Host_name ip_address RQ_Name
s63lb1 192.168.100.122 zebra
s63lb2 192.168.100.125 zebra
s10comp2 192.168.100.123 HPLaserj
Thank you in advance ...
Regards