oes08-advanced iprint tools / lab · oes08-advanced iprint tools / lab copying all or part of this...

14
www.novell.com Novell Training Services ATT LIVE 2012 LAS VEGAS Advanced iPrint Tools Lab OES08 Novell, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Upload: others

Post on 04-Nov-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

Nove

Advanced iPrint ToolsLab

www.novel l .comNovell Training Services

AT T L I V E 2 0 1 2 L A S V E G A S

O E S 0 8

ll, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 2: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

OES08-Advanced iPrint Tools / Lab

Novel

Legal Notices

Novell, Inc., makes no representations or warranties with respect to the contents or use of this documentation, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc., reserves the right to revise this publication and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes.

Further, Novell, Inc., makes no representations or warranties with respect to any software, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc., reserves the right to make changes to any and all parts of Novell software, at any time, without any obligation to notify any person or entity of such changes.

Any products or technical information provided under this Agreement may be subject to U.S. export controls and the trade laws of other countries. You agree to comply with all export control regulations and to obtain any required licenses or classification to export, re-export or import deliverables. You agree not to export or re-export to entities on the current U.S. export exclusion lists or to any embargoed or terrorist countries as specified in the U.S. export laws. You agree to not use deliverables for prohibited nuclear, missile, or chemical biological weaponry end uses. See the Novell International Trade Services Web page (http://www.novell.com/info/exports/) for more information on exporting Novell software. Novell assumes no responsibility for your failure to obtain any necessary export approvals.

Copyright © 2012 Novell, Inc. All rights reserved. No part of this publication may be reproduced, photocopied, stored on a retrieval system, or transmitted without the express written consent of the publisher.

Novell, Inc., has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed on the Novell Legal Patents Web page (http://www.novell.com/company/legal/patents/) and one or more additional patents or pending patent applications in the U.S. and in other countries.

Novell, Inc.

404 Wyman Street, Suite 500

Waltham, MA 02451

U.S.A.

www.novell.com

Online Documentation: To access the latest online documentation for this and other Novell products, see the Novell Documentation Web page (http://www.novell.com/documentation).

Novell Trademarks

For Novell trademarks, see the Novell Trademark and Service Mark list (http://www.novell.com/company/legal/trademarks/tmlist.html).

Third-Party Materials

All third-party trademarks are the property of their respective owners.

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

Version 12

l, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 3: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

Contents

Novell, In

SECTION 1 iPrint Duplicate and Synchronization 5

Exercise 1-1 View non-recommended configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Exercise 1-2 Exploring The iPrint Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Exercise 1-3 Binding the Print Manager to a Transferable DNS Name . . . . . . . . . . . . . . . . . . . . 8Exercise 1-4 Using the iPrint Duplication Script. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

3Version 1

c. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 4: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

OES08-Advanced iPrint Tools / Lab

Novel

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

Version 14

l, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 5: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

iPrint Duplicate and Synchronization

Novell, In

S E C T I O N 1 iPrint Duplicate and Synchronization

In this exercise you will first explore the current set up, then prepare it for duplication and the set up synchronization, creating a redundant and fault tolerant printing system.

1. “View non-recommended configuration” on page 6

2. “Exploring The iPrint Environment” on page 7

3. “Binding the Print Manager to a Transferable DNS Name” on page 8

4. “Using the iPrint Duplication Script” on page 10

First, lets look at a often used but not recommended way to configure iPrint

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

5Version 1

c. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 6: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

OES08-Advanced iPrint Tools / Lab

Novel

Exercise 1-1 View non-recommended configuration

Look at how things are currently configured on the WIN7 workstation.

1. From the Win7WorkstationVM select Start > Devices and Printers

2. look for the installed iPrint printer notice that printer02 is bound to the server name

printer02 on ipp://iprintone.da.com

(End of Exercise)

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

Version 16

l, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 7: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

iPrint Duplicate and Synchronization

Novell, In

Exercise 1-2 Exploring The iPrint Environment

Now lets take a wider look at how things are configured in our lab

1. Send a test print job from the iPrint printer installed on the Windows 7 workstation

a. From the Devices and Printers window right click on the printer named printer02 on ipp://iprintone.da.com then select Printer Properties

b. Click Print Test Page > Close >Ok

2. Check that the job went through the iprintone’s print manager

a. Open Firefox on the Win7 Workstation

b. from the bookmark tool bar select iprintone > PsmStatus

c. At the Authentication Required window select OK

d. Note that for printer02 the Jobs Printed Since is now set to one

3. View the iPrint Configuration

a. Click the Advanced iPrint Manager Information button

b. Click the Generate Report link

c. Check the following boxes

LRP Enabled

Direct Print Enabled

SSL Required for iPrint Access

Associated NDS Printer

Auditing Enabled

Banner

The click Generate Report

d. After reviewing the report click the Back button

e. Now check the boxes for

Win 7 (32 bit)

Win 7 (32bit) Driver Profile

4. Check the Configuration on iprinttwo

a. From the Firefox booklmark tool bar select iprinttwo> PsmStatus

b. At the Authentication Required window select OK

c. Notice that there are no configured printers on this server

(End of Exercise)

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

7Version 1

c. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 8: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

OES08-Advanced iPrint Tools / Lab

Novel

Exercise 1-3 Binding the Print Manager to a Transferable DNS Name

In this exercise, you will bind the print manager to a transferable DNS name. The advantage of this is the first, in the migration scenario it’s much easier to move the print manager from one server to another server. Secondly in subsequent exercises we will set up this printing environment to allow for fault tolerance and ease of recovery in a printing system failure.

1. Bind the print manager to a transferable DNS name

a. On the Windows workstation desktop open a putty session by double-clicking the putty icon.

b. From now putty configuration window in the saved sessions section select iprintone > load > Open

c. At the login as prompt enter root. then novell as a password.

d. At the prompt enter the following:

vi /etc/opt/novell/iprint/conf/ipsmd.conf

NOTE: Remember you can always use tab complete on any linux command line.

e. Change the PSMHostAddress line from iprintone.da.com to prntmgr

i. use the arrow keys to place the cursor at the start of the iprintone.da.com setting, then press the insert key

ii. Delete the current setting and enter the following: prntmgr

iii. Press the Esc key once then enter :wq and press Enter

f. Check the /etc/hosts file to verify that prntmgr resolves to 172.17.0.100

i. At the command line into the following: cat /etc/hosts

g. Restart the print manager by entering the following command at the command prompt: rcnovell-ipsmd restart

2. Verify the workstation updates the iPrint printer

a. Return to the workstation’s Devices and Printers.

b. Press the F5 key to refresh the printers list.

c. On the printer update notice select OK

d. On the notice that the printer has been updated select OK

NOTE: See TID 3476106 t learn how to suppress these pop-ups

3. Backup the DNS change from the print manager database to the XML copy

a. From the iprintone PmsStatus page select the Advanced iPrint Manager Information

b. Click the iPrint Manager Internal link.

c. Click the Backup Database button

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

Version 18

l, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 9: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

iPrint Duplicate and Synchronization

Novell, In

NOTE: This action will create a new backup of the database in XML format in the print manager directory.

Now the environment is set to accept the duplication and synchronization between two print managers on different servers.

(End of Exercise)

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

9Version 1

c. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 10: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

OES08-Advanced iPrint Tools / Lab

Novel

Exercise 1-4 Using the iPrint Duplication Script

In this exercise we will run the duplication script and complete the changes needed for a completely fault-tolerant iPrint solution. Then test that solution by adding a printer to the primary print manager and watching it be duplicated to the secondary.

1. Run the iPrint duplication script

a. Open a putty session on iprinttwo by double-clicking the putty icon on the workstation desktop highlighting ipinttwo.da.com and click open

b. At the login prompt enter root and password novell

c. at the prompt enter cd /tmp/iPrnt-Duplication/

d. Run the duplication script by entering at the prompt:

NOTE: Remember you can save yourself steps by using tab complete

./iPrint-Duplication-1.5.sh

e. At the question “Do you have a context created to contain your new iPrint objects?” Respond by entering: Y

f. At the question “Would you like trusted hosts set up between the two iPrint servers?” respond by entering: Y

g. At the question “what is the DNS or IP of the source iPrint server?” responded by entering: iprintone

h. At the question “are you sure you want to continue connecting?” respond by entering: yes

i. When presented with the Password: prompt enter novell

j. When asked to enter the eDirectory admin user enter: cn=admin,o=da

k. When asked for the password enter: novell

l. When asked about the Driver Store enter: Y

m. When asked about the print manager enter: Y

n. When asked to enter the contexts where the new printer objects will be created enter: ou=iprint2,ou=services,o=da

o. When asked to enter the IP or DNS name of the server holding a replica enter: iprinttwo

p. when asked if you would like to keep the same host address for the new print manager enter: Y

2. View the results of the script

a. View the iPrint Configuration on iprinttwo.da.com

i. From the Firefox bookmark tool bar select iprinttwo > PsmStatus

ii. Click the Advanced iPrint Manager Information button

iii. Click the Generate Report link

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

Version 110

l, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 11: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

iPrint Duplicate and Synchronization

Novell, In

iv. Check the following boxes

LRP Enabled

Direct Print Enabled

SSL Required for iPrint Access

Associated NDS Printer

Auditing Enabled

Banner

The click Generate Report

v. After reviewing the report click the Back button

vi. Now check the boxes for

Win 7 (32 bit)

Win 7 (32bit) Driver Profile

Notice that the are all the same as they were on iprintone

3. Update DNS

a. In the iprinttwo putty session at the prompt enter: vi /etc/hosts

b. Verify that prntmgr resolves to 172.17.0.101

c. In the putty session to iprinttwo enter: vi /etc/opt/iprint/conf/ipsmd.conf

d. Press the Insert key and change the PSMHostAddress from iprinttwo.da.com to prntmgr

e. Press the Esc key then enter: :wq

f. At the command prompt for iprinttwo enter rcnovell-ipsmd restart

g. On the win7 workstation select Start > Accessories

h. Right click Notepad and select Run as Administrator

i. Select File > Open

j. Select the drop down for Text Documents (*txt) then select All Files

k. Select the hosts file and select open

l. Edit the file so that prntmgr resolves to 172.17.0.101

save the changes and close the file

NOTE: In the “real’ world this would be handled at a DNS server so there would be no need to touch each user workstation

4. Observed print jobs go through iprinttwo and not iprintone

a. Send a test print job from the iPrint printer installed on the windows 7 workstation

i. From the Devices and Printers window right click on the printer named printer02 on ipp://prntmgr the select Printer Properties

ii. Click Print Test Page > Close >Ok

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

11Version 1

c. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 12: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

OES08-Advanced iPrint Tools / Lab

Novel

b. Check that the job went through the iprintone’s print manager

i. Open Firefox on the Win7 Workstation

ii. from the bookmark tool bar select iprinttwo > PsmStatus

iii. At the Authentication Required window select OK

iv. Note that for printer02 the Jobs Printed Since is now set to one

5. Review the iPrint sync configuration file

a. From the putty session for iprinttwo enter:

cat /tmp/iPrint-Sync/iPrint-Sync.conf

b. Scroll back and review the setting that have been pre filled out for you. if you have questions as to what anyone setting does be sure to ask the instructor

6. Create an iPrint printer on iprintone’s print manager

a. From the Firefox bookmark tool bar select iprintone > Novell iManager

b. At the iManager login screen enter the following:

Username: admin.da

Password: novell

Tree: DA-TREE

c. From the Roles and Tasks left pane select iPrint > Manage Print Manager

d. Using the search browse to and select PrintManager1.iprint1.services.da

e. Select OK

f. Click the iPrint Certificate Manager link

g. Scroll down and check the Allow the hostname prntmgr to be used with this certificate box and the select OK > OK

h. From the Roles and Tasks left pane select iPrint > Manage Print Manager

i. Using the search browse to and select PrintManager1.iprint1.services.da

j. Select OK

k. Select Printer Agents tab

l. Select Tasks > Create

m. Enter the following:

Printer name: printer06

DNS name or IP Address: 1.1.1.1

Windows 7 (32bit) drivers: (pick any one you like)

NOTE: It doesn’t matter what name or ip address you choose or driver this VMs only have the win 7 32 bit drivers installed

Select OK > OK

7. Run the iPrint sync script

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

Version 112

l, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 13: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

iPrint Duplicate and Synchronization

Novell, In

Now that the print manager on iprintone has a new printer which the server iprinttwo does not have, we will run the iPrint sync script to, A: synchronize the change to the iprinttwo server, B: configure cron to run the sync script every week, and C: configure the notification feature so that you are notified by e-mail if the production print manager goes down.

a. From the iprinttwo putty session at the prompt enter: cd /tmp/iPrint-Sync

b. From the prompt enter: ./iPrint-Sync-1.1.sh -h

Take note of what the various switches will accomplish.

c. At the prompt enter the following: ./iPrint-Sync-1.1.sh -ksbnc

d. When asked for the password for root on the active server enter novell and press enter.

e. When asked for the interval that cron will use to check the status of the print manager enter 5 and press enter

f. when asked if you would like to set up when to sync your print servers enter: Y and press enter

g. when asked how often you would like to synchronize the standby server enter 4 and press enter, this will set cron to synchronize weekly.

h. when asked which day of the week you would like to sync the two servers enter 0 and press enter, this will set cron to synchronize the two servers on a Sunday

i. when asked what time each Sunday you would like to sync the two servers enter 2:00 and press enter, this will set cron to start the job at 2 AM

(End of Exercise)

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

13Version 1

c. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.

Page 14: OES08-Advanced iPrint Tools / Lab · OES08-Advanced iPrint Tools / Lab Copying all or part of this manual, or dist ributing such copies, is strictly prohibited. To report suspected

OES08-Advanced iPrint Tools / Lab

Novel

Copying all or part of this manual, or distributing such copies, is strictly prohibited.To report suspected copying, please call 1-800-PIRATES.

Version 114

l, Inc. Copyright 2012-ATT LIVE-1-HARDCOPY PERMITTED. NO OTHER PRINTING, COPYING, OR DISTRIBUTION ALLOWED.