Push script via managed jobs

I updated the email.sh script on the SunMC server and now would like to push it out via Managed Jobs.When I do so, I get "This target agent does not belong to the current server context: <hostname>:1161"What am I doing wrong?Steve
[264 byte] By [spaigejr] at [2007-11-26 6:00:56]
# 1

Hi Steve,

> When I do so, I get "This target agent does not

> belong to the current server context:

> <hostname>:1161"

That typically means the Agent you're trying to push to isn't sharing security with your SunMC Server.

Can you do any admin operations on that Agent? (i.e. try to disable/enable or load/unload a module and see if you get a security error).

Looking at the Info tab of that Agent at the event and trap destination IPs will show you the IP that Agent thinks it's sharing security with.

Regards,

Mike.Kirk@HalcyonInc.com

Aronek at 2007-7-6 13:22:30 > top of Java-index,Administration Tools,Sun Management Center...
# 2
Thanks Mike, I think I have it. How about changing the "from" on the SunMC alarms email?
spaigejr at 2007-7-6 13:22:30 > top of Java-index,Administration Tools,Sun Management Center...
# 3

> How about changing the "from" on the SunMC alarms

> email?

You've already looked at email.sh: it's a mail issue instead of a SunMC issue.

Similar to how the script pushes "Subject: $SUBJECT\n..." through $MAIL you should be able to push a "From:...\n" line in before it.

Check usage of /usr/bin/mail for syntax.

Regards,

Mike.Kirk@HalcyonInc.com

Aronek at 2007-7-6 13:22:30 > top of Java-index,Administration Tools,Sun Management Center...