Changes between Version 25 and Version 26 of v1


Ignore:
Timestamp:
Aug 4, 2010, 2:50:45 AM (15 years ago)
Author:
naitabde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • v1

    v25 v26  
    4444Constructor:
    4545
    46 - **class** DbConn(dbName,dbType,username,password,host,port)
     46- **class** DbConn(dbName,dbType,username,password,host,port):
    4747          `dbName,dbType,username,password,host,port` are string arguments specified in the configuration file : f_config_pdu.cfg on section //default//
    4848           
     
    5050
    5151All class methods:
     52
    5253* `create_tables() :` Have to be called once, to create Powermon tables corresponding to the the following database schema :
    5354[[Image(https://trac.lal.in2p3.fr/PowerMon/browser/trunk/powermon_db_schema.png)]]
     
    9394Constructor:
    9495
    95 - **class** PDU()
     96- **class** PDU(nom,hostName,rootOID,nbOutlets,port,community,snmpVersion) :
     97           
     98            `nom,hostName,rootOID,nbOutlets,port,community,snmpVersion` are arguments collected from the table PDU , which can be modified by the file: //f_config_pdu.cfg// .
     99
     100All class methods:
     101
     102* `getData(no_outlet):` Performs asynchronous snmp Get and returns real time consumption value on outlet number "no_outlet"
     103
     104* `getSetOfData():` Performs snmp walk and returns a set of real time consumption values on the PDU an integer representing the correponding timestamp.
     105