Hey all.. first off, I'm sorry if this is posted somewhere or in the docs ... I've spent numerous hours searching and not had any luck, so here goes .. We remotely admin a few thousand xp machines ... currently we have to have a person at a machine enable the telnet service for us (through a handy front end) so we can connect and check things out. After some poking around the samba docs, I'm led to believe that there should be a way to remotely start a service from the command line. Can anyone tell me if I'm correct, and if so, how? I've tried doing smbclient //x.y.z.a/TlntSvr -U username but that doesn't work and thats the closest I've gotten. I saw a post from 2000 on another list that mentioned using rpcclient I think, but nothing further. Any suggestions would be greatly appreciated as it would cut out a lot of fumbling around/waiting on hold when trying to fix problems. Cheers! t.
I dont know if this a good way or not but I use cygwin and can ssh into the winboxes Todd Snyder wrote:> Hey all.. > > first off, I'm sorry if this is posted somewhere or in the docs ... I've > spent numerous hours searching and not had any luck, so here goes .. > > We remotely admin a few thousand xp machines ... currently we have to > have a person at a machine enable the telnet service for us (through a > handy front end) so we can connect and check things out. After some > poking around the samba docs, I'm led to believe that there should be a > way to remotely start a service from the command line. > > Can anyone tell me if I'm correct, and if so, how? I've tried doing > smbclient //x.y.z.a/TlntSvr -U username but that doesn't work and thats > the closest I've gotten. I saw a post from 2000 on another list that > mentioned using rpcclient I think, but nothing further. > > Any suggestions would be greatly appreciated as it would cut out a lot > of fumbling around/waiting on hold when trying to fix problems. > > Cheers! > > t.
This can be done from windows for certain. I'm not sure if samba lets you do RPC stuff that is required to stop/start services remotely. What you want to get a hold of is all the MS Resource Kits (server, workstation, etc). These have a bunch of command line utils that make writing batch jobs easy (either .bat or vbscript - though I prefer perl) One of those utils is NETSVC.exe, which allows you to remotely stop and start services. Though in general, you should never need (or want) to use telnet or anything interactive when you have that many machines. Everything in the windows client world can be done via 3 methods- files, registry (also files), and RPC. And all 3 things are highly scriptable. (there's a perl CPAN module for most everything too, like registry editing and even event logging). Server administration uses the above 3 + LDAP. Though the ratio of servers to clients is usually low enough that batch server configuration isn't needed. With > 1000 machines, you might also consider SMS. Though the resource kits are much much cheaper. -Jason On Wed, 7 Jul 2004 17:09:44 -0400, Todd Snyder <tsnyder@shoppersdrugmart.ca> wrote:> Hey all.. > > first off, I'm sorry if this is posted somewhere or in the docs ... I've > spent numerous hours searching and not had any luck, so here goes .. > > We remotely admin a few thousand xp machines ... currently we have to > have a person at a machine enable the telnet service for us (through a > handy front end) so we can connect and check things out. After some > poking around the samba docs, I'm led to believe that there should be a > way to remotely start a service from the command line. > > Can anyone tell me if I'm correct, and if so, how? I've tried doing > smbclient //x.y.z.a/TlntSvr -U username but that doesn't work and thats > the closest I've gotten. I saw a post from 2000 on another list that > mentioned using rpcclient I think, but nothing further. > > Any suggestions would be greatly appreciated as it would cut out a lot > of fumbling around/waiting on hold when trying to fix problems. > > Cheers! > > t. > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You might be able to use winbind to joing the domain and then use the "net" command to do stuff like that. Jim C. | Hey all.. | | first off, I'm sorry if this is posted somewhere or in the docs ... I've | spent numerous hours searching and not had any luck, so here goes .. | | We remotely admin a few thousand xp machines ... currently we have to | have a person at a machine enable the telnet service for us (through a | handy front end) so we can connect and check things out. After some | poking around the samba docs, I'm led to believe that there should be a | way to remotely start a service from the command line. | | Can anyone tell me if I'm correct, and if so, how? I've tried doing | smbclient //x.y.z.a/TlntSvr -U username but that doesn't work and thats | the closest I've gotten. I saw a post from 2000 on another list that | mentioned using rpcclient I think, but nothing further. | | Any suggestions would be greatly appreciated as it would cut out a lot | of fumbling around/waiting on hold when trying to fix problems. | | Cheers! | | t. - -- - ----------------------------------------------------------------- | I can be reached on the following Instant Messenger services: | |---------------------------------------------------------------| | MSN: j_c_llings@hotmail.com AIM: WyteLi0n ICQ: 123291844 | |---------------------------------------------------------------| | Y!: j_c_llings Jabber: jcllings@njs.netlab.cz | - ----------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows XP) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA7Kgu57L0B7uXm9oRAny9AKCFih3WrtkeCTEciMKxf7hyXO843wCdEb8p wAiWu9FdK4GJsDulZkrydGY=8E4a -----END PGP SIGNATURE-----