This extension retrieve some unix system information, like configured network interfaces. In the future I'd like to implement disk and network functions.
Requirements ¶
Designed on 1.1.10, but should work on any 1.1.x.
Usage ¶
Place this file in protected/extensions/ and add to your main.php or console.php
'components'=>array(
'YSystemInfo'=>array(
'class'=>'application.extensions.YSystemInfo',
),
),
then call
Yii::app()->YSystemInfo->functionName();
Available functions:
- getInterfaceNames: returns an array with network interface names
- getInterfacesByType: returns all the interface of a specific type
- getPartitionSize: get partition size where the specified directory is mounted
Get an error Undefine function name
Actully i dont know which function i need to call to get systeminfo using this extension ?
see source
actually there's no method to get real OS informations, the available functions are all the getters you find into the source file, like getInterfaceNames, getPartitionSize.
In the future I might implement others
Thanks
Thanks for quick reply.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.