code: def do_print_aldb(self, args):
          
          params = args.split()
          addr = None
  
          try:
              addr = params[0]
          except IndexError:
              _LOGGING.error('Device address required.')
              self.do_help('print_aldb')
  
          if addr:
              if addr.lower() == 'all':
                  self.tools.print_all_aldb()
              elif addr.lower() == 'plm':
                  addr = self.tools.plm.address.id
                  self.tools.print_device_aldb(addr)
              else:
                  self.tools.print_device_aldb(addr)
docs: Print the All-Link database for a device.
  
          Usage:
              print_aldb address|plm|all
          Arguments:
              address: INSTEON address of the device
              plm: Print the All-Link database for the PLM
              all: Print the All-Link database for all devices
  
          This method requires that the device ALDB has been loaded.
          To load the device ALDB use the command:
              load_aldb address|plm|all