How to Use Built-in Function Supplied by NetView/6000

ITEM: RTA000088156



I'd like to know about the "built-in function" supplied with                    
NetView/6000.                                                                   
                                                                                
According to the AIX SystemView NetView/6000(V2) Progamer's Reference,          
in the description of "OVwRegIntro", some built-in functions are                
suplied with NetView/6000, and it seems that user written programs              
can use them. (Though their behavior might not be garanteed...)                 
                                                                                
Q1. How do we do to execute those functions?                                    
Q2. I'd like to use the "f.redolayout" function.                                
   When I tried it by OVwDoAction( appName, "redolayout",,,),                   
   it failed with the message "OVw_APP_NOT_FOUND".                              
   If using OVwDoAction is correct, what application name should I              
   specify as the first argument?                                               
                                                                               
ANSWER                                                                          
I have not had a chance to try this for myself, but my reading of the           
function is that the application name field should be a pointer to the          
name by which the application is registered in the application                  
registration file.  So in your example, f.redolayout is from the                
"ovw" registration file, which defines an application name of                   
"NetView Windows".  I THINK that it might work if you declare appname           
like this:                                                                      
                                                                                
char * appname = "NetView Windows" ;                                            
                                                                                
Can you try this and respond here whether it works or not.                      
                                                                                
QUESTION                                                                        
I tried to set APPNAME as                                                      
"NetView/6000 Windows", which was the application name of                       
"ovw" in case of NetView V2.1.                                                  
But I saw the the error "OVw_ACTION_NOT_FOUND" with OVwCheckAction(),           
which was placed before OVwDoAction().                                          
I tried with the program shown below:                                           
                                                                                
#include                                                               
#include                                                              
main()                                                                          
                                                                                
OVwMapInfo   *map;                                                              
                                                                                
        OVwInit();                                                              
    map=OVwGetMapInfo();                                                        
    if ( OVwCheckAction("NetView/6000 Windows",  /* APP NAME  */               
                        "f.redolayout",          /* ACTION ID */                
                        NULL, map, NULL) < 0 ) {                                
        printf("ERROR: %s/n", OVwErrorMsg(OVwError()));                         
        exit(1);                                                                
    }                                                                           
    if ( OVwDoAction("NetView/6000 Windows",     /* APP NAME  */                
                        "f.redolayout",          /* ACTION ID */                
                        NULL, map, NULL) < 0 ) {                                
        printf("ERROR: %s/n", OVwErrorMsg(OVwError()));                         
        exit(2);                                                                
    }                                                                           
   OVwDone();                                                                   
                                                                                
                                                                                
In this program, OVwCheckAction() causes error.                                
I tried to replace the action ID from "f.redolayout" to "redolayout",           
but the result was the same.                                                    
Please give me advice for setting "APPNAME".                                    
                                                                                
ANSWER                                                                          
                                                                                
It seems that most of the actions in the "ovw" registration file are            
"internal actions" - that is, functions internal to the ovw program             
itself and not registered actions like most of the things that appear           
on the menu bars. This means that they cannot be executed by OVwDoAction.       
                                                                                
Apart from that, my suggestion was right. For example if you replace            
the application name with "SNMP MIB Browser" and the action with                
"xnmbrowser" the program you list above will work correctly.                    
                                                                               
S e a r c h - k e y w o r d s:                                                  
NVAIX APIS OVWDOACTION                                                          
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000088156 ITEM: RTA000088156
Dated: 01/1996 Category: ITSCSAIXNV6
This HTML file was generated 99/06/24~12:43:29
Comments or suggestions? Contact us