Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is ovw process running

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm a newbie with HP OpenView. I would like to understand the ovw process. Please tell me if I understand this correctly. The ovw process runs when NNM is started, is this correct? If so why is not shown be in the "RUNNING" state when you view the "NNM Services - Status" (i.e., by clicking "Start->HP OpenView->Network Node Manager Admin->NNM Services - Status"? The state is blank when i view this status.

What I'm really trying to do is write a simple test program to communicate with NNM. The main part of this program is as follows:

LibOvw libovw = new LibOvw();

try
{
// Log into the OpenView Window
libovw.OVwInitSession( "My Application", session + ":0" );
}
catch ( LibOvwException ex )
{
. . .
}

"session" is the name of the machine where NNM is running.

Running the app gives the following personalized exception:

Encountered error 17 in TestOV.main()
Permission denied

I have configured the ovw.auth file to accept all hosts and users by specifying the "+ +", "localhost +", "loopback +", and "loghost +". These are the defaults for the file by the way.

Could anyone give me any insights into this problem?

Thanks in advance,
Meng
 
OVW does not start when you run ovstart. When you run ovstart this will start all of the background process for NNM. OVW is s foreground process. Whne you type ovw at the command line this is what will bring up the GUI MAP. When you close the GUI it will also kill the ovw process. You will never see OVW as a process listed in the ovstatus -c command. You need to run ps -ef |grep ovw to see i fthis process is running.

takea look at the manpage for OVW

hope this helps
 
hi,

see as far as what i have worked with NNM i can tell u that this error of permission denied can occur due to one major reason that your application has not been registered with NNM.If this is the case then even if u use their API's u cant cannect to the NNM.

This occures because u havent asked NNM to register your application with it.HPOV NNM needs to know which application it is dealing with.

This can be achieved by creating your own reg file say myappl.reg and placing it in the registration directory in the Path where NNM is installed.

e.g i have installed NNM in the OPENVIEW folder

so the reg path goes as c:\openview\registration\c\myappl.reg

This file will contain the information that will allow u to register ur application with NNM.i.e the name of ur application

ok now the contents of the file

Application "My Application"
{
// this has various intermediate data but not
//required for a normal application.
}
store this data in the file and give it the extension as .reg and place it in the reg directory.

now try the following

#define APP_NAME "My Application"// this should be same
// as what u have
// written in the reg file
#define SERVER_NAME "session:0"

main()
{
if(OVwInitSession(APP_NAME,SERVER_NAME) < 0)
{
//log error message : OVwErrorMsg(OVwError())
}

}

this is a normal C code ... i guess this might solve your doubt.


/* This was the first part of it */
If u have done this and if still the problem pertains then what i want to ask u is r u trying to run this application of urs from a diffrent machine where NNM is not installed and trying to register your application. If this is the case then according to what i have figured out HPOV needs the registration to be done from the same machine where it is running. In this case what u can do is write a simple CGI program or a dll that does this registration and call this dll from the remote machine to perform the operation.

Cos RPC calls for NNM r only supported for UNIX. In case of WINDOWS we dont have any such method.

I had also faced a similar problem.I solved it by creating a dll that has all these calls made to NNM.From a remote machine i used http requests to the dll and the dll in turn querried the NNM for the responce.

this is all that i can think of right now.. Anything i remember later ill post it

thanx
amit

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top