nv-l
[Top] [All Lists]

RE: [Fwd: OVw Question]

To: nv-l@lists.tivoli.com
Subject: RE: [Fwd: OVw Question]
From: "Allison, Jason (JALLISON)" <JALLISON@arinc.com>
Date: Thu, 6 Dec 2001 08:42:58 -0500
Robin,

Thanks for the reply.  What you are doing is half of what I want todo.  I
have been able to create maps/objects/symbols, my problem is that I also
have a real-time map.  My concern is that when an operator takes an action
to close the submap I generated to make sure I delete the symbols and that
submap.

After writing the email, I came across another API routine.  Originally I
did see OVwMapCloseCB, but I knew this only worked with -the map-, and not
submaps.  By searching the .h files I did find an OVwSubmapCloseCB (not in
my programmers reference), which will work in my situation, ie add the CB
for my created submap and delete all of my created symbols on the submap and
then delete the submap itself.

Does anyone have any insight to this program sample and its cleanup of
created symbols?

Thanks again for the reply,
Jason

-----Original Message-----
From: Robin James [mailto:robin.james@thalesatm.com]
Sent: Thursday, December 06, 2001 8:24 AM
To: NetView Discussion
Subject: [Fwd: [NV-L] OVw Question]


Jason,

I haven't looked at the example application but I can give our
experience.

We have created a customised map using the APIs you mention. Our map is
fixed and never changes so it isn't tied to the Netview discovery
mechanism. On startup the code checks if the symbols already exist and
creates them if they don't exist. We never delete the symbols because we
want them to be there when the user next starts the Netview GUI.

The only time the map and its symbols gets deleted is when we clear the
Netview databases. We clear the databases infrequently and use the
command "nv6000_smit clear_topology_db_all". 


Robin



-------- Original Message --------
Subject: [NV-L] OVw Question
Date: Thu, 6 Dec 2001 08:07:53 -0500
From: "Allison, Jason (JALLISON)" <JALLISON@arinc.com>
Reply-To: IBM NetView Discussion <nv-l@tkg.com>
To: "'nv-l@tkg.com'" <nv-l@tkg.com>

Resend of "Question regarding prg_samples/ovw_examples/app7/seven.c", it
did
not seem to get through the first send.

The goal of example app7 is "This is a sample map application that
discovers
the nfs clients served by a system".  My question is regarding OVw
internal
"destroying" of symbols and submaps created via this application.

-- snip
if ((submapId = OVwCreateSubmap (map, compObjInfo->object_id,
                                   ovwSharedSubmap,
                                   ovwNoSubmapType, submapname,
                                   ovwStarLayout, 0))
                == ovwNullSubmapId) {
-- end snip

-- snip
OVwCreateSymbol (map, submapId, sysObjInfo->object_id,
                                         "Computer:Workstation", host,
                                         ovwUnknownStatus,
                                         ovwSymbolStatusSource,
                                         center_pos, ovwNoSymbolFlags)
-- end snip

My question(s) is:

- When an operator takes the action to close a map (submap), are the
symbols
created by this app (as well as the submap) deleted from the OVw db?  If
so,
how and when?

- If I want to create a submap and symbols, what are the "best
practices"
for cleanup?  The routine for this is OVwDeleteSubmap and
OVwDeleteSymbol.
Where do the deletes get hooked in?


Thanks,


Jason Allison
ARINC Corporation
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l


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

Archive operated by Skills 1st Ltd

See also: The NetView Web