ysysteminfo Retrieve some unix system informations

  1. Requirements
  2. Usage
  3. Links

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

Links

YetOpen
GitHub

2 0
3 followers
305 downloads
Yii Version: 1.1
License: GPL-3.0
Category: Others
Developed by: Maxxer
Created on: Mar 1, 2012
Last updated: 11 years ago

Downloads

show all