Cannot map local drives by using PSM-VSHPERE connector

Cannot map local drives by using PSM-VSHPERE connector

138
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:04 PM


Symptom


Sometimes the customer face the issue that cannot map local drives to the guest machine. This issue only happens when the customer is using PSM-VSHPERE connector.

 For a working (like WinSCP Session), you can see the events in ClientDispatcher.log that a local drive was connected, such as:

[16/05/2019 | 11:24:26] | :: | PSMDU025I Searching for available drive letter 
[16/05/2019 | 11:24:26] | :: | PSMDU027I Found available drive letter [Y:] 
[16/05/2019 | 11:24:26] | :: | PSMDU026I Trying to map teminal services drive [\\TSCLIENT\C] 
[16/05/2019 | 11:24:26] | :: | PSMDU028I Drive [Y:] mapped to [\\TSCLIENT\C] 

However for the vSphere session, you cannot find any trace in logs that local drivers were mapped as above.
 


Environment


10.5;10.6;10.7;10.8;10.9

Cause


While the PSM-VSHPERE connector allows drive mapping, it operates in a way that sometimes it is able to map some of the drives and sometimes not, due to the reason that it is a command based connector. Also there is no retry mechanism for the drive mapping.

The command is defined under PVWA -> Administration -> Options -> Connection Components -> PSM-VSHPERE ->  Target Settings. Example:

"C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -u "{UserName}" -p "{Password}" -s "{Address}"

This is basically a command prompt run, that is executed as soon as the session is established. 
Till this command is executed, the session has time to map network drives, but the only drives that will be mapped are the ones it managed to map on time. 

This is also why not much is seen in regards to drive mapping in the logs for PSM-VSHPERE.


Resolution


Use AutoIt script instead of the ClientApp.

Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001IUPCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail