[mrtg] Re: Batch files and variables
Steven Williams
Steven.Williams at computershare.com.au
Thu Aug 21 01:24:13 MEST 2003
In Openview, if you passed $a $b $c into the batch file, your batch should
use %1 %2 %3 to represent the first, second and thrid variable parsed into
it...
Steve Williams
Communications Support Engineer
Computershare Technology Services
Melbourne Australia
steven.williams at computershare.com.au
+61 3 9235 5651
www.computershare.com
-----Original Message-----
From: Peter P. Benac [mailto:ppbenac at emacolet.com]
Sent: Thursday, August 21, 2003 7:06 AM
To: 'MRTG Mailing List'
Subject: [mrtg] Re: Batch files and variables
Jason,
This is a question better answered on the OV Forum, but from the Event
Correlation Menu if you call a script you can pass that script any variable
available from NNM.
I suggest that you load the Mail::Sendmail Module in to Perl and use it
to send your event message. The Sendmail module will allow you set the sent
time.
If you want further OV help contact me directly or join OVForum.org or
NMSUsers.org.
Regards,
Pete
----
Peter P. Benac, CCNA
Emacolet Networking Services, Inc
Providing Systems and Network Consulting, Training, Web Hosting Services
Phone: 919-847-1740 or 866-701-2345
Web: http://www.emacolet.com
Need quick reliable Systems or Network Management advice visit
http://www.nmsusers.org
To have principles...
First have courage.. With principles comes integrity!!!
> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch
> [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of Jason Humes
> Sent: Wednesday, August 20, 2003 16:44
> To: 'MRTG Mailing List'
> Subject: [mrtg] Batch files and variables
>
>
> Hello
> This is not directly related to MRTG but network monitoring
> in general. I am trying to write a batch file to send email
> when a trap is received into HP OpenView and I've got the
> batch configured properly to send the mail, but I would like
> to send some of the variables available to HP OpenView in the
> email alerts. For example, if I use $x in an HPOpenView
> action it displays the time which the trap was received...is
> there any way in which I can use this $x variable in my batch
> file so that the email would have the time stamp on it.
> Thanks very much.
>
>
>
> Jason D. Humes
>
>
>
> Applied Computer Solutions Inc.
>
> 3020 St. Etienne Blvd.
>
> Windsor, Ontario
>
> Phone: (519) 944-4300 x211
>
> Fax : (519) 944-4247
>
> Email : jhumes at acs.on.ca <mailto:jhumes at acs.on.ca>
>
>
>
>
>
> **********************************************************************
>
> Confidentiality Notice:
>
> The information contained in this e-mail and any attachments
> may be legally privileged and confidential. If you are not an
> intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this e-mail and any
> attachments is strictly prohibited. If you received this
> e-mail in error, please notify the sender and permanently
> delete the e-mail and any attachments immediately. You should
> not retain, copy or use this e-mail or any attachment for any
> purpose, nor disclose all or any part of the contents to any
> other person.
>
> Thank you.
>
>
>
>
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive http://www.ee.ethz.ch/~slist/mrtg
> FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
>
>
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
---
This email and any files transmitted with it are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us by return email immediately. Please also disregard the contents of the email, delete it and destroy any copies immediately.
Computershare Limited and its subsidiaries do not accept liability for the views expressed in the email or for the consequences of any computer viruses that may be transmitted with this email.
This email is also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner.
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list