Announcement

Collapse
No announcement yet.

Remote Spawner Initialization

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remote Spawner Initialization

    I noted how the Spawner took up soo much memory/processor usage when it's run (mainly due to Max being continuously reinitialized.) Due to this fact, I uninstalled it as a service as it's not continuously used. So I was wondering if you could implement a way to remotely turn on the spawners on other machines through the vray interface (it would have to have some access priveleges.)

    I could always take the long route- VNC, PC Anywhere, Remote Access, or physically getting off my lazy bum and walking over to the other machines. But this little feature would come in handy for alot of people- probably save money in the long run. Would it be too much work to implement?

    Anyone's thoughts on this?

    -jujubee
    LunarStudio Architectural Renderings
    HDRSource HDR & sIBL Libraries
    Lunarlog - LunarStudio and HDRSource Blog

  • #2
    One thing I was thinking is if the spawner service could fire up max only when its called upon to render and then shut down max after its done.

    -dave
    Cheers,
    -dave
    ■ ASUS ROG STRIX X399-E - 1950X ■ ASUS ROG STRIX X399-E - 2990WX ■ ASUS PRIME X399 - 2990WX ■ GIGABYTE AORUS X399 - 2990WX ■ ASUS Maximus Extreme XI with i9-9900k ■

    Comment


    • #3
      yeah i agree with both of ya.
      I think something needs to be done:
      it would be cool to be able to control the spawner service from one comp since i work in a large firm environment and I don't have the time and or want to go up to somebody while they are working and say "excuse me, can you move so i can get to your comp and shut down vraySpawner??!!"...when they don't even know how to spell "arch viz"..

      So I'd like something silent and as you say dave, optimized/smart.

      paul.

      Comment


      • #4
        VB code to stop and start services over a network.. replace COMPNAME with the target computer to start/stop it on.. Replace "VraySpawner 50" with the service to start/stop on network.. no compiler so i never got around to making a UI for it.. but it works fine in the VB interface that comes with MS office

        LET YOUR IT DEPARTMENT KNOW FIRST... trust me

        ------------------------------------------------------------------------------------

        Sub stopVraySpawner()

        sComputer = "COMPNAME"
        sService = "VraySpawner 50"

        Set oInstance = GetObject("winmgmts:{impersonationLevel=impersonat e}//" & sComputer & _
        "/root/cimv2:Win32_Service=" & Chr(34) & sService & Chr(34))
        Set oOutParam = oInstance.ExecMethod_("StopService")

        End Sub

        ------------------------------------------------------------------------------------

        Sub spawnVraySpawner()

        sComputer = "COMPNAME"
        sService = "VraySpawner 50"

        Set oInstance = GetObject("winmgmts:{impersonationLevel=impersonat e}//" & sComputer & _
        "/root/cimv2:Win32_Service=" & Chr(34) & sService & Chr(34))
        Set oOutParam = oInstance.ExecMethod_("StartService")

        End Sub

        -----------------------------------------------------------------------------------
        Dave Buchhofer. // Vsaiwrk

        Comment


        • #5
          That's thoroughly amazing Dave! It's really mind-blowing that anyone could have figured this out. However, I would have no clue how to make it fully operational. Plus it can be used to evil ends! Perfect!!! The uses. The uses... hmmm.

          Anyhow. knwing that there would need to be a slight rewrite in the code to prevent spawner pillaging. Perhaps including the ability to cancel the service locally- a timer message perhaps? Username/password permissions? Just playing with ideas here.

          As a side note, does this at all rely on messenger service or is it completely independent? I had to disable it due to exploits.

          -juju

          Excellent website btw- one of the best I've seen in a long while. You guys do phenomenal work.
          LunarStudio Architectural Renderings
          HDRSource HDR & sIBL Libraries
          Lunarlog - LunarStudio and HDRSource Blog

          Comment


          • #6
            Thanks..

            Though code is cobbled together from a few help forums on the net.. can't take any credit..

            Anyway.. an easy way to use it.. start ms access, make a new database.. go to the modules button on the lower left of the dbase window.. click the new button.. that will open up the Vbasic window.. paste the code in under the text "option compare database" edit it to reflect the name of the computer you want.. and hit the little play button up top
            Dave Buchhofer. // Vsaiwrk

            Comment


            • #7
              Thanks for the info Dave. Still pretty freakin cool you looked into this. Is there any easier way to save the script so that it's a simple executable?
              LunarStudio Architectural Renderings
              HDRSource HDR & sIBL Libraries
              Lunarlog - LunarStudio and HDRSource Blog

              Comment


              • #8
                Originally posted by jujubee
                Thanks for the info Dave. Still pretty freakin cool you looked into this. Is there any easier way to save the script so that it's a simple executable?
                Ill have to second that question due to I dont have M$ Orifice on my box so Im SOL on the access thing.

                -dave
                Cheers,
                -dave
                ■ ASUS ROG STRIX X399-E - 1950X ■ ASUS ROG STRIX X399-E - 2990WX ■ ASUS PRIME X399 - 2990WX ■ GIGABYTE AORUS X399 - 2990WX ■ ASUS Maximus Extreme XI with i9-9900k ■

                Comment


                • #9
                  I might be missing what you're trying to do, but here goes:
                  If you're talking about starting services on other computers in your network, just right-click my computer, click manage, and go to the services part.
                  At the top there right-click "Computer Management (Local)" and click "connect to another computer".
                  From there you can start what ever service is present on the remote computer.
                  If you're looking for an automatic way of doing this for multiple machines, this procedure won't be much good.
                  Signing out,
                  Christian

                  Comment


                  • #10
                    Yea trix.. I've got 15 machines in my main farm.. with 5 or so that are part timers.. I use this to pretty much 1 button turn on/off the whole bunch at a time.. since spawner service plays hell with my backburner normal net rendering..

                    Someday I'll make a UI but never really needed it to be easy to use

                    For single restarting i'm usually just vnc'ing..
                    Dave Buchhofer. // Vsaiwrk

                    Comment


                    • #11
                      I'm getting a compile error on that first script:



                      Sorry it's so small (trying to save my ISP from shutting me down bandwidth-wise.) But it's basically a copy from above. Is it related to the "root" parameter?

                      -juju
                      LunarStudio Architectural Renderings
                      HDRSource HDR & sIBL Libraries
                      Lunarlog - LunarStudio and HDRSource Blog

                      Comment


                      • #12
                        I think you may need to use the actual name for the computer.. ie, if there was a shared drive.. you would get to it through \\compname\drive..

                        link to example setup

                        http://mywebpages.comcast.net/buck470/spawnomatic.zip
                        Dave Buchhofer. // Vsaiwrk

                        Comment


                        • #13
                          ack. sorry man. switched up paths a bit and had tried the comp name (not in the highlighted section.) still getting the compile error.
                          LunarStudio Architectural Renderings
                          HDRSource HDR & sIBL Libraries
                          Lunarlog - LunarStudio and HDRSource Blog

                          Comment


                          • #14
                            Tried your file- same debug error too. I tried switching up some of the statements, spacing, and closing parentheses but to no avail.
                            LunarStudio Architectural Renderings
                            HDRSource HDR & sIBL Libraries
                            Lunarlog - LunarStudio and HDRSource Blog

                            Comment


                            • #15
                              Hmm.. works fine as is here.. you may just not have the permissions to the service remotely? is the vrayspawner installed as a service? Can you get at it via Trix's way?

                              Curious..
                              Dave Buchhofer. // Vsaiwrk

                              Comment

                              Working...
                              X