Installing SunMC agent on many servers

Hi.

Does anyone have any suggestions as to how I can install many SunMC agents at the same time. I am using agent-update.bin to install the agents, but there are over 100 and I don't want to install them one at a time.

I cannot use cluster console or ctelnet since all servers are security hardened and I can only get onto them via ssh. pconsole will not be possible either.

I have to get the bin file from the server to each agent, and then run it on each agent via ssh.

Any suggestions?

[520 byte] By [MATTE] at [2007-11-26 8:50:01]
# 1

Hi Matte,

So this isn't really a SunMC question: it's "How can I do the same thing on 100 systems with only ssh?" :)

If you have ssh, then you can use scp to get agent-update.bin there. And agent-update.bin can be made non-interactive by wrapping it in a shell script that fill in it's prompts and configs SunMC for you.

If you can use ssh with keys (i.e you aren't prompted for a passwword with every connection) then a 10 line shell script can scp agent-update.bin and the script to each box and run them for you.

If you must type in your password every time (and can't enable ssh keys) then your best bet may be to use something like Expect (http://expect.nist.gov/) to run ssh and answer all the prompts for you. A nice side effect of using Expect is that if you ever want to do anything else on those systems by ssh you've already set things up.

If you can't use Expect, well, you can still script things with scp and ssh but you'll have to answer the ssh password prompt 100 times. If your password is the same on every box it wouldn't be so bad as you can paste it into your terminal and press return over and over and over...

Regards,

Mike.Kirk@HalcyonInc.com

http://www.HalcyonInc.com

Aronek at 2007-7-6 22:40:19 > top of Java-index,Administration Tools,Sun Management Center...
# 2
Thanks Mike.Don't think I'll be allowed to install expect and I'm not that hot at script writing either. Maybe I'll get someone else to write a script for me!!RegardsMATTE
MATTE at 2007-7-6 22:40:19 > top of Java-index,Administration Tools,Sun Management Center...