def set_command_options(options)
      content = { :listen_port => options[:listen_port], :cookie => options[:cookie] }
      # This is requried to preserve cookie value to be saved as string,
      # and not as escaped binary data
      content[:cookie].force_encoding('utf-8')
      open(@cookie_file,'w') { |f| f.write(YAML.dump(content)) }
      File.chmod(0600, @cookie_file)
      true
    end
def set_command_options(options)
      content = { :listen_port => options[:listen_port], :cookie => options[:cookie] }
      # This is requried to preserve cookie value to be saved as string,
      # and not as escaped binary data
      content[:cookie].force_encoding('utf-8')
      open(@cookie_file,'w') { |f| f.write(YAML.dump(content)) }
      File.chmod(0600, @cookie_file)
      true
    end
Update associated command protocol port

 === Parameters
 options[:listen_port](Integer):: Command protocol port to be used for this agent
 options[:cookie](String):: Cookie to be used together with command protocol

 === Return
 true:: Always return true