Network Management / (OpenView-NNM) Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

E-mail Notification for Automatic action

Occasional Visitor

E-mail Notification for Automatic action

I am using MKS and NNM 6.1 for Windows NT.

I type the following at "command for Automatic Action":
echo 'trap recieved from $E down' | smtpmail -h mail.xxx.com -s '$E down'
wlee@xxx.com

I never recieve the mail. However, the above command works from command line.

The followings are from the ovaction.log:
Wed Apr 26 14:19:40 Command "echo 'trap reciev from compaq down' | smtpmail -s
mai
l.xxx.com -s 'compaq down' wlee@xxx.com" returned standard output data:
'trap reciev from compaq down' | smtpmail -h mail.xxx.com -s 'compaq down'
wlee@xx
x.com

It seems to me the pipe never work. Only echo works.
Echo takes everything after echo as string and does not recongize the "|"
command.
I put c:\\mks\\mksnt\\echo.exe to use the echo from mks. The result is same.

Anyideas? Please help.
Thanks a lot.

Walter.
4 REPLIES
Super Advisor

Re: E-mail Notification for Automatic action

Lee, make sure the owner is bin. Bin does the action.

Berlene
Occasional Visitor

Re: E-mail Notification for Automatic action

Berlene,
could you please explain what you mean when you say that owner is bin?
I am using Windows NT. There is no user named bin.
Please help. Thanks a lot.

Walter.
Occasional Contributor

Re: E-mail Notification for Automatic action

Hi,

a workaround could be, to write a little script which does the work and takes the message text and subject as a parameter.

Christoph
Highlighted

Re: E-mail Notification for Automatic action

Hi,

By default NT doesn't have user bin, it seems that the equivalent user bin is called LocalSystem Account.
I am not sure, but I believe that by default Automatic Actions are running in NT using a System Account while in UNIX they use user bin.

Thank you