This extension retrieve some unix system information, like configured network interfaces. In the future I'd like to implement disk and network functions.
Designed on 1.1.10, but should work on any 1.1.x.
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
Total 3 comments
Thanks for quick reply.
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
Actully i dont know which function i need to call to get systeminfo using this extension ?
Leave a comment
Please login to leave your comment.