Here are three ways to configure a remote outque to a LAN printer. The last option resolves the IP address using the actual host name from the DNS Server thereby removing hard-coded IP addresses regardless if the DNS Server IP address changes.
1. Create an outq with hard-coded IP address.
CRTOUTQ OUTQ(QUSRSYS/STUHP4) RMTSYS(*INTNETADR)RMTPRTQ('d1prn') AUTOSTRWTR(1)CNNTYPE(*IP) DESTTYPE(*OTHER)TRANSFORM(*NO) USRDTATFM(QGPL/TSPRWPR) MFRTYPMDL(*HP4)INTNETADR('100.101.109.2') DESTOPT('XAIX XAUTOQ') SEPPAGE(*NO) TEXT('Studio HP4 Laser')
2. Create an outq with host name from the AS400 host table that contains the hard-code IP address.
CRTOUTQ OUTQ(QUSRSYS/STUHP4) RMTSYS(STUHP4)RMTPRTQ('d1prn') AUTOSTRWTR(1)CNNTYPE(*IP) DESTTYPE(*OTHER)TRANSFORM(*NO) USRDTATFM(QGPL/TSPRWPR) MFRTYPMDL(*HP4)INTNETADR('100.101.109.2') DESTOPT('XAIX XAUTOQ') SEPPAGE(*NO) TEXT('Studio HP4 Laser')
In addition, use CFGTCP, Option 10 "Work with TCP/IP host table entries" to enter host name and hard-coded IP address. This option is useful if you need to override the DNS Se
To continue reading for free, register below or login
To read more you must become a member of Search400.com
');
// -->

rver IP address.
3. Create an outq with the host name from the DNS Server. This way, the IP address is maintained in one place.
CRTOUTQ OUTQ(QUSRSYS/STUHP4) RMTSYS(RISTUHP4)RMTPRTQ('d1prn') AUTOSTRWTR(1)CNNTYPE(*IP) DESTTYPE(*OTHER)TRANSFORM(*NO) USRDTATFM(QGPL/TSPRWPR) MFRTYPMDL(*HP4)INTNETADR('100.101.109.2') DESTOPT('XAIX XAUTOQ') SEPPAGE(*NO) TEXT('Studio HP4 Laser')
In addition, use CFGTCP, Option 12 "Change TCP/IP domain information" to enter the DNS Server IP address in the "INTNETADR" keyword. To ensure this is working, ping the actual DNS Host name instead of the IP address.
==================================
MORE INFORMATION ON THIS TOPIC
==================================
The Best Web Links: Tips, tutorials and more.
Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.
Read this Search400.com Featured Topic: Managing your iSeries.
Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.