nv-l
[Top] [All Lists]

Re: Sample API code for DEC Unix in C

To: nv-l@lists.tivoli.com
Subject: Re: Sample API code for DEC Unix in C
From: James Shanks <James_Shanks@TIVOLI.COM>
Date: Fri, 27 Aug 1999 18:21:11 -0400
Bob -

There are coding samples in various old redbooks,
     GG24-4059-00   Examples of Using AIX NetView/6000 APIs
     GG24-4327-00   Examples of Using NetView for AIX
     SG24- 4515-00  Examples of  NetView for AIX Version 4
but they are specific to what the writers of those books wanted to achieve, and
I am not sure how you would adapt any of them to what you want to do.   What
they say is all about AIX, because the books are older than the port to DEC, but
the NetView APIs they use are available in DEC, thought some of the AIX-specific
operating system functions may not be (such as trapgend and the errlog
functions).   Still you could look there to see what others have done.  But
there is no support for these sources either.

As for support for user coding, there isn't much.  You are basically on your own
unless you want to get a contract with Tivoli Professional Services and have
someone help you for a fee.

But I am still not clear what exactly you want to do.  You can trap an event
with a ruleset or automatic action and have it kick off ovxecho to put up a
pop-up window.   This happens in the background without operator intervention.
They only get involved to close the window.  Is that what you want to do only
from a program?   The filtertrap sample is all about building an app which uses
a filter to connect to trapd and get events.  You could build on this and expand
it to issue the ovexcho command to put up the pop-up using the C system( )
function.    The sample just prints its results using printf.  Of course, if you
are experienced with Xwindows programming, you could go all the way and put up
your own window.

Or do you want an operator to select an event off the event window and cause
something to happen as a result?  There is an interface provided for that.  It
is called an "Additional Action".  The man page for trapd.conf has a lengthy
explanation about how you can build a command (could just be a script -- the
example is )  to be executed from a selected event or set of events when the
operator pulls down Options --> Additional Actions from the event window menu.
You build  your command, script or executable, and then use xnmtrap and
"Configure Additional Actions" to add it to the list NetView provides.  The man
page tells you what your input will look like.   When everything is in place
your operators simply select the event or events, pull down the menu, and click
on your action, and it happens.

Hope this helps

James Shanks
Tivoli (NetView for UNIX) L3 Support



Bob Stamm <Robert_Stamm@RES.RAYTHEON.COM> on 08/27/99 05:22:48 PM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on NetView
      <NV-L@UCSBVM.UCSB.EDU>

To:   NV-L@UCSBVM.UCSB.EDU
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  Sample API code for DEC Unix in C




Is there any collection of sample code besides whats fround in the NetView
prg_samples
directory,  I'm part of a Raytheon Systems Company research project to
ddemonstrate the
capabilities of NetView in an Air Traffic Control System environment.

Currently I'm trying to figure out how to capture an event and post a
message on the display
using C and the API.  An event will do.  Using the prog_samples provided I
have a push button widget
I could use to initiate an event on the local machine at the GUI.  What we
have is code provided to
us by the Tivoli Federal Group's sales staff but no support really.
Therefore its hard to
demonstrate the capabilities of the product although I have created a few
apps so far.  For example
I can build a subma[p automatically from a API-based app that placed
symbols, unique to our setup in
a specific geometry on the map.

I just dont know where to go for help.

Thanks


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web