To: | <nv-l@lists.us.ibm.com> |
---|---|
Subject: | RE: [nv-l] FW: Placing data from script into netview event window |
From: | "Barr, Scott" <Scott_Barr@csgsystems.com> |
Date: | Tue, 30 Mar 2004 14:57:59 -0600 |
Delivery-date: | Tue, 30 Mar 2004 22:09:42 +0100 |
Envelope-to: | nv-l-archive@lists.skills-1st.co.uk |
Reply-to: | nv-l@lists.us.ibm.com |
Sender: | owner-nv-l@lists.us.ibm.com |
Thread-index: | AcQWk0BJhuUB0/Q4RMWAnRlnn7wXnwAA8z3wAAB0a8A= |
Thread-topic: | Placing data from script into netview event window |
Patrick I understand using a script to get trap data out of a trap using
environment variables. The only way I know of to put data into the event window
would be to create a trap. Here is a PERL example I use and my data is
accurately displayed in the event window:
This example assumes $HOSTNAME is a valid NetView
hostname.
#
-------------------------------------------------------------------
# --- SubRoutine SendUpTrap
($USER) ---
#
-------------------------------------------------------------------
sub SendUpTrap
{
# $USER is a vpn concentrator connection/user name
# $STATE is either "Connected" or "Disconnected"
my $USER =
$_[0];
my $STATE =
$_[1];
$TRAP = "/usr/OV/bin/snmptrap
" . $HOSTNAME .
" .1.3.6.1.4.1.10000 \"\" 6
101 0 " .
".1.3.6.1.4.1.10000.1.1
octetstring \"VPN Event\" " .
".1.3.6.1.4.1.10000.1.2
octetstring \"$USER\" " .
".1.3.6.1.4.1.10000.1.3
octetstring \"$STATE\" ";
system "$TRAP" ;
}
In this example, $USER and $STATE appear in the event
viewer.
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [nv-l] FW: Placing data from script into netview event window, James Shanks |
---|---|
Next by Date: | Re: [nv-l] web console, Jim . Federline |
Previous by Thread: | Re: [nv-l] FW: Placing data from script into netview event window, James Shanks |
Next by Thread: | Antwort: RE: [nv-l] web console [FinanzIT: Viruscheck][Virus checked byFinanzIT], Swen . Jedlicka |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web