Network Management / (OpenView-NNM) Practitioners Forum
cancel

Automated Email Reports from NNMi

Highlighted
Ranganatha_M Respected Contributor.
Respected Contributor.

Automated Email Reports from NNMi

How to create auto email reports from NNMi containing the list of nodes currently being monitored in NNMi inventory. I want to automate this report and send it to management/NOC for their review on daily/weekly basis.

Your quick reponse is appreciated.

5 REPLIES
Gediminas Daniu  Honored Contributor..
 Honored Contributor..

Re: Automated Email Reports from NNMi

Hi,

you can try to dump nodes inventory and email it e.g.
nnmtopodump.ovpl -type node | grep -e "<shortname>"

 

regards

Gedas

Ranganatha_M Respected Contributor.
Respected Contributor.

Re: Automated Email Reports from NNMi

What abt the auto email function? Do I need to write an email script and put it in auto action or NNMi has built-in functionality that can send auto email?

Gediminas Daniu  Honored Contributor..
 Honored Contributor..

Re: Automated Email Reports from NNMi

Sure, scripting is required. 

Script can be trigered by cron job e.g.   dayly,  dump NNMI inventory, process output and create "inventory" file :

/opt/OV/bin/nnmtopodump.ovpl -type node  | grep -e ^"        <name>" | sed 's/<\/name>//g' |  sed 's/<name>//g' |  sed 's/ //g'  | sort >  nodes.list.txt

and forward it to your email client (mailx, blat etc.)


regards

Gedas

asoloperto Acclaimed Contributor.
Acclaimed Contributor.

Re: Automated Email Reports from NNMi

Hello,

 

NNMi has no build-in function to sent emails. You can do this with a tool like blat on Windows. NNMi delievers OVPerl and this contains a module for sending mail to a SMTP server (I think it is Net::SMTP and I use this as it is OS independant).

 

HTH and kind regards

 

Allessandro

Chinoo Respected Contributor..
Respected Contributor..

Re: Automated Email Reports from NNMi

I use vbs script in Windows. Irrespective of server, it won't work unless you've got an SMTP relay system.