in

Surgient Success

Community Support Portal

Problem using commandrun in vcsadmin

Last post 03-26-2008 5:52 PM by oalbillar. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 03-26-2008 5:10 PM

    Problem using commandrun in vcsadmin

    I have been trying to use commandrun in vcsadmin.exe without success. Although I can get a list of available commands with commandlist and learn all sorts of interesting things about said commands with commandshow, I have been unable to execute any of them. I consistantly get an error message stating that "There was a problem: 00050010 There is no command named WHATEVER registered with the system." I cannot seem to find the proper format. I have tried the following with and without quotes, equal sign, using both the name and ID of the VM:

    commandrun JFS3QESX008 "Surgient.Linux.ESX.stop" vm=1207fcaf-e9e3-7645-e69d-eb4cad1b63

     Can someone please explain the format of this command?

     

    Thanks

    Filed under:
  • 03-26-2008 5:26 PM In reply to

    Re: Problem using commandrun in vcsadmin

    The vm parameter is not a valid parameter for that command.  The correct parameter is "agentguid".   I would be careful with that command as it stops the Surgient Agent and you can interfere with the proper operation of the system that way.  Can we help you with a specific task you're trying to accomplish?

    Signed by Richard Cardona
  • 03-26-2008 5:27 PM In reply to

    Re: Problem using commandrun in vcsadmin

    Not sure what else you've tried, but the example you have above is using an incorrect command name - the command is named "stop vm", not "stop".  In all cases where the command name contains a space, you must put quotes around the entire command name.

    This should work:

     commandrun JFS3QESX008 "Surgient.Linux.ESX.stop vm" vm=1207fcaf-e9e3-7645-e69d-eb4cad1b63

     The short name also works:

    commandrun JFS3QESX008 "stop vm" vm=1207fcaf-e9e3-7645-e69d-eb4cad1b63

    Hope this helps.

  • 03-26-2008 5:40 PM In reply to

    Re: Problem using commandrun in vcsadmin

    There's more than one "stop", e.g. "stop vm" and "stop agent" I wasn't sure which command he was referring to with just "stop".  'Stop vm' accepts a vm parameter and 'stop agent' accepts an agentguid parameter.  Since the parameter was a guid I assumed this was stop agent.

    Signed by Richard Cardona
  • 03-26-2008 5:52 PM In reply to

    Re: Problem using commandrun in vcsadmin

    I believe this is the format I am seeking. Thanks. I was trying to stop a hung VM from vcsadmin.

Page 1 of 1 (5 items)