get_global_variable

Descripción 

 Obtiene el valor de una variable global del diccionario '_GLOBAL_VARIABLES'. 

 Parámetros 

 

 

 

 Nombre 

 Tipo 

 Requerido 

 Descripción 

 

 

 variable_name 

 str 

 Si 

 Nombre de la variable a establecer 

 

 

 

 Return   

 

 

 

 Tipo 

 

 

 None 

 

 

 

 Versión 

 

 1.0.0 

 

 Ejemplo 

 import pandoraPlugintools as pt

# Define the variable name to retrieve

variable_name = 'community'

# Get the value of the global variable

value = pt.snmp.get_global_variable(variable_name)

# Print the value of the global variable

print(f"The value of '{variable_name}' is: {value}")