summaryrefslogtreecommitdiffstats
path: root/src/sbin/Bcfg2Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-10-07 19:29:16 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-10-07 19:29:16 +0000
commite444e09f81a2c9d6a2d26a9c11fdebdfee7cf5a2 (patch)
tree728e74511d09201dc6de691264279f74aa257fff /src/sbin/Bcfg2Server
parent95c2b38c466b2e50ce54e64b041de23f2e86e380 (diff)
downloadbcfg2-e444e09f81a2c9d6a2d26a9c11fdebdfee7cf5a2.tar.gz
bcfg2-e444e09f81a2c9d6a2d26a9c11fdebdfee7cf5a2.tar.bz2
bcfg2-e444e09f81a2c9d6a2d26a9c11fdebdfee7cf5a2.zip
add HandleStats
(Logical change 1.82) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@393 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/Bcfg2Server')
-rw-r--r--src/sbin/Bcfg2Server6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/Bcfg2Server b/src/sbin/Bcfg2Server
index dde064474..637dd00bb 100644
--- a/src/sbin/Bcfg2Server
+++ b/src/sbin/Bcfg2Server
@@ -21,7 +21,7 @@ from sss.server import Server
class BcfgServer(Server):
__implementation__ = 'Bcfg2'
__component__ = 'bcfg2'
- __dispatch__ = {'get-config':'BuildConfig', 'get-probes':'GetProbes', 'probe-data':'CommitProbeData'}
+ __dispatch__ = {'get-config':'BuildConfig', 'get-probes':'GetProbes', 'probe-data':'CommitProbeData', 'upload-statistics':'HandleStats'}
__validate__ = 0
def __setup__(self):
@@ -98,6 +98,10 @@ class BcfgServer(Server):
self.LogFailure("CommitProbeData")
return Element("OK")
+ def HandleStats(self, xml, (peer, port)):
+ syslog(LOG_INFO, "Client %s reported state %s"%(peer, xml.attrib['state']))
+ return Element("ok")
+
def LogFailure(self, failure):
(t,v,tb)=exc_info()
syslog(LOG_ERR, "Unexpected failure in %s"%(failure))