Development status:
Released,
Release: release_1_1_0
Information status: Updated
Repository:
http://svn.code.sf.net/p/tango-ds/code/DeviceClasses/SoftwareSystem/OSManager
Contact:
Class Description
DeviceServer used to remotely access the operating system through TANGO.
Families: SoftwareSystem
Key words:
Language: Cpp
Contact:
Class interface
Attributes:
Name | Description |
---|---|
upTimeScalar: DevString | — |
timeScalar: DevString | — |
secondSince1970Scalar: DevLong | — |
cpuChargeScalar: DevShort | — |
physicalMemoryUsedScalar: DevDouble | — |
swapUsedScalar: DevDouble | — |
virtualMemoryUsedScalar: DevDouble | — |
sortProcessesListByScalar: DevString | — |
servicesListSpectrum: DevString | — |
processesListSpectrum: DevString | — |
doubledProcessesListSpectrum: DevString | — |
lastCpuLoadSpectrum: DevLong | — |
Commands:
Name | Description |
---|---|
StateInput: DevVoid Output: State |
This command gets the device state (stored in its device_state data member) and returns it to the caller. |
StatusInput: DevVoid Output: DevString |
This command gets the device status (stored in its device_status data member) and returns it to the caller. |
ImmediateShutdownInput: DevVoid Output: DevVoid |
Initiates an immediate shutdown of the operating system As this is not possible to get a remote indication of the real state of shutdown, , you should wait a few seconds before turning power off the crate, so that you let the system gracefully shutdown |
DifferedShutdownInput: DevShort Output: DevVoid |
Initiates a shutdown after the number of seconds given as argument You should wait a few seconds before turning power off the crate to let the system gracefully shutdown |
ShutdownAndPowerOffInput: DevVoid Output: DevVoid |
Does an immediate shutdown and switch power off if possible Of course, the system must support the power-off feature. |
ShellExeInput: DevVarStringArray Output: DevVoid |
execute a shell script with arguments as this : "cmd", "arg1 arg2 ..." For Linux, you can add the `&` character to avoid CORBA timeout ! |
RebootInput: DevVoid Output: DevVoid |
Reboot system |
KillProcessByPIDInput: DevULong Output: DevVoid |
Kill a process identified by its pID. |
StartServiceInput: DevString Output: DevVoid |
Start the specified service |
ReStartServiceInput: DevString Output: DevVoid |
Stop and start the specified service |
ReStartStarterServiceInput: DevVoid Output: DevVoid |
ReStart the local starter service |
ReStartNTPDaemonInput: DevVoid Output: DevVoid |
ReStarts the NTP Daemon service |
GetOSVersionInput: DevVoid Output: DevString |
Returns the OS version on which the device is running |
SearchProcessesInput: DevString Output: DevVarStringArray |
Returns process(es) matching the pattern. This command is case insensitive. |
ProcessInfosInput: DevULong Output: DevVarStringArray |
Return process informations such as : - exe name - command line - memory usage - peak memory usage - started at - ended at - ... |
ProcessModulesInput: DevULong Output: DevVarStringArray |
Process dlls loaded |
Pipes:
Properties:
Please log in to comment.
Generated
README
b'//-============================================================\n//\n// This class has been generated by POGO\n// (Program Obviously used to Generate tango Object)\n//\n// (c) - Software Engineering Group - ESRF\n//=============================================================\n\n\nFiles generated:\n===============\nOSManager.cpp: Source code for the OSManager class and its commands.\n This class is derived from DeviceImpl_2 class.\n It represents the CORBA servant obbject which\n will be accessed from the network.\n All commands which can be executed on the\n OSManager are implemented in this file.\n\nOSManager.h: Include for the OSManager class.\n Server class prototypes and descriptions.\n\nOSManagerClass.cpp: A singleton class derived fromOSManager.\n It implements the command list and all properties\n and methods required by the OSManager once per process\n\nOSManagerClass.h:\tInclude for the OSManagerClass root class.\n This class is represents the singleton class for\n the OSManager device class.\n It contains all properties and methods which the \n OSManager requires only once e.g. the commands.\n\nmain.cpp:\t\tC++ source for a TANGO device server main.\n The main rule is to initialise (and create) the Tango\n system and to create the DServerClass singleton.\n The main should be the same for every Tango device server.\n\nClassFactory.cpp:\tC++ source for the class_factory method of the DServer\n device class. This method is responsible to create\n all class singletin for a device server. It is called\n at device server startup\n'
Updated:
The device class has been updated.
You can see previous version here .
23 Feb 2017, Piotr Goryl
Created:
The device class has been added to catalogue.