SNMP settings¶
Besides looking at the health data via this API, you can also monitor the iLO using the standard SNMP protocol. It can even forward SNMP requests to the host. With these functions you can tell the iLO what to do for SNMP.
-
class
hpilo.
Ilo
-
get_snmp_im_settings
()¶ Where does the iLO send SNMP traps to and which traps does it send
>>> ilo.get_snmp_im_settings() {'agentless_management_enable': True, 'cim_security_mask': 3, 'cold_start_trap_broadcast': True, 'os_traps': True, 'rib_traps': True, 'snmp_access': 'Enable', 'snmp_address_1': '', 'snmp_address_1_rocommunity': '', 'snmp_address_1_trapcommunity': '', 'snmp_address_2': '', 'snmp_address_2_rocommunity': '', 'snmp_address_2_trapcommunity': '', 'snmp_address_3': '', 'snmp_address_3_rocommunity': '', 'snmp_address_3_trapcommunity': '', 'snmp_passthrough_status': False, 'snmp_port': 161, 'snmp_sys_contact': '', 'snmp_sys_location': '', 'snmp_system_role': '', 'snmp_system_role_detail': '', 'snmp_trap_port': 162, 'snmp_v1_traps': True, 'snmp_v3_engine_id': '', 'trap_source_identifier': 'iLO Hostname', 'web_agent_ip_address': 'example-server.int.kaarsemaker.net'}
-
mod_snmp_im_settings
(snmp_access=None, web_agent_ip_address=None, snmp_address_1=None, snmp_address_1_rocommunity=None, snmp_address_1_trapcommunity=None, snmp_address_2=None, snmp_address_2_rocommunity=None, snmp_address_2_trapcommunity=None, snmp_address_3=None, snmp_address_3_rocommunity=None, snmp_address_3_trapcommunity=None, snmp_port=None, snmp_trap_port=None, snmp_v3_engine_id=None, snmp_passthrough_status=None, trap_source_identifier=None, os_traps=None, rib_traps=None, cold_start_trap_broadcast=None, snmp_v1_traps=None, cim_security_mask=None, snmp_sys_location=None, snmp_sys_contact=None, agentless_management_enable=None, snmp_system_role=None, snmp_system_role_detail=None, snmp_user_profile_1=None, snmp_user_profile_2=None, snmp_user_profile_3=None)¶ Configure the SNMP and Insight Manager integration settings. The trapcommunity settings must be dicts with keys value (the name of the community) and version (1 or 2c)
-
send_snmp_test_trap
()¶ Send an SNMP test trap to the configured alert destinations
-