4 Replies Latest reply on Oct 5, 2011 1:20 PM by Craig ludlow

    listServersInGroup command

    Bill Bruncati

      Running BL 8.1 sp2. Looked at the manual page and I"m not sure why this doesn't work.

      Shouldn't the quotes make this one argument ?

      I run the following in an nsh program .

      Thanks,

      Bill

       

      blcred cred -acquire -profile myblcli_profile -username me -password xxxxx

      blcli_setoption authType BLSSO

      blcli_setoption serviceProfileName myblcli_profile

      blcli_setoption roleName BLAdmins

      blcli_connect

      ######################################################

       

       

      GROUP="/Server Status/Agent Not Responding"

       

      blcli_execute Server listServersInGroup $GROUP

       

      Produces :

       

      $PWD: ./test.nsh

      Authentication succeeded: acquired session credential

      Command execution failed. com.bladelogic.om.infra.cli.factory.CommandNotFoundException: Found command 'Server.listServersInGroup' but with mismatching arguments. : java.lang.IllegalArgumentException: Wrong number of arguments provided to method : listServersInGroup expected : 1 received : 4

        • 1. listServersInGroup command
          Bill Robinson

          blcli_execute Server listServersInGroup "${GROUP}"

          • 2. listServersInGroup command
            Bill Bruncati

            blcli_execute Server listServersInGroup "${GROUP}"

             

            Authentication succeeded: acquired session credential

            Command execution failed. com.bladelogic.om.infra.cli.factory.CommandNotFoundException: Command : (SDeviceHeader,getName) has more than one overloaded methods that match given arguments

             

            API Command Info : getName

                Actual method : getName

                Class name : com.bladelogic.om.infra.model.base.header.SDeviceHeader

                No argument values provided

             

            API Command Info : getName

                Actual method : getName

                Class name : com.bladelogic.model.base.header.SDeviceHeader

                No argument values provided

             

            $PWD:

            • 3. listServersInGroup command

              I was just getting the same error and the fix was too move the SDeviceHeader-Addtitional.xml out of the xml/cli folder.

              • 4. listServersInGroup command

                I saw this issue yesterday, but only on certain machines.

                 

                After reading eharrisb's suggestion, I checked and sure enough, on the Solaris machines, SDeviceHeader-Addtitional.xml.  Removing the file corrected the issue for me.

                 

                The only correlation I can make is that these machines were upgraded from older versions.  I checked and the timestamp on the SDeviceHeader-Addtitional.xml file was from 2008.  Maybe it is an old file that isn't needed anymore and doesn't get cleaned up?