1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-30 14:21:11 +03:00
This commit is contained in:
david hill
2016-08-02 11:51:44 -05:00
parent af051987a6
commit 60fe260033
2 changed files with 4 additions and 105 deletions

View File

@@ -26,17 +26,10 @@
<Arg1>None</Arg1> <Arg1>None</Arg1>
</Cmd3> </Cmd3>
<Cmd4> <Cmd4>
<Name>getSystemConfig</Name> <Name>AVAILABLE</Name>
<Desc1>Get System Configuration Information</Desc1>
<Desc2>Can display all parmeters or a single parameter</Desc2>
<Arg1>No Argument or 'all' will display all System Configuration parameters</Arg1>
<Arg2>Optional: Parameter-name will display the System Configuration parameter</Arg2>
</Cmd4> </Cmd4>
<Cmd5> <Cmd5>
<Name>setSystemConfig</Name> <Name>AVAILABLE</Name>
<Desc1>Set a System Configuration parameter</Desc1>
<Arg1>Required: Parameter-name is the parameter to be updated</Arg1>
<Arg2>Required: Parameter-value is the parameter value</Arg2>
</Cmd5> </Cmd5>
<Cmd6> <Cmd6>
<Name>getModuleTypeConfig</Name> <Name>getModuleTypeConfig</Name>

View File

@@ -702,107 +702,13 @@ int processCommand(string* arguments)
} }
break; break;
case 4: // getSystemConfig case 4: // Available
{ {
SystemSoftware systemsoftware;
SystemConfig systemconfig;
string returnValue;
if (arguments[1] == "all" || arguments[1] == "")
{
// get and all display System config parameters
try
{
oam.getSystemSoftware(systemsoftware);
oam.getSystemConfig(systemconfig);
cout << endl << "System Configuration" << endl << endl;
cout << "SystemName = " << systemconfig.SystemName << endl;
cout << "SoftwareVersion = " << systemsoftware.Version << endl;
cout << "SoftwareRelease = " << systemsoftware.Release << endl;
cout << "ParentOAMModuleName = " << systemconfig.ParentOAMModule << endl;
cout << "StandbyOAMModuleName = " << systemconfig.StandbyOAMModule << endl;
cout << "NMSIPAddr = " << systemconfig.NMSIPAddr << endl;
cout << "ModuleHeartbeatPeriod = " << systemconfig.ModuleHeartbeatPeriod << endl;
cout << "ModuleHeartbeatCount = " << systemconfig.ModuleHeartbeatCount << endl;
// cout << "ProcessHeartbeatPeriod = " << systemconfig.ProcessHeartbeatPeriod << endl;
cout << "DBRootCount = " << systemconfig.DBRootCount << endl;
std::vector<std::string>::iterator pt = systemconfig.DBRoot.begin();
int id=1;
for( ; pt != systemconfig.DBRoot.end() ; pt++)
{
string dbroot = *pt;
cout << "DBRoot" + oam.itoa(id) + " = " + dbroot << endl;
++id;
}
cout << "DBRMRoot = " << systemconfig.DBRMRoot << endl;
cout << "ExternalCriticalThreshold = " << systemconfig.ExternalCriticalThreshold << endl;
cout << "ExternalMajorThreshold = " << systemconfig.ExternalMajorThreshold << endl;
cout << "ExternalMinorThreshold = " << systemconfig.ExternalMinorThreshold << endl;
cout << "MaxConcurrentTransactions = " << systemconfig.MaxConcurrentTransactions << endl;
cout << "SharedMemoryTmpFile = " << systemconfig.SharedMemoryTmpFile << endl;
cout << "NumVersionBufferFiles = " << systemconfig.NumVersionBufferFiles << endl;
cout << "VersionBufferFileSize = " << systemconfig.VersionBufferFileSize << endl;
cout << "OIDBitmapFile = " << systemconfig.OIDBitmapFile << endl;
cout << "FirstOID = " << systemconfig.FirstOID << endl;
cout << "TransactionArchivePeriod = " << systemconfig.TransactionArchivePeriod << endl;
}
catch (exception& e)
{
cout << endl << "**** getSystemConfig Failed : " << e.what() << endl;
}
}
else
{ // get a single parameter
try
{
oam.getSystemConfig(arguments[1], returnValue);
cout << endl << " " << arguments[1] << " = " << returnValue << endl << endl;
}
catch (exception& e)
{
cout << endl << "**** getSystemConfig Failed : " << e.what() << endl;
}
}
} }
break; break;
case 5: // setSystemConfig - parameters: Module name, Parameter name and value case 5: // Available
{ {
parentOAMModule = getParentOAMModule();
if ( localModule != parentOAMModule ) {
// exit out since not on Parent OAM Module
cout << endl << "**** setSystemConfig Failed : only should be run on the Parent OAM Module, which is '" << parentOAMModule << "'" << endl;
break;
}
if (arguments[2] == "")
{
// need 2 arguments
cout << endl << "**** setSystemConfig Failed : Missing a required Parameter, enter 'help' for additional information" << endl;
break;
}
try
{
if ( arguments[2] == "=" ) {
cout << endl << "**** setSystemConfig Failed : Invalid Value of '=', please re-enter" << endl;
break;
}
oam.setSystemConfig(arguments[1], arguments[2]);
cout << endl << " Successfully set " << arguments[1] << " = " << arguments[2] << endl << endl;
}
catch (exception& e)
{
cout << endl << "**** setSystemConfig Failed : " << e.what() << endl;
}
} }
break; break;