Changes between Version 25 and Version 26 of v1
- Timestamp:
- Aug 4, 2010, 2:50:45 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
v25 v26 44 44 Constructor: 45 45 46 - **class** DbConn(dbName,dbType,username,password,host,port) 46 - **class** DbConn(dbName,dbType,username,password,host,port): 47 47 `dbName,dbType,username,password,host,port` are string arguments specified in the configuration file : f_config_pdu.cfg on section //default// 48 48 … … 50 50 51 51 All class methods: 52 52 53 * `create_tables() :` Have to be called once, to create Powermon tables corresponding to the the following database schema : 53 54 [[Image(https://trac.lal.in2p3.fr/PowerMon/browser/trunk/powermon_db_schema.png)]] … … 93 94 Constructor: 94 95 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 100 All 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
![(please configure the [header_logo] section in trac.ini)](/PowerMon/chrome/site/your_project_logo.png)