RE: Port selection
Unnikrishnan Udinoor <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <B7A077F3E00DC044A4DBE049B31B2CD7518848DB41@HQ1-EXCH02.corp.brocade.com> |
Just to add to what Johnny mentioned : The configurations are maintained in the files by open Pegasus. I just executed the commands and tried looking at the values that file contains. Please see the details below. It will give you more details : Once you restart the server after this ... your server will be listing in the new port that you mentioned. [root@3a3-sp-rh5-2 pegasus-2.11.0]# pwd /root/smis/pegasus-2.11.0 [root@3a3-sp-rh5-2 pegasus-2.11.0]# cat cimserver_planned.conf ######################################################################## ## ## ## CIM Server configuration file ## ## ## ######################################################################## ######################################################################## # # # The configuration in this file is loaded by the CIM Server at # # start-up. This file is updated by the CIM Server when the # # configuration changes. # # # # Do not edit this file directly. Instead, use the cimconfig command # # to update the CIM Server configuration. # # # ######################################################################## [root@3a3-sp-rh5-2 pegasus-2.11.0]# cat cimserver_current.conf ######################################################################## ## ## ## CIM Server configuration file ## ## ## ######################################################################## ######################################################################## # # # The configuration in this file is loaded by the CIM Server at # # start-up. This file is updated by the CIM Server when the # # configuration changes. # # # # Do not edit this file directly. Instead, use the cimconfig command # # to update the CIM Server configuration. # # # ######################################################################## httpPort=5988 httpsPort=5989 [root@3a3-sp-rh5-2 pegasus-2.11.0]# cimconfig -g httpPort Current value: 5988 [root@3a3-sp-rh5-2 pegasus-2.11.0]# cimconfig -g httpsPort Current value: 5989 [root@3a3-sp-rh5-2 pegasus-2.11.0]# cimconfig -s httpsPort=1234 Specified property can not be modified. CIM_ERR_NOT_SUPPORTED: NonDynamic config property: httpsPort [root@3a3-sp-rh5-2 pegasus-2.11.0]# cimconfig -s httpsPort=1234 -p Planned value for the property httpsPort is set to "1234" in CIMServer. [root@3a3-sp-rh5-2 pegasus-2.11.0]# cat cimserver_planned.conf ######################################################################## ## ## ## CIM Server configuration file ## ## ## ######################################################################## ######################################################################## # # # The configuration in this file is loaded by the CIM Server at # # start-up. This file is updated by the CIM Server when the # # configuration changes. # # # # Do not edit this file directly. Instead, use the cimconfig command # # to update the CIM Server configuration. # # # ######################################################################## httpsPort=1234 [root@3a3-sp-rh5-2 pegasus-2.11.0]# From: Hwang, Johnny [mailto:[email protected]] Sent: Thursday, October 20, 2011 9:33 AM To: Kirk Augustin; Vitezslav Crhonek; [email protected] Subject: RE: Port selection Re Kirk: No, sometimes you need to change the ports if you're running several different cimservers when running several providers from different companies on the same computer. The way you change it is by cimconfig -p -s httpPort=1234 But back to your question. I don't see any specific env vars needed to be set regarding httpPort and httpsPort. These are what we have: PEGASUS_ROOT PEGASUS_HOME PEGASUS_PLATFORM PEGASUS_REPOSITORY_MODE PEGASUS_CIM_SCHEMA OPENSSL_HOME PEGASUS_HAS_SSL PEGASUS_ENABLE_SLP PEGASUS_EXTERNAL_SLP_HOME PEGASUS_OPENSLP_HOME PEGASUS_USE_EXTERNAL_SLP CMPI_PLATFORM (on Linux) PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER (on Windows) Also check the following cimconfig variables: enableHttpConnection and/or enableHttpsConnection should be set to true. Speaking of environment variables, are there any centralized documentation for which compile env vars are available for which Pegasus version? PEP 237 is horribly outdated. From: Kirk Augustin [mailto:[email protected]] Sent: Thursday, October 20, 2011 9:09 AM To: Vitezslav Crhonek; [email protected] Subject: Re: Port selection Probably not a good idea. First of all, ports are reserved and handed out by standards committee, and you should not be using ports arbitrarily. Second is that all clients and servers possibly connecting have to agree. It is not one build, but all the builds of all the systems that might be involved. The whole point is to have a well established common port. It is not normally desirable to have any port variation. Nor can I imagine any advantage to it, other than if there is a protocol variation, such as SSL. So first tell us why you think you would want to use a different port? Kirk Augustin 11821 NW McNamee Rd Portland, OR 97231 HM: 503-289-4356 WK: 503-744-8841 ________________________________ From: Vitezslav Crhonek <[email protected]> To: "[email protected]" <[email protected]> Sent: Thursday, October 20, 2011 7:44 AM Subject: Port selection Hello, Is there any possibility to set own http/https port values? I see httpPort and httpsPort options, but it seems that these options are disabled: $ cimconfig -g httpPort Specified property name was not found. CIM_ERR_NOT_FOUND: Configuration property "httpPort" Is there any way how to enable them? (Probably some env. variable during build time?) I'm also curious what happened with PEP #290: http://www.openpegasus.org/pp/upreviews/40/2362/orig/PEP290.html Because this feature would be useful in some situations. Best regards, Vitezslav Crhonek