Solved

A bit of everything - netware nt vb

Posted on 1998-10-28
4
275 Views
Last Modified: 2012-06-27
I've been pushed into this so help!!!

We've got a file on one NT4 Netware machine that has to be copied to another NT4 Netware machine each night at 5.30 as a batch job.

I wanted to write an NT Net Use script to do this. However I'm having trouble connecting to each machine. The first NT machine I can map a drive to providing I manually use the NT explorer map  drive screen and select 'Bindery connection' and login with a user id and password.
The second machine I have to logon to with a user id and password and the 'context' box of the netware logon set to something like 'ou=fred.ou=lan_1.o=company.c=gb'.

I didn't want to have to go through the 'Windows Nt Explorer' map drive process every night to achieve this for a number of reasons - I don't work at weekends, the login is only allowed after 5pm etc etc.

How can I 'NET USE D: //machine1/path' and
'NET USE E: //machine2/path' ?

I tried a visual basic program using the WNetAddConnection API call but I couldn't specify the a) bindery connection
b) context specific connection.

Can anybody help me - skeleton sample GUI-less API call list or a simple NT login script required.

200points because I'm really desperate. But I'm sure it's not that difficult. By the way, telling me to buy such and such a package is not a valid reply!!!

Cheers
Pete
0
Comment
Question by:datavalue
4 Comments
 
LVL 3

Expert Comment

by:brosenb0
ID: 1593952
This should help: -

1) Make sure the NT box has services pack 3 installed

2) Use AT command so you can schedule the date/time that your script will execute. You can tell AT the batch/cmd file to execute, which will contain your NET USE statements.  You need to start the schedule service in Control Panel | Services.  Type AT /? for help on syntax.

3) You may get away with using the Microsoft client for NetWare, however, it is preferable to use the Novell client for NT v4.30 as comes with the ZEN Works Starter Pack.  You can download this from www.novell.com/download.

4) Use this syntax in your NET USE statements.  
NET USE \\<Server_Name>\Volume\Path\ User:<UserID> <Password>

For the bindery connection, UserID is straight forward.

For the NDS connection, there are two possibilites.
If a 'bindery context' exists for the NDS container within which your UserID resides, you may use your UserID's common name eg FRED.  If using the NetWare client for NT v4.30, it will automatically establish a NDS connection for you in the required context.

If no bindery context, you will have to supply the fully distinguished UserID starting with a leading period eg. .FRED.LAN_1.COMPANY.  DO NOT canonicalize the name ie. do not enter CN=FRED.OU=LAN_1.O=COMPANY.

Type NET USE /? for help on syntax.

Remember this batch file contains a password so treat it with care !

5) Enter your batch commands

6) Go and hit a quick 9 holes after work knowing that your script is presently running.
0
 

Author Comment

by:datavalue
ID: 1593953
Thanks for the reply unfortunately it didn't work, however I did login to the novell netware area and download their activex developers library. I now have managed to hack the NwSess example supplied by Novell into a simple process that given a user id and password will login/authenticate with a server either using a context, a bindery connection or nothing.
I still have to use a net map command to map the drive (could write a VB function, but haven't got time). And finally I use the NwSess Logout example to logout of the connected server. We're using a Unix/VMS/NT product called Maestro for the scheduling.
cheers,
Pete
0
 
LVL 2

Expert Comment

by:liebla
ID: 1593954
For the Novell Server
map drive:=Servername/volumename:directory/subdirectory should still work


0
 
LVL 1

Accepted Solution

by:
RZahm earned 200 total points
ID: 1593955
Do you know replica Services from Novell.
It is a tool, for automatic data replicating thru Servers in NDS. It works very fine, we use it to transfer Data from our Web Server to other WebServers in other Aereas and for Fault tolerance.
With NDS for NT it will be no problem to distribute or copy data.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question