Bdii2CSAgent

The Bdii2CSAgent performs checking BDII for availability of CE and SE resources for a given or any configured VO. It detects resources not yet present in the CS and notifies the administrators. For the CEs and SEs already present in the CS, the agent is updating if necessary settings which were changed in the BDII recently

The following options can be set for the Bdii2CSAgent.

Bdii2CSAgent options
Bdii2CSAgent
{
  #Time between cycles in seconds
  PollingTime = 14400
  BannedCEs =
  BannedSEs =
  # Only treat these sites
  SelectedSites =
  # Process Computing Elements
  ProcessCEs = yes
  # Process Storage Elements
  ProcessSEs = no
  # Mail Notifications options
  MailTo =
  MailFrom =
  VirtualOrganization =
  # Flag to turn to False if you want this agent to write in the CS
  DryRun = True
  # Host to query, must include port
  Host = lcg-bdii.cern.ch:2170
  # URLs for Glue2, if filled and GLUE2Only is False, the agent will look under theses URLs for Glue2 information
  GLUE2URLs =
  # If True, only look for Glue2 information. If True, uses URLs from the Host option
  GLUE2Only = False
}
class DIRAC.ConfigurationSystem.Agent.Bdii2CSAgent.Bdii2CSAgent(*args, **kwargs)

Bases: DIRAC.Core.Base.AgentModule.AgentModule

__init__(*args, **kwargs)

Defines default parameters

am_Enabled()
am_checkStopAgentFile()
am_createStopAgentFile()
am_disableMonitoring()
am_getBasePath()
am_getControlDirectory()
am_getCyclesDone()
am_getMaxCycles()
am_getModuleParam(optionName)
am_getOption(optionName, defaultValue=None)

Gets an option from the agent’s configuration section. The section will be a subsection of the /Systems section in the CS.

am_getPollingTime()
am_getShifterProxyLocation()
am_getStopAgentFile()
am_getWatchdogTime()
am_getWorkDirectory()
am_go()
am_initialize(*initArgs)

Common initialization for all the agents.

This is executed every time an agent (re)starts. This is called by the AgentReactor, should not be overridden.

am_monitoringEnabled()
am_removeStopAgentFile()
am_secureCall(functor, args=(), name=False)
am_setModuleParam(optionName, value)
am_setOption(optionName, value)
am_stopExecution()
beginExecution()
endExecution()
execute()

General agent execution method

finalize()
initialize()

Gets run paramaters from the configuration