6 Replies Latest reply on Jul 30, 2013 1:59 PM by JDarrah

    Prefmap not mapping to next available preferred server if no share path found

    Gjstewart Specialist

      I am using prefmap to map a drive based on a share on your nearest preferred server.

       

      This is a great tool and seems to work brilliantly for your nearest preffered server however it appears to still try and map to the share if the preferred server does not have one?

       

      I thought the point of prefmap was that it read the preferredservers.dat file and then acted like a normal software distribution. It goes to map the drive only if the path exists, if it does not it will try the next preferred server until it finds the path.

       

      Does prefmap not do this? Anyone else using this tool?

       

      Cheers!

        • 1. Re: Prefmap not mapping to next available preferred server if no share path found
          EMiranda Expert

          Prefmap does not do what you are expecting it to do.  It does not go down a list per say until it reaches an available preferred server.

           

          In summary this is what it does:

           

          It will launch sdclient to force a download of a "dummy" file.

          the "dummy" file will produce a preferredservers.dat file which will have your preferred server listed, there may be multiple entries in the file, but I believe the first entry is the server that responded first (im not 100% sure on that)

          next the preferredservers.dat file is read, reading that first entry and then using that name to map the drive and/or create a variable out of it.

           

          Here is a quote from the documentation:

           

          "A preferredserver.dat file may list multiple preferred servers, separated by semicolons. If so,prefmap will take the first server name from the list."

           

           

          Hope that helps!

          • 2. Re: Prefmap not mapping to next available preferred server if no share path found
            ProServices

            HI,

            Could you explain why you are using the prefmap tool ? It may be that you dont actually need to. If you are just doing normal software distribution then it would be better to not use it. If you are doing stuff withing a provisioning template or OSD task that can not use the normal mechanism, then you might have no choice but to use the tool. Let us know please...

            Regards

            Ian

            • 3. Re: Prefmap not mapping to next available preferred server if no share path found
              EMiranda Expert

              Ian wrote:

               

              HI,

              Could you explain why you are using the prefmap tool ? It may be that you dont actually need to. If you are just doing normal software distribution then it would be better to not use it. If you are doing stuff withing a provisioning template or OSD task that can not use the normal mechanism, then you might have no choice but to use the tool. Let us know please...

              Regards

              Ian

               

               

              I use prefmap tool primarly for 3 things in our environment.

               

              We deploy over 500 2TB NAS devices to our locations.  These NAS devices hold our images and our software library

               

              1.  OSD - we use prefmap to map to the preferred server NAS and copy the image and drivers from the location.  LANDesk does have preferred server imaging in the GUI but that does not work the way I want it to.  with prefmap i can just easily map to the preferred server and assign it a letter and image right from the fly from that NAS device.

               

              2.  Vboot - in all the default OSD scripts all vboots point back to the core and downloads all the files necessary to vboot, including the ~130MB boot.wim.  With prefmap i can easily map to a preferred server on our NAS device and copy the files from the local subnet instead of back to the core, in combination with step #1 i can Vboot and Image a machine all from the preferred sever NAS Device.

               

              3, USMT - we use prefmap to connect to a NAS device on the local subnet to back up and restore migrations.  This way i can keep one script and I dont have to always manually edit the path to where the files need to go.

               

              In summary prefmap is a simple, yet powerful tool for us to limit the bandwith coming back to the core, which by default LANDesk cannot do with the way we are operating right now.

              • 4. Re: Prefmap not mapping to next available preferred server if no share path found
                ProServices

                Hi,

                So.. yep.. you need to use prefmap.exe :-) I have thought about this scenario a couple of times, and dont really see a solution. And, I know its evasive to turn the problem arround and look at it as a replication problem (i.e. why does the first server in the list NOT have the files we need). The only solution I have come up with is to recode prefmap.exe to use the second or third (etc.) option when the drive mapping itself fails. The alternative is to start mapping multiple drive letters to multiple servers (1st, 2nd, 3rd preferred server) and then wrapping everything else up in scripts to check for success or failure .. and I really dont want to go there...

                Regards

                Ian

                • 5. Re: Prefmap not mapping to next available preferred server if no share path found
                  Gjstewart Specialist

                  Hi guys

                   

                  yeah thats what i ended up doing. The chances are that the nearest preferred server is always there but if it wasn't i too have written a vbscript that will take the prefferedservers.dat file and do the actual mapping. based on checking through the paths.

                   

                  We needed something that would not just fail if the path was not there or contactable.

                  • 6. Re: Prefmap not mapping to next available preferred server if no share path found
                    Apprentice

                    Do you happen to still have the script?  I have a similar need.