Community
Zenoss Newsletter

Monitored by Zenoss
SourceForge.net Logo
Document Actions

cimRun

by Rainos last modified 2007-10-05 06:50AM

Used to call cimCollector. Can be run as a command from Zenoss. (pythion cimRun.py)

Click here to get the file

Size 1 kB - File type text/python-source

File contents

## Simple script: used to connect to CIM server and extract OS information
#

import cimCollector

col = cimCollector.cimCollector()

col.setUrl("http://192.168.2.2")
col.setUsername("user")
col.setPassword("password")
col.setObjectName('CIM_OperatingSystem')

col.getData()
col.printData()
x = col.getSysTime()
print x