Class: IControl::Management::SNMPConfiguration
- Inherits:
-
Base
- Object
- Base
- IControl::Management::SNMPConfiguration
- Defined in:
- lib/icontrol/management/snmp_configuration.rb,
lib/icontrol/management.rb
Overview
The SNMPConfiguration interface allows users to manage the full configurations for UCD SNMP agent. Please read the manual pages for snmpd.conf for further information. TODO: Missing directives: - override
Defined Under Namespace
Classes: AccessInformation, AccessInformationSequence, AgentInterface, AgentListenAddressPort, AgentListenAddressPortSequence, AgentXInformation, AgentXInformationSequence, AuthType, ClientAccess, ClientAccessSequence, DiskCheckInformation, DiskCheckInformationSequence, DiskCheckType, DynamicLoadableModule, DynamicLoadableModuleSequence, FileCheckInformation, FileCheckInformationSequence, GenericSinkInformation, GenericSinkInformation2, GenericSinkInformation2Sequence, GenericSinkInformationSequence, GroupInformation, GroupInformationSequence, LevelType, LoadAverageInformation, LoadAverageInformationSequence, MibnumNameProgArgs, MibnumNameProgArgsSequence, ModelType, NameProgArgs, NameProgArgsSequence, PassThroughInformation, PassThroughInformationSequence, PrefixType, PrivacyProtocolType, ProcessInformation, ProcessInformationSequence, ProxyInformation, ProxyInformationSequence, SecurityInformation, SecurityInformationSequence, SinkInformation, SinkInformationSequence, SinkType, SmuxSubAgentInformation, SmuxSubAgentInformationSequence, SystemInformation, TransportType, UserInformation, UserInformationSequence, ViewInformation, ViewInformationSequence, ViewType, WrapperSecurityInformation, WrapperSecurityInformationSequence, WrapperUserInformation, WrapperUserInformationSequence
Instance Method Summary collapse
-
#access_info ⇒ AccessInformation
Gets a list of access maps from group/securitymodel/security level to a view.
-
#agent_group_id ⇒ String
Gets the agent group id.
-
#agent_interface ⇒ AgentInterface
Gets the agent interface information.
-
#agent_listen_address ⇒ AgentListenAddressPort
Gets a list of agent listen addresses.
-
#agent_trap_state ⇒ EnabledState
Gets the agent trap enabled state.
-
#agent_user_id ⇒ String
Gets the agent user id.
-
#agentx_information ⇒ AgentXInformation
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#auth_trap_state ⇒ EnabledState
Gets the authentication trap enabled state.
-
#check_disk ⇒ DiskCheckInformation
Gets a list of disk check instances.
-
#check_file ⇒ FileCheckInformation
Gets a list of available file checks.
-
#check_load ⇒ LoadAverageInformation
Gets load check.
-
#check_process ⇒ ProcessInformation
Gets a list of process checks.
-
#client_access ⇒ ClientAccess
Gets a list of client access controls.
-
#community_to_security_info ⇒ SecurityInformation
Gets a list of mappings from a source/community pair to security name.
-
#create_user ⇒ UserInformation
Gets a list of SNMPv3 users.
-
#dynamic_loadable_module ⇒ DynamicLoadableModule
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#engine_id ⇒ String
Gets the snmp engine identifier.
-
#exec ⇒ MibnumNameProgArgs
Gets a list of program instances.
-
#exec_fix ⇒ NameProgArgs
Gets a list of exec fix instances.
-
#generic_traps ⇒ GenericSinkInformation
This method is now deprecated.
-
#generic_traps_v2 ⇒ GenericSinkInformation2
Gets a list of generic traps.
-
#group_info ⇒ GroupInformation
Gets a list of mappings from securitymodel/securityname to group.
-
#ignore_disk ⇒ String
Return a list of disk devices currently ignored.
-
#pass_through ⇒ PassThroughInformation
Gets a list of pass through controls.
-
#pass_through_persist ⇒ PassThroughInformation
Gets a list of persist pass through controls.
-
#process_fix ⇒ NameProgArgs
Retrieves a list of the current process fix instances.
-
#proxy ⇒ String
Gets a list of snmp proxies.
-
#readonly_community ⇒ WrapperSecurityInformation
Gets a list of read-only communities.
-
#readonly_user ⇒ WrapperUserInformation
Gets a list of the SNMPv3 USM read-only users in the VACM access configuration tables.
-
#readwrite_community ⇒ WrapperSecurityInformation
Gets a list of read-write communities.
-
#readwrite_user ⇒ WrapperUserInformation
Gets a list of the SNMPv3 USM read-write users in the VACM access configuration tables.
-
#remove_access_info(opts) ⇒ Object
Removes access maps from group/securitymodel/security level to a view.
-
#remove_agent_group_id(opts) ⇒ Object
Removes the agent group id.
-
#remove_agent_interface(opts) ⇒ Object
Removes the agent interface information.
-
#remove_agent_listen_address(opts) ⇒ Object
Removes a list of agent listen addresses.
-
#remove_agent_trap_state(opts) ⇒ Object
Removes the agent trap enabled state.
-
#remove_agent_user_id(opts) ⇒ Object
Removes the ugent ser id.
-
#remove_agentx_information(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#remove_auth_trap_state(opts) ⇒ Object
Removes the authentication trap enabled state.
-
#remove_check_disk(opts) ⇒ Object
Removes a disk check instance.
-
#remove_check_file(opts) ⇒ Object
Removes a file check.
-
#remove_check_load(opts) ⇒ Object
Removes a load check.
-
#remove_check_process(opts) ⇒ Object
Removes a process check.
-
#remove_client_access(opts) ⇒ Object
Removes a list of client access controls.
-
#remove_community_to_security_info(opts) ⇒ Object
Removes mappings from a source/community pair to security names.
-
#remove_create_user(opts) ⇒ Object
Removes SNMPv3 users.
-
#remove_dynamic_loadable_module(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#remove_engine_id(opts) ⇒ Object
Removes the snmp engine identifier.
-
#remove_exec(opts) ⇒ Object
Removes a program instance.
-
#remove_exec_fix(opts) ⇒ Object
Removes an exec fix instance.
-
#remove_generic_traps ⇒ Object
This method is now deprecated.
-
#remove_generic_traps_v2 ⇒ Object
Removes a list of generic traps.
-
#remove_group_info(opts) ⇒ Object
Removes mappings from securitymodel/securityname to group.
-
#remove_ignore_disk(opts) ⇒ Object
Removes a disk device from the ignore list.
-
#remove_pass_through(opts) ⇒ Object
Removes a list of pass through controls.
-
#remove_pass_through_persist(opts) ⇒ Object
Removes a list of persist pass through controls.
-
#remove_process_fix(opts) ⇒ Object
Removes a process fix instance.
-
#remove_proxy(opts) ⇒ Object
Removes a list of snmp proxies.
-
#remove_readonly_community(opts) ⇒ Object
Removes read-only communities.
-
#remove_readonly_user(opts) ⇒ Object
Removes SNMPv3 USM read-only users from the VACM access configuration tables.
-
#remove_readwrite_community(opts) ⇒ Object
Removes read-write communities.
-
#remove_readwrite_user(opts) ⇒ Object
Removes SNMPv3 USM read-write users from the VACM access configuration tables.
-
#remove_smux_subagent(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#remove_storage_use_nfs(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#remove_system_information(opts) ⇒ Object
Removes the system location, system contact, and system name for the agent.
-
#remove_trap_community(opts) ⇒ Object
Removes the trap community string.
-
#remove_trap_sinks(opts) ⇒ Object
Removes a list of trap sinks.
-
#remove_view_info(opts) ⇒ Object
Removes a list of named views.
-
#set_access_info(opts) ⇒ Object
Creates access maps from group/securitymodel/security level to a view.
-
#set_agent_group_id(opts) ⇒ Object
Sets the agent group id.
-
#set_agent_interface(opts) ⇒ Object
Sets the interface information for the agent.
-
#set_agent_listen_address(opts) ⇒ Object
Sets a list of agent listen addresses.
-
#set_agent_trap_state(opts) ⇒ Object
Sets the agent trap enabled state.
-
#set_agent_user_id(opts) ⇒ Object
Sets the agent user id.
-
#set_agentx_information(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#set_auth_trap_state(opts) ⇒ Object
Sets the authentication trap enabled state.
-
#set_check_disk(opts) ⇒ Object
Creates a disk check instance.
-
#set_check_file(opts) ⇒ Object
Adds a file check used to monitor file sizes and make sure they don’t grow beyond a certain size (in kilobytes).
-
#set_check_load(opts) ⇒ Object
Adds a load check used to check the load average of the machine and returns an error flag (1), and a text-string error message to queries of EXTENSIBLEDOTMIB.LOADAVEMIBNUM.1.ERRORFLAG and EXTENSIBLEDOTMIB.LOADAVEMIBNUM.1.ERRORMSG respectively when the 1-minute, 5-minute, or 15-minute averages exceed the associated maximum values.
-
#set_check_process(opts) ⇒ Object
Creates a process check.
-
#set_client_access(opts) ⇒ Object
Creates a list of client access controls.
-
#set_community_to_security_info(opts) ⇒ Object
Creates mappings from a source/community pair to security names.
-
#set_create_user(opts) ⇒ Object
Creates SNMPv3 users.
-
#set_dynamic_loadable_module(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#set_engine_id(opts) ⇒ Object
Sets the snmp engine identifier.
-
#set_exec(opts) ⇒ Object
Creates a program instance, used to signal the agent to execute the named program with the given arguments and returns the exit status and the first line of the STDOUT output of the program to queries of the EXTENSIBLEDOTMIB.SHELLMIBNUM.mib_num.ERRORFLAG and EXTENSIBLEDOTMIB.SHELLMIBNUM.mib_num.ERRORMSG mib columns.
-
#set_exec_fix(opts) ⇒ Object
Sets an exec fix instance that registers a command that knows how to fix errors with the given program.
-
#set_generic_traps ⇒ Object
This method is now deprecated.
-
#set_generic_traps_v2 ⇒ Object
Creates generic traps that allows any type of trap destination to be specified with any version of SNMP.
-
#set_group_info(opts) ⇒ Object
Creates mappings from securitymodel/securityname to group.
-
#set_ignore_disk(opts) ⇒ Object
Adds disk devices to the ignore list.
-
#set_pass_through(opts) ⇒ Object
Creates a list of pass through controls.
-
#set_pass_through_persist(opts) ⇒ Object
Creates a list of persist pass through controls.
-
#set_process_fix(opts) ⇒ Object
Sets a process fix instance that registers a command that knows how to fix errors with the given process.
-
#set_proxy(opts) ⇒ Object
Creates a list of snmp proxies.
-
#set_readonly_community(opts) ⇒ Object
Creates read-only communities that can be used to access the agent.
-
#set_readonly_user(opts) ⇒ Object
Creates SNMPv3 USM read-only users in the VACM access configuration tables.
-
#set_readwrite_community(opts) ⇒ Object
Creates read-write communities that can be used to access the agent.
-
#set_readwrite_user(opts) ⇒ Object
Creates SNMPv3 USM read-write users in the VACM access configuration tables.
-
#set_smux_subagent(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#set_storage_use_nfs(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#set_system_information(opts) ⇒ Object
Sets the system location, system contact, and system name for the agent.
-
#set_trap_community(opts) ⇒ Object
Sets the trap community string.
-
#set_trap_sinks(opts) ⇒ Object
Creates a list of trap sinks.
-
#set_view_info(opts) ⇒ Object
Creates named views.
-
#smux_subagent ⇒ SmuxSubAgentInformation
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#storage_use_nfs ⇒ long
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
#system_information ⇒ SystemInformation
Gets the system location, system contact, and system name for the agent.
-
#trap_community ⇒ String
Gets the trap community string.
-
#trap_sinks(opts) ⇒ SinkInformation
Returns a list of trap sinks.
-
#version ⇒ String
Gets the version information for this interface.
-
#view_info ⇒ ViewInformation
Gets a list of named views.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
#access_info ⇒ AccessInformation
Gets a list of access maps from group/securitymodel/security level to a view.
86 87 88 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 86 def access_info super end |
#agent_group_id ⇒ String
Gets the agent group id.
97 98 99 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 97 def agent_group_id super end |
#agent_interface ⇒ AgentInterface
Gets the agent interface information.
108 109 110 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 108 def agent_interface super end |
#agent_listen_address ⇒ AgentListenAddressPort
Gets a list of agent listen addresses.
119 120 121 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 119 def agent_listen_address super end |
#agent_trap_state ⇒ EnabledState
Gets the agent trap enabled state
130 131 132 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 130 def agent_trap_state super end |
#agent_user_id ⇒ String
Gets the agent user id.
141 142 143 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 141 def agent_user_id super end |
#agentx_information ⇒ AgentXInformation
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Gets the AgentX information.
152 153 154 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 152 def agentx_information super end |
#auth_trap_state ⇒ EnabledState
Gets the authentication trap enabled state
163 164 165 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 163 def auth_trap_state super end |
#check_disk ⇒ DiskCheckInformation
Gets a list of disk check instances.
174 175 176 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 174 def check_disk super end |
#check_file ⇒ FileCheckInformation
Gets a list of available file checks.
185 186 187 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 185 def check_file super end |
#check_load ⇒ LoadAverageInformation
Gets load check.
196 197 198 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 196 def check_load super end |
#check_process ⇒ ProcessInformation
Gets a list of process checks. A process check is used to check to see if the process_name’d processes are running on the agent’s machine. An error flag(1) and a description message are then passed to the EXTENSIBLEDOTMIB.PROCMIBNUM.1.ERRORFLAG and EXTENSIBLEDOTMIB.PROCMIBNUM.1.ERRORMSG mib columns if the process_name’d program is not found on the process table as reported by PSCMD.
211 212 213 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 211 def check_process super end |
#client_access ⇒ ClientAccess
Gets a list of client access controls.
222 223 224 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 222 def client_access super end |
#community_to_security_info ⇒ SecurityInformation
Gets a list of mappings from a source/community pair to security name.
233 234 235 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 233 def community_to_security_info super end |
#create_user ⇒ UserInformation
Gets a list of SNMPv3 users. Since the authentication and private passphrases have already been munged by snmpd, this information will not be available in the response. Only the user_name, the auth_type, and priv_protocol fields in the UserInformation structure are available.
247 248 249 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 247 def create_user super end |
#dynamic_loadable_module ⇒ DynamicLoadableModule
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Gets a list of dynamically loadable module instances.
258 259 260 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 258 def dynamic_loadable_module super end |
#engine_id ⇒ String
Gets the snmp engine identifier.
269 270 271 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 269 def engine_id super end |
#exec ⇒ MibnumNameProgArgs
Gets a list of program instances.
280 281 282 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 280 def exec super end |
#exec_fix ⇒ NameProgArgs
Gets a list of exec fix instances.
291 292 293 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 291 def exec_fix super end |
#generic_traps ⇒ GenericSinkInformation
This method is now deprecated. Use method get_generic_traps_v2 instead. Gets a list of generic traps.
303 304 305 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 303 def generic_traps super end |
#generic_traps_v2 ⇒ GenericSinkInformation2
Gets a list of generic traps.
314 315 316 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 314 def generic_traps_v2 super end |
#group_info ⇒ GroupInformation
Gets a list of mappings from securitymodel/securityname to group.
325 326 327 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 325 def group_info super end |
#ignore_disk ⇒ String
Return a list of disk devices currently ignored.
336 337 338 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 336 def ignore_disk super end |
#pass_through ⇒ PassThroughInformation
Gets a list of pass through controls.
347 348 349 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 347 def pass_through super end |
#pass_through_persist ⇒ PassThroughInformation
Gets a list of persist pass through controls.
358 359 360 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 358 def pass_through_persist super end |
#process_fix ⇒ NameProgArgs
Retrieves a list of the current process fix instances.
369 370 371 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 369 def process_fix super end |
#proxy ⇒ String
Gets a list of snmp proxies.
380 381 382 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 380 def proxy super end |
#readonly_community ⇒ WrapperSecurityInformation
Gets a list of read-only communities.
391 392 393 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 391 def readonly_community super end |
#readonly_user ⇒ WrapperUserInformation
Gets a list of the SNMPv3 USM read-only users in the VACM access configuration tables.
402 403 404 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 402 def readonly_user super end |
#readwrite_community ⇒ WrapperSecurityInformation
Gets a list of read-write communities.
413 414 415 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 413 def readwrite_community super end |
#readwrite_user ⇒ WrapperUserInformation
Gets a list of the SNMPv3 USM read-write users in the VACM access configuration tables.
424 425 426 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 424 def readwrite_user super end |
#remove_access_info(opts) ⇒ Object
Removes access maps from group/securitymodel/security level to a view.
519 520 521 522 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 519 def remove_access_info(opts) opts = check_params(opts,[:access_info]) super(opts) end |
#remove_agent_group_id(opts) ⇒ Object
Removes the agent group id.
532 533 534 535 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 532 def remove_agent_group_id(opts) opts = check_params(opts,[:group_id]) super(opts) end |
#remove_agent_interface(opts) ⇒ Object
Removes the agent interface information.
545 546 547 548 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 545 def remove_agent_interface(opts) opts = check_params(opts,[:agent_intf]) super(opts) end |
#remove_agent_listen_address(opts) ⇒ Object
Removes a list of agent listen addresses. Note: As of v9.4.2, this method actually sets the agent listen addresses back to the default.
559 560 561 562 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 559 def remove_agent_listen_address(opts) opts = check_params(opts,[:agent_listen_addresses]) super(opts) end |
#remove_agent_trap_state(opts) ⇒ Object
Removes the agent trap enabled state. Note: As of v9.4.2, this method actually sets the agent trap enabled state back to the default.
573 574 575 576 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 573 def remove_agent_trap_state(opts) opts = check_params(opts,[:state]) super(opts) end |
#remove_agent_user_id(opts) ⇒ Object
Removes the ugent ser id.
586 587 588 589 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 586 def remove_agent_user_id(opts) opts = check_params(opts,[:user_id]) super(opts) end |
#remove_agentx_information(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Removes the AgentX information.
599 600 601 602 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 599 def remove_agentx_information(opts) opts = check_params(opts,[:agentx_info]) super(opts) end |
#remove_auth_trap_state(opts) ⇒ Object
Removes the authentication trap enabled state. Note: As of v9.4.2, this method actually sets the authentication trap enabled state back to the default.
613 614 615 616 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 613 def remove_auth_trap_state(opts) opts = check_params(opts,[:state]) super(opts) end |
#remove_check_disk(opts) ⇒ Object
Removes a disk check instance.
626 627 628 629 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 626 def remove_check_disk(opts) opts = check_params(opts,[:disk_info]) super(opts) end |
#remove_check_file(opts) ⇒ Object
Removes a file check.
639 640 641 642 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 639 def remove_check_file(opts) opts = check_params(opts,[:file_info]) super(opts) end |
#remove_check_load(opts) ⇒ Object
Removes a load check.
652 653 654 655 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 652 def remove_check_load(opts) opts = check_params(opts,[:load_info]) super(opts) end |
#remove_check_process(opts) ⇒ Object
Removes a process check. A process check is used to check to see if the process_name’s processes are running on the agent’s machine. An error flag(1) and a description message are then passed to the EXTENSIBLEDOTMIB.PROCMIBNUM.1.ERRORFLAG and EXTENSIBLEDOTMIB.PROCMIBNUM.1.ERRORMSG mib columns if the process_name’s program is not found on the process table as reported by PSCMD.
669 670 671 672 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 669 def remove_check_process(opts) opts = check_params(opts,[:proc_info]) super(opts) end |
#remove_client_access(opts) ⇒ Object
Removes a list of client access controls.
682 683 684 685 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 682 def remove_client_access(opts) opts = check_params(opts,[:client_access_info]) super(opts) end |
#remove_community_to_security_info(opts) ⇒ Object
Removes mappings from a source/community pair to security names.
695 696 697 698 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 695 def remove_community_to_security_info(opts) opts = check_params(opts,[:security_info]) super(opts) end |
#remove_create_user(opts) ⇒ Object
Removes SNMPv3 users.
708 709 710 711 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 708 def remove_create_user(opts) opts = check_params(opts,[:user_info]) super(opts) end |
#remove_dynamic_loadable_module(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Removes a dynamically loadable module instance.
721 722 723 724 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 721 def remove_dynamic_loadable_module(opts) opts = check_params(opts,[:mod_info]) super(opts) end |
#remove_engine_id(opts) ⇒ Object
Removes the snmp engine identifier.
734 735 736 737 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 734 def remove_engine_id(opts) opts = check_params(opts,[:engine_id]) super(opts) end |
#remove_exec(opts) ⇒ Object
Removes a program instance.
747 748 749 750 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 747 def remove_exec(opts) opts = check_params(opts,[:exec_info]) super(opts) end |
#remove_exec_fix(opts) ⇒ Object
Removes an exec fix instance.
760 761 762 763 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 760 def remove_exec_fix(opts) opts = check_params(opts,[:exec_info]) super(opts) end |
#remove_generic_traps ⇒ Object
This method is now deprecated. Use method remove_generic_traps_v2 instead. Removes a list of generic traps.
772 773 774 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 772 def remove_generic_traps super end |
#remove_generic_traps_v2 ⇒ Object
Removes a list of generic traps.
782 783 784 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 782 def remove_generic_traps_v2 super end |
#remove_group_info(opts) ⇒ Object
Removes mappings from securitymodel/securityname to group.
794 795 796 797 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 794 def remove_group_info(opts) opts = check_params(opts,[:group_info]) super(opts) end |
#remove_ignore_disk(opts) ⇒ Object
Removes a disk device from the ignore list.
807 808 809 810 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 807 def remove_ignore_disk(opts) opts = check_params(opts,[:ignore_disk]) super(opts) end |
#remove_pass_through(opts) ⇒ Object
Removes a list of pass through controls.
820 821 822 823 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 820 def remove_pass_through(opts) opts = check_params(opts,[:passthru_info]) super(opts) end |
#remove_pass_through_persist(opts) ⇒ Object
Removes a list of persist pass through controls.
833 834 835 836 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 833 def remove_pass_through_persist(opts) opts = check_params(opts,[:passthru_info]) super(opts) end |
#remove_process_fix(opts) ⇒ Object
Removes a process fix instance.
846 847 848 849 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 846 def remove_process_fix(opts) opts = check_params(opts,[:fix_info]) super(opts) end |
#remove_proxy(opts) ⇒ Object
Removes a list of snmp proxies.
859 860 861 862 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 859 def remove_proxy(opts) opts = check_params(opts,[:proxy_info]) super(opts) end |
#remove_readonly_community(opts) ⇒ Object
Removes read-only communities.
872 873 874 875 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 872 def remove_readonly_community(opts) opts = check_params(opts,[:ro_community_info]) super(opts) end |
#remove_readonly_user(opts) ⇒ Object
Removes SNMPv3 USM read-only users from the VACM access configuration tables.
885 886 887 888 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 885 def remove_readonly_user(opts) opts = check_params(opts,[:ro_user_info]) super(opts) end |
#remove_readwrite_community(opts) ⇒ Object
Removes read-write communities.
898 899 900 901 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 898 def remove_readwrite_community(opts) opts = check_params(opts,[:rw_community_info]) super(opts) end |
#remove_readwrite_user(opts) ⇒ Object
Removes SNMPv3 USM read-write users from the VACM access configuration tables.
911 912 913 914 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 911 def remove_readwrite_user(opts) opts = check_params(opts,[:rw_user_info]) super(opts) end |
#remove_smux_subagent(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Removes a SMUX based sub-agent.
924 925 926 927 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 924 def remove_smux_subagent(opts) opts = check_params(opts,[:subagent_info]) super(opts) end |
#remove_storage_use_nfs(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Removes directive to indicate how file systems are marked by SNMP. Setting this directive to 1 causes all NFS and NFS-like file systems to be marked as 'Network Disks’ in the hrStorageTable. This is according to RFC 2790. Not setting storageUseNFS or setting it to 2 causes NFS and NFS-like file systems to be marked as 'Fixed Disks’ as it has been in previous versions of the ucd-snmp SNMP agent.
942 943 944 945 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 942 def remove_storage_use_nfs(opts) opts = check_params(opts,[:usage]) super(opts) end |
#remove_system_information(opts) ⇒ Object
Removes the system location, system contact, and system name for the agent. This information is reported in the 'system’ group in the mibII tree. Note: As of v9.4.2, this method actually sets the system location and contact parameters and the system services parameter back to the default. As has always been the case, this method affects values only for the system information items you provide (non-empty/non-zero).
959 960 961 962 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 959 def remove_system_information(opts) opts = check_params(opts,[:system_info]) super(opts) end |
#remove_trap_community(opts) ⇒ Object
Removes the trap community string. Note: As of v9.4.2, this method actually sets the trap community string back to the default.
973 974 975 976 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 973 def remove_trap_community(opts) opts = check_params(opts,[:community]) super(opts) end |
#remove_trap_sinks(opts) ⇒ Object
Removes a list of trap sinks.
986 987 988 989 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 986 def remove_trap_sinks(opts) opts = check_params(opts,[:sink_type]) super(opts) end |
#remove_view_info(opts) ⇒ Object
Removes a list of named views.
999 1000 1001 1002 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 999 def remove_view_info(opts) opts = check_params(opts,[:view_info]) super(opts) end |
#set_access_info(opts) ⇒ Object
Creates access maps from group/securitymodel/security level to a view.
1012 1013 1014 1015 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1012 def set_access_info(opts) opts = check_params(opts,[:access_info]) super(opts) end |
#set_agent_group_id(opts) ⇒ Object
Sets the agent group id. Change to this gid after opening port. The group id may refer to a group by name or a number if the group number starts with a #.
1026 1027 1028 1029 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1026 def set_agent_group_id(opts) opts = check_params(opts,[:group_id]) super(opts) end |
#set_agent_interface(opts) ⇒ Object
Sets the interface information for the agent. For interfaces where the agent fails to guess correctly on the type and speed, this directive can supply additional information.
1040 1041 1042 1043 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1040 def set_agent_interface(opts) opts = check_params(opts,[:agent_intf]) super(opts) end |
#set_agent_listen_address(opts) ⇒ Object
Sets a list of agent listen addresses. This makes the agent listen on this list of sockets instead of the default port, which is 161.
1054 1055 1056 1057 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1054 def set_agent_listen_address(opts) opts = check_params(opts,[:agent_listen_addresses]) super(opts) end |
#set_agent_trap_state(opts) ⇒ Object
Sets the agent trap enabled state.
1067 1068 1069 1070 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1067 def set_agent_trap_state(opts) opts = check_params(opts,[:state]) super(opts) end |
#set_agent_user_id(opts) ⇒ Object
Sets the agent user id. Change to this uid after opening port. The userid may refer to a user by name or a number if the user number starts with '#‘.
1081 1082 1083 1084 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1081 def set_agent_user_id(opts) opts = check_params(opts,[:user_id]) super(opts) end |
#set_agentx_information(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Sets the AgentX information.
1094 1095 1096 1097 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1094 def set_agentx_information(opts) opts = check_params(opts,[:agentx_info]) super(opts) end |
#set_auth_trap_state(opts) ⇒ Object
Sets the authentication trap enabled state. Setting the trap state to Enabled, enables the generation of authentication failure traps. The default value is Disabled.
1108 1109 1110 1111 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1108 def set_auth_trap_state(opts) opts = check_params(opts,[:state]) super(opts) end |
#set_check_disk(opts) ⇒ Object
Creates a disk check instance. This is used to check the named disks mounted on path for available disk space. If the disk space is less than minimum_space (kb or %), the associated entry in the EXTENSIBLEDOTMIB.DISKMIBNUM.1.ERRORFLAG mib table will be set to (1) and a descriptive error message will be returned to queries of EXTENSIBLEDOTMIB.DISKMIBNUM.1.ERRORMSG.
1124 1125 1126 1127 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1124 def set_check_disk(opts) opts = check_params(opts,[:disk_info]) super(opts) end |
#set_check_file(opts) ⇒ Object
Adds a file check used to monitor file sizes and make sure they don’t grow beyond a certain size (in kilobytes).
1138 1139 1140 1141 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1138 def set_check_file(opts) opts = check_params(opts,[:file_info]) super(opts) end |
#set_check_load(opts) ⇒ Object
Adds a load check used to check the load average of the machine and returns an error flag (1), and a text-string error message to queries of EXTENSIBLEDOTMIB.LOADAVEMIBNUM.1.ERRORFLAG and EXTENSIBLEDOTMIB.LOADAVEMIBNUM.1.ERRORMSG respectively when the 1-minute, 5-minute, or 15-minute averages exceed the associated maximum values.
1154 1155 1156 1157 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1154 def set_check_load(opts) opts = check_params(opts,[:load_info]) super(opts) end |
#set_check_process(opts) ⇒ Object
Creates a process check. A process check is used to check to see if the process_name’s processes are running on the agent’s machine. An error flag(1) and a description message are then passed to the EXTENSIBLEDOTMIB.PROCMIBNUM.1.ERRORFLAG and EXTENSIBLEDOTMIB.PROCMIBNUM.1.ERRORMSG mib columns if the process_name’d program is not found on the process table as reported by PSCMD.
1171 1172 1173 1174 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1171 def set_check_process(opts) opts = check_params(opts,[:proc_info]) super(opts) end |
#set_client_access(opts) ⇒ Object
Creates a list of client access controls. These are stored in the /etc/hosts.allow file.
1185 1186 1187 1188 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1185 def set_client_access(opts) opts = check_params(opts,[:client_access_info]) super(opts) end |
#set_community_to_security_info(opts) ⇒ Object
Creates mappings from a source/community pair to security names. The first source/community combination that matches the incoming packet is selected.
1199 1200 1201 1202 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1199 def set_community_to_security_info(opts) opts = check_params(opts,[:security_info]) super(opts) end |
#set_create_user(opts) ⇒ Object
Creates SNMPv3 users. Note: as of v9.4.2, doing this method without having done set_readonly_user or set_readwrite_user first results in a valid (readonly) user rather than silently creating an incomplete but unusable user. However, such behavior is not guaranteed; please do one of the above methods before this method so as to define your new user fully.
1216 1217 1218 1219 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1216 def set_create_user(opts) opts = check_params(opts,[:user_info]) super(opts) end |
#set_dynamic_loadable_module(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Creates a dynmically loadable module instance. If the agent is built with support for the UCD-DLMOD-MIB it is cabable of loading agent MIB modules dynamically at startup through the dlmod directive and during runtime through the use of the UCD-DLMOD-MIB. The directive loads the shared object module file path which uses the module name prefix.
1233 1234 1235 1236 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1233 def set_dynamic_loadable_module(opts) opts = check_params(opts,[:mod_info]) super(opts) end |
#set_engine_id(opts) ⇒ Object
Sets the snmp engine identifier. The snmpd agent needs to be configured with an engine id to be able to respond to SNMPv3 messages.
1247 1248 1249 1250 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1247 def set_engine_id(opts) opts = check_params(opts,[:engine_id]) super(opts) end |
#set_exec(opts) ⇒ Object
Creates a program instance, used to signal the agent to execute the named program with the given arguments and returns the exit status and the first line of the STDOUT output of the program to queries of the EXTENSIBLEDOTMIB.SHELLMIBNUM.mib_num.ERRORFLAG and EXTENSIBLEDOTMIB.SHELLMIBNUM.mib_num.ERRORMSG mib columns. The mib_num.ERRORMSG mib contains the entire STDOUT output, one mib table entry per line of output.
1264 1265 1266 1267 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1264 def set_exec(opts) opts = check_params(opts,[:exec_info]) super(opts) end |
#set_exec_fix(opts) ⇒ Object
Sets an exec fix instance that registers a command that knows how to fix errors with the given program.
1278 1279 1280 1281 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1278 def set_exec_fix(opts) opts = check_params(opts,[:exec_info]) super(opts) end |
#set_generic_traps ⇒ Object
This method is now deprecated. Use method set_generic_traps_v2 instead. Creates generic traps that allows any type of trap destination to be specified with any version of SNMP.
1291 1292 1293 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1291 def set_generic_traps super end |
#set_generic_traps_v2 ⇒ Object
Creates generic traps that allows any type of trap destination to be specified with any version of SNMP.
1302 1303 1304 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1302 def set_generic_traps_v2 super end |
#set_group_info(opts) ⇒ Object
Creates mappings from securitymodel/securityname to group.
1314 1315 1316 1317 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1314 def set_group_info(opts) opts = check_params(opts,[:group_info]) super(opts) end |
#set_ignore_disk(opts) ⇒ Object
Adds disk devices to the ignore list. When scanning for available disk devices the agent might block in trying to open all possible disk devices. This might lead to a timeout wheen walking the device tree. Sometimes it will timeout every time you try it. Adding a ignore disk directive will specify device names not to be checked (i.e. opened).
1331 1332 1333 1334 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1331 def set_ignore_disk(opts) opts = check_params(opts,[:ignore_disk]) super(opts) end |
#set_pass_through(opts) ⇒ Object
Creates a list of pass through controls. This passes entire control of the mib oid to the executing program.
1345 1346 1347 1348 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1345 def set_pass_through(opts) opts = check_params(opts,[:passthru_info]) super(opts) end |
#set_pass_through_persist(opts) ⇒ Object
Creates a list of persist pass through controls. This passes entire control of the mib oid to the executing program. This is similar to set_path_through(), but the executing program continues to run after the initial request is answered.
1360 1361 1362 1363 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1360 def set_pass_through_persist(opts) opts = check_params(opts,[:passthru_info]) super(opts) end |
#set_process_fix(opts) ⇒ Object
Sets a process fix instance that registers a command that knows how to fix errors with the given process.
1374 1375 1376 1377 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1374 def set_process_fix(opts) opts = check_params(opts,[:fix_info]) super(opts) end |
#set_proxy(opts) ⇒ Object
Creates a list of snmp proxies. This specifies that any incoming request under oid should be proxied on to a remote host instead.
1388 1389 1390 1391 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1388 def set_proxy(opts) opts = check_params(opts,[:proxy_info]) super(opts) end |
#set_readonly_community(opts) ⇒ Object
Creates read-only communities that can be used to access the agent. snmpd supports the View-Based Access Control Model (vacm) as defined in RFC 2275.
1402 1403 1404 1405 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1402 def set_readonly_community(opts) opts = check_params(opts,[:ro_community_info]) super(opts) end |
#set_readonly_user(opts) ⇒ Object
Creates SNMPv3 USM read-only users in the VACM access configuration tables.
1415 1416 1417 1418 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1415 def set_readonly_user(opts) opts = check_params(opts,[:ro_user_info]) super(opts) end |
#set_readwrite_community(opts) ⇒ Object
Creates read-write communities that can be used to access the agent. snmpd supports the View-Based Access Control Model (vacm) as defined in RFC 2275.
1429 1430 1431 1432 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1429 def set_readwrite_community(opts) opts = check_params(opts,[:rw_community_info]) super(opts) end |
#set_readwrite_user(opts) ⇒ Object
Creates SNMPv3 USM read-write users in the VACM access configuration tables.
1442 1443 1444 1445 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1442 def set_readwrite_user(opts) opts = check_params(opts,[:rw_user_info]) super(opts) end |
#set_smux_subagent(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Creates a SMUX based sub-agent, such as gated.
1455 1456 1457 1458 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1455 def set_smux_subagent(opts) opts = check_params(opts,[:subagent_info]) super(opts) end |
#set_storage_use_nfs(opts) ⇒ Object
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Adds a directive to indicate how file systems are marked by SNMP. Setting this directive to 1 causes all NFS and NFS-like file systems to be marked as 'Network Disks’ in the hrStorageTable. This is according to RFC 2790. Not setting storageUseNFS or setting it to 2 causes NFS and NFS-like file systems to be marked as 'Fixed Disks’ as it has been in previous versions of the ucd-snmp SNMP agent.
1473 1474 1475 1476 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1473 def set_storage_use_nfs(opts) opts = check_params(opts,[:usage]) super(opts) end |
#set_system_information(opts) ⇒ Object
Sets the system location, system contact, and system name for the agent. This information is reported in the 'system’ group in the mibII tree. As has always been the case, this method sets values only for the system information items you provide (non-empty/non-zero).
1489 1490 1491 1492 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1489 def set_system_information(opts) opts = check_params(opts,[:system_info]) super(opts) end |
#set_trap_community(opts) ⇒ Object
Sets the trap community string. This defines the default community string to be used when sending traps.
1503 1504 1505 1506 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1503 def set_trap_community(opts) opts = check_params(opts,[:community]) super(opts) end |
#set_trap_sinks(opts) ⇒ Object
Creates a list of trap sinks. This method create definitions for hosts to receive traps (and/or inform notifications). The daemon sends a Cold Start trap when it starts up. If enabled, it also sends traps on authentication failures.
1518 1519 1520 1521 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1518 def set_trap_sinks(opts) opts = check_params(opts,[:sink_type]) super(opts) end |
#set_view_info(opts) ⇒ Object
Creates named views.
1531 1532 1533 1534 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1531 def set_view_info(opts) opts = check_params(opts,[:view_info]) super(opts) end |
#smux_subagent ⇒ SmuxSubAgentInformation
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Gets a list of SMUX based sub-agents.
435 436 437 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 435 def smux_subagent super end |
#storage_use_nfs ⇒ long
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system. Gets directive to indicate how file systems are marked by SNMP. Setting this directive to 1 causes all NFS and NFS-like file systems to be marked as 'Network Disks’ in the hrStorageTable. This is according to RFC 2790. Not setting storageUseNFS or setting it to 2 causes NFS and NFS-like file systems to be marked as 'Fixed Disks’ as it has been in previous versions of the ucd-snmp SNMP agent.
451 452 453 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 451 def storage_use_nfs super end |
#system_information ⇒ SystemInformation
Gets the system location, system contact, and system name for the agent. This information is reported in the 'system’ group in the mibII tree.
463 464 465 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 463 def system_information super end |
#trap_community ⇒ String
Gets the trap community string.
474 475 476 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 474 def trap_community super end |
#trap_sinks(opts) ⇒ SinkInformation
Returns a list of trap sinks.
487 488 489 490 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 487 def trap_sinks(opts) opts = check_params(opts,[:sink_type]) super(opts) end |
#version ⇒ String
Gets the version information for this interface.
496 497 498 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 496 def version super end |
#view_info ⇒ ViewInformation
Gets a list of named views.
507 508 509 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 507 def view_info super end |