MAP ERRORS OFF and I still get errors in login script..

I am working on a login script and I am trying to program some failover into the script. I have two identical servers and I am trying to get the login script to launch a .bat file from sys:\public on one of the two servers. Since they are search drives, the batch file is launched, even if one of the two servers is down - this part works great. The problem I am having is when one of the two servers is down, even with MAP ERRORS OFF at the top of my script, the login script still refuses to close, giving me a "LOGIN-LGNWNT32-890: The specified server is unknown" error. Am I doing something wrong? Is there any way to have the script ignore this error and close automatically? The MAP ERRORS OFF command doesn't seem to be working as I understand it should.... I have tested with Client 2 SP3 IR5 and IR6 with the same result on both... I also notice that I get a message about drive mappings being deleted, even with MAP DISPLAY OFF, although these lines do not cause the script to hang open...

The pertinent parts of the login script are as follows... (names changed to protect the innocent)

NO_DEFAULT
MAP ERRORS OFF
*** HIDE SEARCH DRIVE MAPPINGS
MAP DISPLAY OFF
MAP INS ROOT S1:=apps1.domain.com/SYS:\public
MAP INS ROOT S2:=apps2.domain.com/SYS:\public
MAP DISPLAY ON
*** OTHER MAPPINGS HERE
#appsmaps2.bat
MAP DISPLAY OFF
MAP DEL S2:
MAP DEL S1:


And the specific error in the login script window is

APPS1.DOMAIN.COM
LOGIN-LGNWNT32-890: The specified server is unknown
The directory for drive Z: was deleted and the mapping was removed.



Thanks!
Parents
  • The error is caused by using a DNS name for the server, but NCP server syntax. If the server's NCP name is APPS1 then it should be

    MAP INS ROOT S1:=apps1/SYS:public

    or, using eDirectory syntax

    MAP INS ROOT S1:=O.OU.apps1_SYS:public

    According to this example MAP ERRORS OFF only works for the map commands in the same line; you have nothing after the OFF for that to apply to.
  • Again - I am not having problems mapping the search drives. They are mapping correctly 100% of the time when the servers are online. My problem is specifically with the MAP ERRORS OFF command in the script.

    Ataubman, I saw the exact same examples you reference for the MAP ERRORS OFF command, and I cannot get the mappings to work at all when I modify the lines to match the examples - it is as if they don't even exist in the script.

    I tried both
    MAP ERRORS OFF INS ROOT S1:=apps1.domain.com/SYS:\public
    MAP ERRORS OFF INS ROOT S2:=apps2.domain.com/SYS:\public

    and
    MAP INS ROOT ERRORS OFF S1:=apps1.domain.com/SYS:\public
    MAP INS ROOT ERRORS OFF S2:=apps2.domain.com/SYS:\public

    and in both cases, the search drive mappings did not work at all - it is as if the lines did not exist in my script. Perhaps it does not work with search drives.... Thanks for the help!
  • Ahilton,
    > MAP ERRORS OFF INS ROOT S1:=apps1.domain.com/SYS:\public
    > MAP ERRORS OFF INS ROOT S2:=apps2.domain.com/SYS:\public


    They should be om separate lines

    MAP ERRORS OFF
    MAP INS ROOT S1:=apps1.domain.com/SYS:\public

    Also, try using DS syntax:
    MAP INS ROOT S1:=.volumeobject.ou.o:
    --
    Anders Gustafsson (NKP)
    The Aaland Islands (N60 E20)

    Have an idea for a product enhancement? Please visit:
    http://www.novell.com/rms

Reply
  • Ahilton,
    > MAP ERRORS OFF INS ROOT S1:=apps1.domain.com/SYS:\public
    > MAP ERRORS OFF INS ROOT S2:=apps2.domain.com/SYS:\public


    They should be om separate lines

    MAP ERRORS OFF
    MAP INS ROOT S1:=apps1.domain.com/SYS:\public

    Also, try using DS syntax:
    MAP INS ROOT S1:=.volumeobject.ou.o:
    --
    Anders Gustafsson (NKP)
    The Aaland Islands (N60 E20)

    Have an idea for a product enhancement? Please visit:
    http://www.novell.com/rms

Children