12 Replies Latest reply on Sep 21, 2009 4:55 AM by ii00907

    Remote CommandvSphere PowerShell

    ii00907 Enthusiast

       

      Goodmorning,

       

       

      i'va install in my machine Windows the Vpshere PowerCli and i see all cmdlet , very very good for management VM's and ESX.

       

       

       

       

      but I do not know if there is a client to install on

      VM Linu / windows that allows me to do the run remote command PowerShell.

      Opuure and 'can run these commands remotely?

       

      If you like I do?

      Thanks for your help

       

       

       

        • 1. Re: Remote CommandvSphere PowerShell
          harkamal Expert

           

          You can install PowerCLI on your client machines and then continue to manage your infrastructure from anywhere as long as you can reach your VC.

           

           

          Connect-VIServer <vcServer> -u <user> -pass <pass>

           

           

          Is that the question ?

           

           

          • 2. Re: Remote CommandvSphere PowerShell
            LucD Guru
            vExpertUser ModeratorsCommunity Warriors

            You can run scripts with the Invoke-VMScript on VMs with a WIndows OS  that have PowerShell installed.

            See  invoke-vmscript how does it works for more info on the requirements to run Invoke-VMScript.

            Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
            • 3. Re: Remote CommandvSphere PowerShell
              ii00907 Enthusiast

               

              Yes,

               

               

              I've installed the PowerCLI on my virtual center ( Fisic server ), but how can I do to launch the commands from another machine?

               

              There is a client to be installed on Linux machines?

               

               

              • 4. Re: Remote CommandvSphere PowerShell
                ii00907 Enthusiast

                 

                Ok,

                 

                 

                But if I wanted to run commands PowerCLI (Example VM-GET ) from a Linux machine?

                 

                 

                It's POSSIBLE?

                 

                 

                • 5. Re: Remote CommandvSphere PowerShell
                  LucD Guru
                  vExpertCommunity WarriorsUser Moderators

                  The PowerCLI cmdlets require PowerShell and that is Windows only.

                  So it's not possible to run PowerCLI cmdlets from a Linux machine.

                  Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
                  1 person found this helpful
                  • 6. Re: Remote CommandvSphere PowerShell
                    ii00907 Enthusiast

                    Thank you,

                    but if I install the Virtual powerCli on a Windows machine, then using

                    Invoke-VMScript (Linux machine) I can run these commands cmdlet?

                     

                    Thanks

                    • 7. Re: Remote CommandvSphere PowerShell
                      LucD Guru
                      User ModeratorsCommunity WarriorsvExpert

                      With the current build of PowerCLI you can only use Invoke-VMScript against WIndows guests.

                      But Carter announced during VMworld that the next PowerCLI build (expected 2009Q4) would have support for Linux guests for the Invoke-VMScript cmdlet.

                      Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
                      • 8. Re: Remote CommandvSphere PowerShell
                        a2alpha Expert

                         

                        Have you looked at the vMA vSphere Management Assistant virtual machine appliance, http://www.vmware.com/support/developer/vima/

                         

                         

                        It is a linux machine already configured for vmware. Might be useful for you.

                         

                         

                        Dan

                         

                         

                         

                         

                         

                        • 9. Re: Remote CommandvSphere PowerShell
                          ii00907 Enthusiast

                          Many many thanks LucD,

                          your answers were very clear and correct.

                           

                          All this stems from the fact that I should schedule the 'add and remove

                          the rdmp on linux (Scheduled batch) and I was trying to figure out how.

                          You help me by pointing out alternatives to use?

                           

                          Otherwise, thanks again

                          • 10. Re: Remote CommandvSphere PowerShell
                            ii00907 Enthusiast

                             

                            Ok,

                             

                             

                            But I can also run cmdlets

                             

                             

                            • 11. Re: Remote CommandvSphere PowerShell
                              LucD Guru
                              Community WarriorsvExpertUser Moderators

                              Why do you need to schedule the "add and remove of RDMP" on a Linux guest ?

                              You can schedule this on a Windows system as well (by using for example the Windows Task Scheduler).

                               

                              If the target guest for adding/removing an RDMP is a Linux guest, that doesn't matter where you run the actual command.

                              The command is run against a Virtual Center (vSPhere vCenter) or and ESX host.

                               

                              Perhaps you could explain a bit more what exactly you are trying to do.

                              Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
                              1 person found this helpful
                              • 12. Re: Remote CommandvSphere PowerShell
                                ii00907 Enthusiast

                                 

                                Hello LucD,

                                Thanks for your help.

                                 

                                 

                                 

                                My requirements are as follows;

                                On a VM linux1 are made all the batch processing at night, using a scheduler (Unicenter TND - CA). At the end of a specific process I must migrate the database (Software AG - Adabas) on another VM and linux2 to continue the batch is on the VM than on linux1 VM linux2.

                                 

                                 

                                 

                                And at the end of processing the changes generated in the DB linux2 the VM, using a tool, will be brought to the VM DB linux1. So far everything is done on AIX systems, where the HBA is natural and then and 'can manage everything through Software Storage (EMC2 - CX3-80). To do all this on Linux Virtual I must find the way to unhook and hook the rdmp (where the DB) the VM linux2. I know how to give a suggestion to do this?

                                 

                                 

                                 

                                PS: A copy of rdmp is made from storage.

                                 

                                I hope my English is understandable.

                                 

                                 

                                Thank you for a possible answer.

                                 

                                 

                                Ivan