nv-l

RE: [NV-L] Node Status Report (Up/Down)

2007-04-03 09:57:32
Subject: RE: [NV-L] Node Status Report (Up/Down)
From: "Evans, Bill" <Bill.Evans AT hq.doe DOT gov>
To: "Tivoli NetView Discussions" <nv-l AT lists.ca.ibm DOT com>
Date: Tue, 3 Apr 2007 09:54:23 -0400
Here's a procedure I use in a cron job to notify me of the state of the universe every morning. 
It comes in handy when the night shift operations desk marks items as acknowledged and forgets them.
The operational command is highlighted.
 
#!/bin/bash
 
echo "This morning report was generated at `date`." >MorningReminder.txt
echo -e "\n--------------\n" >>MorningReminder.txt
echo "The following devices are marked as down in the NetView database." >>MorningReminder.txt
echo -e "These devices may require attention.\n" >>MorningReminder.txt
/usr/OV/bin/ovtopodump 2>/dev/null | egrep '(Down|Unreachable)' | grep -v Segment \
      | awk '{ printf ("\t %s \t %s \t %s \n",  $2, $3, $4) }' >>MorningReminder.txt
cat MorningReminder.txt | mail -s "Morning Reminder"
bill.evans@hq.xxx.xxx

Bill Evans


From: nv-l-bounces AT lists.ca.ibm DOT com [mailto:nv-l-bounces AT lists.ca.ibm DOT com] On Behalf Of Usman Taokeer
Sent: Tuesday, April 03, 2007 9:10 AM
To: Tivoli NetView Discussions
Subject: [NV-L] Node Status Report (Up/Down)

Hi,
NV v7.1.4 FP05
Windows 2003 Std Edt SP1


Is there any way to get the status(up/down only) of all/any node(s) currently in the NV database .


Regards,

Usman
_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)