2 Replies Latest reply on Oct 11, 2011 11:11 AM by Ray NameToUpdate

    No authentication profile name specified

      All, appreciate any feedback. 

       

      When running the following script I am receiving subject error message. 

       

      When running the following from the CLI the listAllServers cmd works fine:

      blcli -v myStudentServiceProfile -r BLAdmins Server listAllServers

       

      #!/bin/nsh

       

      # Create a service profile if one is needed

      #blcred authprofile -add -profile myStudentServiceProfile -host myserver:9840 -type SRP

       

      # Populate the credentials cache

      blcred cred -acquire -profile myStudentServiceProfile -username student -password mypassword

       

      blcred cred -acquire -profile myStudentServiceProfile -username student -password mypassword

       

      # If no authentication profile is set, your profile name and role must be passed with each command as below.

      # blcli -v myStudentServiceProfile -r BLAdmins Server listAllServers

       

      # The following two lines set profile and role allowing multiple cmd session (script) with application server.

      #blcli_setoption serviceProfileName myStudentServiceProfile

       

      blcli_setoption serviceProfileName myStudentServiceProfile

      blcli_setoption roleName BLAdmins

      blcli_connect

       

      blcli Server listAllServers