version 1.11, 2004/10/17 20:40:42
|
version 1.13, 2005/01/27 18:57:33
|
|
|
usage.append (" - sets CIM Server configuration property\n"); | usage.append (" - sets CIM Server configuration property\n"); |
| |
cout << endl; | cout << endl; |
#if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_IA64_GNU) |
cout << PEGASUS_PRODUCT_NAME << " " << PEGASUS_PRODUCT_VERSION << endl; |
cout << PLATFORM_PRODUCT_NAME << " " << PLATFORM_PRODUCT_VERSION << endl; |
|
#else |
|
cout << PEGASUS_NAME << PEGASUS_VERSION << endl; |
|
#endif |
|
cout << endl; | cout << endl; |
cout << usage << endl; | cout << usage << endl; |
} | } |
|
|
if (*option == OPTION_VERSION && | if (*option == OPTION_VERSION && |
strlen(option) == 1) | strlen(option) == 1) |
{ | { |
#if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_IA64_GNU) |
cout << PEGASUS_PRODUCT_VERSION << endl; |
cout << PLATFORM_PRODUCT_VERSION << endl; |
|
#else |
|
cout << PEGASUS_VERSION << endl; |
|
#endif |
|
exit(0); | exit(0); |
} | } |
// | // |
|
|
// Put out startup up message. | // Put out startup up message. |
#if !defined(PEGASUS_OS_HPUX) && !defined(PEGASUS_PLATFORM_LINUX_IA64_GNU) && \ | #if !defined(PEGASUS_OS_HPUX) && !defined(PEGASUS_PLATFORM_LINUX_IA64_GNU) && \ |
!defined(PEGASUS_OS_OS400) | !defined(PEGASUS_OS_OS400) |
cout << PEGASUS_NAME << PEGASUS_VERSION << endl; |
cout << PEGASUS_PRODUCT_NAME << " " << PEGASUS_PRODUCT_VERSION << endl; |
cout << "Built " << __DATE__ << " " << __TIME__ << endl; | cout << "Built " << __DATE__ << " " << __TIME__ << endl; |
cout <<"Starting..." | cout <<"Starting..." |
<< (useSLP ? " SLP reg. " : " No SLP ") | << (useSLP ? " SLP reg. " : " No SLP ") |
|
|
// try loop to bind the address, and run the server | // try loop to bind the address, and run the server |
try | try |
{ | { |
#ifdef PEGASUS_USE_23HTTPMONITOR_CLIENT |
|
Monitor monitor(true); | Monitor monitor(true); |
#else |
|
monitor_2 monitor(); |
|
#endif |
|
CIMServer server(&monitor); | CIMServer server(&monitor); |
| |
if (enableHttpConnection) | if (enableHttpConnection) |
|
|
#endif | #endif |
| |
// Put server started message to the logger | // Put server started message to the logger |
#if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_IA64_GNU) |
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, |
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
Logger::INFORMATION, "Started $0 version $1.", |
"Started $0 version $1.", |
PEGASUS_PRODUCT_NAME, PEGASUS_PRODUCT_VERSION); |
PLATFORM_PRODUCT_NAME, PLATFORM_PRODUCT_VERSION); |
|
#else |
|
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
|
"Started $0 version $1.", |
|
PEGASUS_NAME, PEGASUS_VERSION); |
|
#endif |
|
|
|
| |
// | // |
// Loop to call CIMServer's runForever() method until CIMServer | // Loop to call CIMServer's runForever() method until CIMServer |
|
|
// | // |
// normal termination | // normal termination |
// | // |
|
|
// Put server shutdown message to the logger | // Put server shutdown message to the logger |
#if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_IA64_GNU) |
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, |
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
Logger::INFORMATION, |
"$0 stopped.", PLATFORM_PRODUCT_NAME); |
"$0 stopped.", PEGASUS_PRODUCT_NAME); |
#else |
|
Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
|
"$0 stopped.", PEGASUS_NAME); |
|
#endif |
|
| |
#if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) | #if defined(PEGASUS_OS_HPUX) || defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) |
// | // |