Page 1 of 1 1
Topic Options
#171695 - 2006-12-18 09:16 PM IP Printer Migration
Dmartin05 Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 49
Hey All,

I am trying to find a way to do the following and I cannot figure out how to do it:

We currently have 2 Print servers that we are consolidating to 1. I want to run a script on the new print server that will look at a text file with the new IP Port and Share name and create it on the print server. I 1st want it to verify if there is any Printers already installed with the correct info, and if there is to move on to the next one.

Basically, I want thescript to look at a text file and add the IP Port and Share name to the new print server.

I have looked at ALLEN's UDF but I don't know if it can handle the amount of printers that I want to add. Also I don't think it compares to see if there is already a setup witht he same IP Port and share name.

NE help would be greatly appreciated..



Thx again

Top
#171697 - 2006-12-18 11:06 PM Re: IP Printer Migration [Re: Dmartin05]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
Unless you have a bunch of the same type of printers, I think going through the process of figuring out/finding the printer driver inf, the descriptor within the inf, and actually running the Addprinter UDF, is not going to save you much time. Addprinter also does not have ability to share the printer (that is, in its current state).
Top
#171698 - 2006-12-18 11:06 PM Re: IP Printer Migration [Re: Dmartin05]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11611
Loc: CA
Please take a look at the post that is about 3 down from this one. It should give you all the information required to perform this task.

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=171357

Top
#171724 - 2006-12-19 05:16 AM Re: IP Printer Migration [Re: NTDOC]
Dmartin05 Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 49
Thanks for both of your responses. I guess I should have mentioned that the old server currently has all of the old ip scheme. The new printers will replace the old ones and will go on a new server and will have a new ip. **Name will stay the same**

NTDOC: I did read the links and it looks like this would help me except for the fact that i am changing ips. I would also need some type of script to create the printer port and add the printer name to the new server.
I can definitely use this down the road when the new printers have been created. thx


Allen: The good news is that the 350 printers are all the same model.
Can your UDF handle the creation of 300 new ip ports and adding the printers to the server?

Can I create a .txt file with the printer names and ip address of the new printer? Can it check to see if it exist already and to skip over it if it does?

Last but not least, is there a script that I can use to share all of the printers at once? (Via .txt file maybe)

Sorry for so many questions, I'm just trying to give you as much info as possible.

DM

Top
#171726 - 2006-12-19 08:22 AM Re: IP Printer Migration [Re: Dmartin05]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
Here is a very primitive UDF for creating a printer share. Used with Addprinter you should be able to accomplish what you want.



SharePrinter()

Top
#171727 - 2006-12-19 08:42 AM Re: IP Printer Migration [Re: Allen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
Quote:
Allen: The good news is that the 350 printers are all the same model.
Can your UDF handle the creation of 300 new ip ports and adding the printers to the server?

Can I create a .txt file with the printer names and ip address of the new printer? Can it check to see if it exist already and to skip over it if it does?

Last but not least, is there a script that I can use to share all of the printers at once? (Via .txt file maybe)

Sorry for so many questions, I'm just trying to give you as much info as possible.


I see no reason adding 1 or 300 would make any difference provided you've got your input correct. You could setup you text file as a comma separated file, or as an INI file. (Also see EnumINI, INI2Array, or ReadCSV in the UDF Forum) Include the share name in the text file at the same time as you add all the information for that printer. As for checking if it exists, you could check the registry for the particular IP port or try PrinterExist, or PrinterList (also found in the UDF Forum).

Top
#171738 - 2006-12-19 06:56 PM Re: IP Printer Migration [Re: Allen]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11611
Loc: CA
I see a problem unless maybe using the new ip6 you can't have 300 of anything on the same subnet.

But still easy to work around.

Top
#171741 - 2006-12-19 07:16 PM Re: IP Printer Migration [Re: NTDOC]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
172.16.0.0/23 gives me 510 usefull adresses in one network
Top
#171742 - 2006-12-19 07:19 PM Re: IP Printer Migration [Re: Witto]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11611
Loc: CA
I knew someone would reply ;\)
Top
#171744 - 2006-12-19 08:06 PM Re: IP Printer Migration [Re: Witto]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Originally Posted By: Witto
172.16.0.0/23 gives me 510 usefull adresses in one network
Only 510? I feel short changed.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#171746 - 2006-12-19 08:36 PM Re: IP Printer Migration [Re: Les]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4350
Loc: New Jersey
And how many would you like in order to feel satisfied?
_________________________
Actually I am a Rocket Scientist! \:D

Top
#171748 - 2006-12-19 08:45 PM Re: IP Printer Migration [Re: Les]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Could always build a network of 10.0.0.0 /8
_________________________
Today is the tomorrow you worried about yesterday.

Top
#171929 - 2006-12-22 07:20 PM Re: IP Printer Migration [Re: Les]
Dmartin05 Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 49
Thanks for all your reponses, NTDOC we have more than 1 subnet, so we should be OK.

I am in the middle of trying out all of the information that I have gathered from this post and testing it out.

I have successfully used the 1st Add Printer UDF, but how would I tell it to go look at an .txt file or excel sheet?

Top
#171930 - 2006-12-22 07:24 PM Re: IP Printer Migration [Re: Dmartin05]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
You can read a txt file with the ReadLine() function

Or you can write it as INI file and use the ReadProfileString () Function.

You can read more about them in the manual available online at http://www.kixtart.org/manual
_________________________
Today is the tomorrow you worried about yesterday.

Top
#171931 - 2006-12-22 07:26 PM Re: IP Printer Migration [Re: Gargoyle]
Dmartin05 Offline
Fresh Scripter

Registered: 2006-02-01
Posts: 49
WOW Talk about Reponse time!
THX Gargoyle.... I will read the link above

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 304 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.047 seconds in which 0.015 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org