ok

Mini Shell

Direktori : /lib/fm-agent/dependencies/phacter/
Upload File :
Current File : //lib/fm-agent/dependencies/phacter/windows.py

# This software may be freely redistributed under the terms of the GNU
# general public license.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

import os
import netifaces

def ipaddress():
    return netifaces.ifaddresses('{3351227E-DB77-4538-9524-2E59C6DAF564}')[2][0]['addr']
def fqdn():
    return 'server02.example.com'
def processorcount():
    return int(os.environ['NUMBER_OF_PROCESSORS'])

Zerion Mini Shell 1.0