Three ways to configure remote outque to LAN printers

Three ways to configure remote outque to LAN printers

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 Server 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)

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

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.


This was first published in November 2002

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.