Browse Source

Change cmd-ctrld to b10-cmdctl.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@624 e5f2f494-b856-4b98-b285-d166d9295462
Jeremy C. Reed 15 years ago
parent
commit
93eb75d061
3 changed files with 12 additions and 12 deletions
  1. 2 2
      src/bin/cmdctl/README
  2. 5 5
      src/bin/cmdctl/TODO
  3. 5 5
      src/bin/cmdctl/b10-cmdctl.py.in

+ 2 - 2
src/bin/cmdctl/README

@@ -1,9 +1,9 @@
-When cmd-ctrld runs, user should provide one certificate and create one account for bindctl. 
+When b10-cmdctrl runs, user should provide one certificate and create one account for bindctl. 
 
 
 1. Get a certificate
 
-cmd-ctrld is a https server, so a certificate should be acquired for the SSL-encrypted connection services it provides.
+b10-cmdctrl is a https server, so a certificate should be acquired for the SSL-encrypted connection services it provides.
 There are many ways of acquiring appropriate cetificates, such as buying one from a certification authority. Another common practice is to generate a self-signed certificate. The simplest way to do this is with the OpenSSL package, using something like the following:
       
    openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem

+ 5 - 5
src/bin/cmdctl/TODO

@@ -1,8 +1,8 @@
-1. Refine code for cmd-ctrld.
+1. Refine code for b10-cmdctl.
 2. Add value type check according module specification.
-3. Description/Requirement document for cmd-ctrld.
-4. RESTful API document for cmd-ctrld.
-5. Unit tests for cmd-ctrld.
-6. Man page for cmd-ctrld?
+3. Description/Requirement document for b10-cmdctl.
+4. RESTful API document for b10-cmdctl.
+5. Unit tests for b10-cmdctl.
+6. Man page for b10-cmdctl?
 7. Support 'make install', Save user information and ssl certificate file to configmanager.
 

+ 5 - 5
src/bin/cmdctl/b10-cmdctl.py.in

@@ -117,7 +117,7 @@ class SecureHTTPRequestHandler(http.server.BaseHTTPRequestHandler):
                 param = json.loads(post_str)
 
             reply_msg = self.server.send_command_to_module(mod, cmd, param)
-            print('cmd-ctrld finish send message \'%s\' to module %s' % (cmd, mod))
+            print('b10-cmdctl finish send message \'%s\' to module %s' % (cmd, mod))
         
         #TODO, set proper rcode
         self.send_response(rcode)
@@ -167,7 +167,7 @@ class CommandControl():
             content.append(params)
 
         msg = {'command' : content}
-        print('cmd-ctrld send command \'%s\' to %s' %(command_name, module_name))
+        print('b10-cmdctl send command \'%s\' to %s' %(command_name, module_name))
         try:
             self.cc.group_sendmsg(msg, module_name)
             answer, env = self.cc.group_recvmsg(False)
@@ -186,7 +186,7 @@ class CommandControl():
                 print("Error: unexpected answer from %s" % module_name)
         except Exception as e:
             print(e)
-            print('cmd-ctrld fail send command \'%s\' to %s' % (command_name, module_name))
+            print('b10-cmdctl fail send command \'%s\' to %s' % (command_name, module_name))
         return {}
 
 
@@ -248,7 +248,7 @@ class SecureHTTPServer(http.server.HTTPServer):
         return self.cmdctrl.send_command(module_name, command_name, params)
 
 def run(server_class = SecureHTTPServer, addr = 'localhost', port = 8080):
-    print("cmd-ctrld module is starting on :%s port:%d" %(addr, port))
+    print("b10-cmdctl module is starting on :%s port:%d" %(addr, port))
     httpd = server_class((addr, port), SecureHTTPRequestHandler)
     httpd.serve_forever()
 
@@ -257,7 +257,7 @@ if __name__ == '__main__':
     try:
         run()
     except ISC.CC.SessionError as se:
-        print("[cmd-ctrld] Error creating cmd-ctrld, "
+        print("[b10-cmdctl] Error creating b10-cmdctl, "
                 "is the command channel daemon running?")        
     except KeyboardInterrupt:
         print("exit http server")