WBEM Solutions Bringing IT Together
Home Products professional services Training Support Resources About

Resources


Back to Knowledge Base page.

Date: 01/07/2004
Title: How to Change the Default Ports Used By the J WBEM Server
Products: J WBEM Server 1.0
WBEM SDK 1.0 Professional Edition
Operating Systems: Solaris, Linux, Windows
Introduction

Port conflicts can arise if two instances of the J WBEM Server are running at the same time, or if the default ports used are already taken by another application. The J WBEM Server uses the following ports by default:

5988 : CIM-XML (HTTP Requests)
5989 : CIM-XML (HTTPS Requests)

These ports used by the J WBEM Server are determined by instances of classes in the server's repository. Below are the class.property names and the MOF file which defines the instances.

J WBEM Server 1.0
Namespace: /Interop
Class Property: WBEMServices_CIMXMLProtocolAdapter.PortNumber
MOF File: WBEMSolutions_CIMXMLCPA.mof

J WBEM Server with WBEM SDK 1.0
Namespace: /root/cimv2
Class Property: WBEMServices_ProtocolAdapter.PortNumber
MOF File: WBEMServices_CIMXMLCPA.mof

Changing the PortNumber properties of these instances may not be readily feasible, especially if the J WBEM Server cannot receive client instructions because ports are in use.

Resolution

In the following steps, BASEDIR denotes the directory in which the J WBEM Server is installed on the target system. On Win32 platforms, replace the forward slash directory separator ('/')with backslashes ('\').

J WBEM Server 1.0
1. Edit the BASEDIR/server/jws/mof/WBEMSolutions_CIMXMLCPA.mof file. Change the PortNumber properties for both instances from their defaults.

2. Back up the BASEDIR/server/jws/logr directory as a precaution.

3. Execute the mof compiler as follows from the BASEDIR/sdk/bin directory (this is all one line).

mofcomp -n interop -o BASEDIR/server/jws/logr/ -I -C BASEDIR/server/jws/mof/WBEMSolutions_CIMXMLCPA.mof

J WBEM Server with WBEM SDK 1.0
1. Edit the BASEDIR/sdk/mof/WBEMServices_CIMXMLCPA.mof file. Change the PortNumber property for the instance.

2. Back up the BASEDIR/server/ws/logr directory as a precaution.

3. Execute the mof compiler as follows from the BASEDIR/sdk/bin directory (this is all one line):

mofcomp -n root/cimv2 -o BASEDIR/server/ws/logr/ -I -C BASEDIR/sdk/mof/WBEMServices_CIMXMLCPA.mof

The switches on the mofcomp line:

-o < directory > : Operate on the J WBEM Server whose repository resides in this certain directory. This allows you to build or modify a repository without the server running.

-C : Update class existing definitions

-I (dash and the capital letter 'i'): Update instances

-n < namespace >: The namespace in which to compile the MOF file (in this case, the interop namespace).

home | contact us | privacy policy
Copyright © 2002-2008 WBEM Solutions, Inc.
All Rights Reserved.