Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable %FILE_SERVER 1

Status
Not open for further replies.

DaveBrown

Technical User
Jul 31, 2001
81
GB
Hi All,
This may be a simple request for some of you, but can anyone let me know where %FILE_SERVER picks up its value from and how to set it to a different server name / ip address in a script?
There are good reasons for doing this - we use
%FILE_SERVER in OU login scripts and need to make sure the correct server is used, so I thought it would be possible to use the set command to force %FILE_SERVER to be a specific server name

Thanks in Advance

Dave

 
You are right, there must be a very good reason for this.
The %FILE_SERVER is derived from the FILE SERVER NAME <yourserver> as in your AUTOEXEC.NCF file. Once you have the variable its already logged you in so its too late to log you into another server by modifying this variable. You can make decisions based on the variable ie IF %file_server="myserver" THEN ...
If you are trying to span Trees or MAP certain drives this is all easliy done through the login scripts. If you want certain workstations to connect to a particualr server you need to set this on the workstation client. Also if you have a preferred login server try setting GET NEAREST SERVER = ON/OFF (if using IPX).
It might be easier to help if yo explain what you are trying to achieve with this as it does sound a little strange.
 
Datong many thanks - some members of the team are trying Contextless login (see my previous thread - we are still awaiting authorisation from maanagement to upgrade to e-directory as we are moving to ADS -ughhh!)and finding that the mappings are not going to the correct server.
We use %FILE_SERVER to map drives for the users
An example from one of our OU login scripts is :-
MAP ROOT F:=%FILE_SERVER\SYS:\LOGIN
MAP ROOT H:=%FILE_SERVER\Vol1:\users\%LOGIN_NAME

We have test user accounts in the tree in the same contexts as the servers but find that if there is no <server name> specified in the server field of the Advanced settings in Novell Client 4.91 then %FILE_SERVER does not give the correct server name and the user gets incorrect mappings. I was hoping I could add a command at the start of each OU login script on the lines of:-
SET %FILE_SERVER = <server name>

Thanks in advance

Dave

 
By chance, you're not the DaveBrown of BNP (Troy, MI) are you??? I'm guessing not because you are spelling authorization the English way.
 
Morning Goombawaho - You are correct - I'm not DaveBrown of BNP(Troy.MI). I'm from Oldham,England
 
Jolly good - because he's not my favorite person and I wasn't going to help you if you were him. But now I can help you all I can, which may not be much.

Sorry to divert this thread.
 
I've been doing some more investigation and it seems that
%FILE_SERVER is derived from the server name in the Novell Client Advanced tab. Is this correct?
We are hoping to have only the tree name in the client advanced tab and rely on the OU login script to map the correct server volumes as seen in the above examples.
If there is more than 1 server at a particular context then, how does the client know which server to attach to and map correctly, if %FILE_SERVER is derived from server name in Autoexec.ncf?

Thanks in advance

Dave

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top