9 Replies Latest reply on Feb 18, 2016 2:44 PM by Christopher Blanks

    Cannot run custom commands from the BL console

    Orhan Taskin

      Hello,

       

      We have BL 8.5.01.231.and we have BL console installed on the Citrix environment and users profiles are redirected to file server including appdata. On the BL console when we run the custom  LOCAL commands againts hosts it keeps failing.

      for example: ping %Hi

       

      we are getting following error message.

       

      1 [sig] nsh 7124 open_stackdumpfile: Dumping stack trace to nsh.exe.stackd

      ump

      Press any key to continue . . ."

       

      i am not sure if this is caused by the fact user profiles are redirected or something else.

       

      any input appreciated.

       

      Thank you.

        • 1. Re: Cannot run custom commands from the BL console
          Santosh Kothuru

          Can you check below thread if it is helpful ?

           

          unble to start nsh on cmd prompt

          • 2. Re: Cannot run custom commands from the BL console
            Bill Robinson

            are %USERPROFILE%, %APPDATA%, etc on unc paths - eg
            server\share or drive letters - x:\share ??

            • 3. Re: Cannot run custom commands from the BL console
              Orhan Taskin

              yes they are on the UNC path. We have folder redirection policy redirect them to file server on the network.

              for example:

               

              \\fileserver\shared\username\

               

              thanks.

              • 4. Re: Cannot run custom commands from the BL console
                Orhan Taskin

                any idea why this is happening? is UNC not supported with NSH?

                • 5. Re: Cannot run custom commands from the BL console
                  Bill Robinson

                  there's a couple things to check - the C:\Windows\rsc\HOME file contains the correct path to the NSH install dir on the box.  and what other user related dirs are set to the unc path ?  APPDATA, USERHOME, etc ?  could you dump the env vars ?

                  • 6. Re: Cannot run custom commands from the BL console
                    Orhan Taskin

                    C:\Windows\rsc\HOME  points to /cygdrive/C/Program Files/BMC Software/BladeLogic/NSH

                     

                    ENV Vars:

                     

                    ALLUSERSPROFILE=C:\ProgramData

                    APPDATA=\\Fileserver\redirected$\John

                    BMC_PROACTIVENET_ADMIN_HOME=C:\Program Files (x86)\BMC Software\BMC ProactiveNet Admin

                    CLIENTNAME=USHBG-John

                    CLIENT_INSTALLER_HOME=C:\Program Files\BMC Software\BladeLogic

                    CommonProgramFiles=C:\Program Files\Common Files

                    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files

                    CommonProgramW6432=C:\Program Files\Common Files

                    COMPUTERNAME=ESHBGCXAU901

                    ComSpec=C:\Windows\system32\cmd.exe

                    CYGWIN=nontsec nodosfilewarning

                    FP_NO_HOST_CHECK=NO

                    HOMEDRIVE=C:

                    HOMEPATH=\Users\John

                    LOCALAPPDATA=C:\Users\John\AppData\Local

                    LOGONSERVER=\\ADDC901

                    NUMBER_OF_PROCESSORS=4

                    OS=Windows_NT

                    Path=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\idmu\common;C:\Program Files (x86)\Citrix\system32;C:\Program Files\Citrix\Virtual Desktop Agent\;C:\Program Files\BMC Software\BladeLogic\NSH\bin;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Attachmate\INFOCNEE\;C:\Program Files (x86)\Attachmate\INFOCNEE\AccMgr32;C:\Program Files (x86)\EMC\Centera\4_3\SystemOperator\JCenteraVerify;C:\Program Files (x86)\EMC\Centera\4_3\SystemOperator\lib;C:\Program Files (x86)\EMC\Centera\4_3\SystemOperator\bin;C:\Program Files (x86)\EMC\Centera\4_3\SystemOperator\RestoreUtilities;C:\Program Files (x86)\EMC\Centera\4_3\GlobalServices\JCenteraVerify;C:\Program Files (x86)\EMC\Centera\4_3\GlobalServices\bin;C:\Program Files (x86)\EMC\Centera\4_3\GlobalServices\RestoreUtilities;C:\Program Files (x86)\EMC\Centera\4_3\GlobalServices\lib;C:\Program Files (x86)\McAfee\MOVE AV Client\

                    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

                    PROCESSOR_ARCHITECTURE=AMD64

                    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 62 Stepping 4, GenuineIntel

                    PROCESSOR_LEVEL=6

                    PROCESSOR_REVISION=3e04

                    ProgramData=C:\ProgramData

                    ProgramFiles=C:\Program Files

                    ProgramFiles(x86)=C:\Program Files (x86)

                    ProgramW6432=C:\Program Files

                    PROMPT=$P$G

                    PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\

                    PUBLIC=C:\Users\Public

                    SESSIONNAME=ICA-TCP#4

                    SystemDrive=C:

                    SystemRoot=C:\Windows

                    TEMP=C:\Users\John\AppData\Local\Temp

                    TMP=C:\Users\John\AppData\Local\Temp

                    USERDNSDOMAIN=LOCAL.LCL

                    USERDOMAIN=LOCAL

                    USERDOMAIN_ROAMINGPROFILE=LOCAL

                    USERNAME=John

                    USERPROFILE=C:\Users\John

                    windir=C:\Windows

                    windows_tracing_flags=3

                    windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log

                     

                     

                    Thank you.

                    • 7. Re: Cannot run custom commands from the BL console
                      Bill Robinson

                      this could be a problem:

                      APPDATA=\\Fileserver\redirected$\John

                      can you put appdata on a drive letter path and see if that resolved the issue ?

                      • 8. Re: Cannot run custom commands from the BL console
                        Curtis Martin

                        I mapped the redirect AppData path to a drive letter and was able to execute the agentinfo command on server objects.  If we are not able to map network drive letters for AppData redirection on our Citrix servers, can you suggest an alternate approach?

                        • 9. Re: Cannot run custom commands from the BL console
                          Christopher Blanks

                          Bill/Curtis,

                           

                          We have been wrestling with this problem as well and unfortunately found the UNC %APPDATA% being the culprit before finding this thread.  In our organization, we are also not able to change our redirection, however we did come up with this alternative solution that achieves the same basic thing:

                           

                          In <INSTALL_DIR>\CM\rcp\BSAClient.cfg, we added the following line which alters the APPDATA variable for this application only.

                           

                          env.APPDATA=%USERPROFILE%\AppData

                           

                          Since this was added, we are now able to run custom commands like 'NSH Here' from the console application.

                           

                          For the Network Shell that is launched from the start menu like the client (or advertised), we added the following line before the call statement in <INSTALL_DIR>\NSH\bin\nsh.bat to achieve the same thing:

                           

                          set APPDATA=%USERPROFILE%\AppData

                           

                          I hope that this helps!!!

                          -Chris