Configure a network printer on solaris

Hi, guys, recently my os changed to solaris 10, and i want to share the printer with another computer whose os is also solaris. Is there anyone could give me a hint to fix this problem.

lpadmin -p hp5200 -v /dev/null -A write -n /usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_5-hpijs.ppd.gz -i /usr/lib/lp/model/netstandard_foomatic -o dest=hpprint:RAW -o protocol=bsd -I postscript -u allow:all
lpadmin -p hp5200 -D "Laser printer network"
lpadmin -d hp5200
enable hp5200
accept hp5200

i modified the /usr/hosts

192.168.0.114 hpprint.

all have been done, i can't find the print while i try to print a doc.

My recommendation would be to use CUPS, it has more user friendly interface than lp. You can get CUPS packages from sunfreeware.com