Page 1 of 1 1
Topic Options
#63771 - 2002-03-12 06:19 AM Printers by vlans
colorbydeluxe Offline
Fresh Scripter

Registered: 2002-03-12
Posts: 26
Loc: Hollywood
I'm fairly new to Kixtart so go easy on me [Wink] . My question is kind of a take off on another thread I was reading earlier. Here we go. I have a rather large enterprise that has multiple vlans. Each vlan is a class c. Most vlans primaraly consist of multiple workstations and a printer or two. Every printer is connected to a print server. Now for the question: Is there any way based upon the host address of the workstation (which will match the host address of the printer in that vlan) to connect all printers in that vlan to the users workstation. The workstations on the network consist primarily of Win95 machines.

Thank You in advance. [Smile]

Top
#63772 - 2002-03-12 04:31 PM Re: Printers by vlans
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Disregarding the VLAN info, the ADDPRINTERCONNECTION doesn't work for Windows 9x, so you'll need to find another solution for establishing the printer connection itself.

As for the VLAN question, you could create a .INI file with a list of the printers per VLAN and check the subnets the printers and workstations belong to.
_________________________
There are two types of vessels, submarines and targets.

Top
#63773 - 2002-03-13 03:19 PM Re: Printers by vlans
Mark Bennett Offline
Getting the hang of it

Registered: 2001-10-10
Posts: 70
Sure.....use EnumIPInfo to work out the IP address then seperate it out (you will probably need to do this character by character looking for a period.). Then lookup the printer in an INI file (using ReadProfileString).
While you have Win95 machines it is NOT impossible to add a printer. The best way (although there are a couple of dependencies/caveats), is to NET USE LPT1: \\Server\ShareOrResource. Then you could use another KIX script with SendKey commands to add a local printer with the correct driver etc.

Top
#63774 - 2002-03-13 03:25 PM Re: Printers by vlans
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I do not know much about the adding printers bit.... but i can help with the vlan part.

Subnet()
BinaryIP()

will let you easly identify a computers subnet.

code:
if subnet(@ipaddress0,"10.27.100.0","255.255.255.0") = 1
? "this computer is in the 10.27.100 subnet"
endif

Bryce

Top
Page 1 of 1 1


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

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.159 seconds in which 0.093 seconds were spent on a total of 12 queries. Zlib compression enabled.

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