Unsolved

This post is more than 5 years old

2 Intern

 • 

147 Posts

2383

May 13th, 2011 12:00

How to sent owner notification for two email address in NMC.

Hi,

Product :- Netowrker.

How to sent owner notification for two email address in NMC.

I set the following way but did not get any responce.

NMC 7.5:-

NMC--->Configration--> Client--->x.x.x.x (server)----->right click properties--->4th tab----Owner Notification

/usr/ucb/mail –s “notification” abc@xyz.com; /usr/ucb/mail –s “notification” def@xyz.com

/usr/ucb/mail –s "X.X.X.X notification” abc@xyz.com; def@xyz.com

Thank you

Moin

6 Operator

 • 

14.4K Posts

 • 

56.2K Points

May 15th, 2011 10:00

You don't say what OS, but for Linux and HPUX I use mailx while for AIX and Linux mail (but not the one from ucb).  Try following from CLI first:

echo "This is test message" | mail -s " notification" abc@xyz.com def@xyz.com

(note there is no ";" between email addresses)

If that works, use that format (the one after pipe of course).

2 Intern

 • 

147 Posts

May 20th, 2011 05:00

Hi,

I am talking about networker.......machin is solaris...

mail -s "XXXX notification" abc@xyz.com; def@xyz.com

Above command is right...we are getting notification email but without subject......Then now let me no how to get email with subject in networker owner notification.

please don't tell me use -s with command..I already done it...but no luck to resolve the isssue....

6 Operator

 • 

14.4K Posts

 • 

56.2K Points

May 20th, 2011 06:00

On Solaris (but for savegrp notifications) I use mailx, eg:

/usr/bin/mailx -r noreply@company.com -s "$(/usr/bin/uname -n) has something to say..." foo@bar bar@foo

Obviously you can place for -s whatever you want.  Can you test such approach?  I think first you could test it from CLI... eg:

echo "This is test" | /usr/bin/mailx -r noreply@company.com -s "$(/usr/bin/uname -n) has something to say..." foo@bar bar@foo

Part with -r noreply@company.com you can skip - we have requirement that we should mask root@machine to avoid any eventual storms and if anything is sent to noreply@anywhere address it ends in bin for good.

No Events found!

Top