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)
-
- (AccessInformation) access_info
Gets a list of access maps from group/securitymodel/security level to a view.
-
- (String) agent_group_id
Gets the agent group id.
-
- (AgentInterface) agent_interface
Gets the agent interface information.
-
- (AgentListenAddressPort) agent_listen_address
Gets a list of agent listen addresses.
-
- (EnabledState) agent_trap_state
Gets the agent trap enabled state.
-
- (String) agent_user_id
Gets the agent user id.
-
- (AgentXInformation) agentx_information
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (EnabledState) auth_trap_state
Gets the authentication trap enabled state.
-
- (DiskCheckInformation) check_disk
Gets a list of disk check instances.
-
- (FileCheckInformation) check_file
Gets a list of available file checks.
-
- (LoadAverageInformation) check_load
Gets load check.
-
- (ProcessInformation) check_process
Gets a list of process checks.
-
- (ClientAccess) client_access
Gets a list of client access controls.
-
- (SecurityInformation) community_to_security_info
Gets a list of mappings from a source/community pair to security name.
-
- (UserInformation) create_user
Gets a list of SNMPv3 users.
-
- (DynamicLoadableModule) dynamic_loadable_module
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (String) engine_id
Gets the snmp engine identifier.
-
- (MibnumNameProgArgs) exec
Gets a list of program instances.
-
- (NameProgArgs) exec_fix
Gets a list of exec fix instances.
-
- (GenericSinkInformation) generic_traps
This method is now deprecated.
-
- (GenericSinkInformation2) generic_traps_v2
Gets a list of generic traps.
-
- (GroupInformation) group_info
Gets a list of mappings from securitymodel/securityname to group.
-
- (String) ignore_disk
Return a list of disk devices currently ignored.
-
- (PassThroughInformation) pass_through
Gets a list of pass through controls.
-
- (PassThroughInformation) pass_through_persist
Gets a list of persist pass through controls.
-
- (NameProgArgs) process_fix
Retrieves a list of the current process fix instances.
-
- (String) proxy
Gets a list of snmp proxies.
-
- (WrapperSecurityInformation) readonly_community
Gets a list of read-only communities.
-
- (WrapperUserInformation) readonly_user
Gets a list of the SNMPv3 USM read-only users in the VACM access configuration tables.
-
- (WrapperSecurityInformation) readwrite_community
Gets a list of read-write communities.
-
- (WrapperUserInformation) readwrite_user
Gets a list of the SNMPv3 USM read-write users in the VACM access configuration tables.
-
- (Object) remove_access_info(opts)
Removes access maps from group/securitymodel/security level to a view.
-
- (Object) remove_agent_group_id(opts)
Removes the agent group id.
-
- (Object) remove_agent_interface(opts)
Removes the agent interface information.
-
- (Object) remove_agent_listen_address(opts)
Removes a list of agent listen addresses.
-
- (Object) remove_agent_trap_state(opts)
Removes the agent trap enabled state.
-
- (Object) remove_agent_user_id(opts)
Removes the ugent ser id.
-
- (Object) remove_agentx_information(opts)
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (Object) remove_auth_trap_state(opts)
Removes the authentication trap enabled state.
-
- (Object) remove_check_disk(opts)
Removes a disk check instance.
-
- (Object) remove_check_file(opts)
Removes a file check.
-
- (Object) remove_check_load(opts)
Removes a load check.
-
- (Object) remove_check_process(opts)
Removes a process check.
-
- (Object) remove_client_access(opts)
Removes a list of client access controls.
-
- (Object) remove_community_to_security_info(opts)
Removes mappings from a source/community pair to security names.
-
- (Object) remove_create_user(opts)
Removes SNMPv3 users.
-
- (Object) remove_dynamic_loadable_module(opts)
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (Object) remove_engine_id(opts)
Removes the snmp engine identifier.
-
- (Object) remove_exec(opts)
Removes a program instance.
-
- (Object) remove_exec_fix(opts)
Removes an exec fix instance.
-
- (Object) remove_generic_traps
This method is now deprecated.
-
- (Object) remove_generic_traps_v2
Removes a list of generic traps.
-
- (Object) remove_group_info(opts)
Removes mappings from securitymodel/securityname to group.
-
- (Object) remove_ignore_disk(opts)
Removes a disk device from the ignore list.
-
- (Object) remove_pass_through(opts)
Removes a list of pass through controls.
-
- (Object) remove_pass_through_persist(opts)
Removes a list of persist pass through controls.
-
- (Object) remove_process_fix(opts)
Removes a process fix instance.
-
- (Object) remove_proxy(opts)
Removes a list of snmp proxies.
-
- (Object) remove_readonly_community(opts)
Removes read-only communities.
-
- (Object) remove_readonly_user(opts)
Removes SNMPv3 USM read-only users from the VACM access configuration tables.
-
- (Object) remove_readwrite_community(opts)
Removes read-write communities.
-
- (Object) remove_readwrite_user(opts)
Removes SNMPv3 USM read-write users from the VACM access configuration tables.
-
- (Object) remove_smux_subagent(opts)
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (Object) remove_storage_use_nfs(opts)
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (Object) remove_system_information(opts)
Removes the system location, system contact, and system name for the agent.
-
- (Object) remove_trap_community(opts)
Removes the trap community string.
-
- (Object) remove_trap_sinks(opts)
Removes a list of trap sinks.
-
- (Object) remove_view_info(opts)
Removes a list of named views.
-
- (Object) set_access_info(opts)
Creates access maps from group/securitymodel/security level to a view.
-
- (Object) set_agent_group_id(opts)
Sets the agent group id.
-
- (Object) set_agent_interface(opts)
Sets the interface information for the agent.
-
- (Object) set_agent_listen_address(opts)
Sets a list of agent listen addresses.
-
- (Object) set_agent_trap_state(opts)
Sets the agent trap enabled state.
-
- (Object) set_agent_user_id(opts)
Sets the agent user id.
-
- (Object) set_agentx_information(opts)
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (Object) set_auth_trap_state(opts)
Sets the authentication trap enabled state.
-
- (Object) set_check_disk(opts)
Creates a disk check instance.
-
- (Object) set_check_file(opts)
Adds a file check used to monitor file sizes and make sure they don't grow beyond a certain size (in kilobytes).
-
- (Object) set_check_load(opts)
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.
-
- (Object) set_check_process(opts)
Creates a process check.
-
- (Object) set_client_access(opts)
Creates a list of client access controls.
-
- (Object) set_community_to_security_info(opts)
Creates mappings from a source/community pair to security names.
-
- (Object) set_create_user(opts)
Creates SNMPv3 users.
-
- (Object) set_dynamic_loadable_module(opts)
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (Object) set_engine_id(opts)
Sets the snmp engine identifier.
-
- (Object) set_exec(opts)
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.
-
- (Object) set_exec_fix(opts)
Sets an exec fix instance that registers a command that knows how to fix errors with the given program.
-
- (Object) set_generic_traps
This method is now deprecated.
-
- (Object) set_generic_traps_v2
Creates generic traps that allows any type of trap destination to be specified with any version of SNMP.
-
- (Object) set_group_info(opts)
Creates mappings from securitymodel/securityname to group.
-
- (Object) set_ignore_disk(opts)
Adds disk devices to the ignore list.
-
- (Object) set_pass_through(opts)
Creates a list of pass through controls.
-
- (Object) set_pass_through_persist(opts)
Creates a list of persist pass through controls.
-
- (Object) set_process_fix(opts)
Sets a process fix instance that registers a command that knows how to fix errors with the given process.
-
- (Object) set_proxy(opts)
Creates a list of snmp proxies.
-
- (Object) set_readonly_community(opts)
Creates read-only communities that can be used to access the agent.
-
- (Object) set_readonly_user(opts)
Creates SNMPv3 USM read-only users in the VACM access configuration tables.
-
- (Object) set_readwrite_community(opts)
Creates read-write communities that can be used to access the agent.
-
- (Object) set_readwrite_user(opts)
Creates SNMPv3 USM read-write users in the VACM access configuration tables.
-
- (Object) set_smux_subagent(opts)
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (Object) set_storage_use_nfs(opts)
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (Object) set_system_information(opts)
Sets the system location, system contact, and system name for the agent.
-
- (Object) set_trap_community(opts)
Sets the trap community string.
-
- (Object) set_trap_sinks(opts)
Creates a list of trap sinks.
-
- (Object) set_view_info(opts)
Creates named views.
-
- (SmuxSubAgentInformation) smux_subagent
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (long) storage_use_nfs
This method is deprecated (immediately) and should not be used, in order to ensure proper operation of the system.
-
- (SystemInformation) system_information
Gets the system location, system contact, and system name for the agent.
-
- (String) trap_community
Gets the trap community string.
-
- (SinkInformation) trap_sinks(opts)
Returns a list of trap sinks.
-
- (String) version
Gets the version information for this interface.
-
- (ViewInformation) view_info
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
- (AccessInformation) access_info
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 |
- (String) agent_group_id
Gets the agent group id.
97 98 99 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 97 def agent_group_id super end |
- (AgentInterface) agent_interface
Gets the agent interface information.
108 109 110 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 108 def agent_interface super end |
- (AgentListenAddressPort) agent_listen_address
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 |
- (EnabledState) agent_trap_state
Gets the agent trap enabled state
130 131 132 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 130 def agent_trap_state super end |
- (String) agent_user_id
Gets the agent user id.
141 142 143 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 141 def agent_user_id super end |
- (AgentXInformation) agentx_information
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 |
- (EnabledState) auth_trap_state
Gets the authentication trap enabled state
163 164 165 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 163 def auth_trap_state super end |
- (DiskCheckInformation) check_disk
Gets a list of disk check instances.
174 175 176 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 174 def check_disk super end |
- (FileCheckInformation) check_file
Gets a list of available file checks.
185 186 187 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 185 def check_file super end |
- (LoadAverageInformation) check_load
Gets load check.
196 197 198 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 196 def check_load super end |
- (ProcessInformation) check_process
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 |
- (ClientAccess) client_access
Gets a list of client access controls.
222 223 224 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 222 def client_access super end |
- (SecurityInformation) community_to_security_info
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 |
- (UserInformation) create_user
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 |
- (DynamicLoadableModule) dynamic_loadable_module
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 |
- (String) engine_id
Gets the snmp engine identifier.
269 270 271 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 269 def engine_id super end |
- (MibnumNameProgArgs) exec
Gets a list of program instances.
280 281 282 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 280 def exec super end |
- (NameProgArgs) exec_fix
Gets a list of exec fix instances.
291 292 293 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 291 def exec_fix super end |
- (GenericSinkInformation) generic_traps
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 |
- (GenericSinkInformation2) generic_traps_v2
Gets a list of generic traps.
314 315 316 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 314 def generic_traps_v2 super end |
- (GroupInformation) group_info
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 |
- (String) ignore_disk
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 |
- (PassThroughInformation) pass_through
Gets a list of pass through controls.
347 348 349 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 347 def pass_through super end |
- (PassThroughInformation) pass_through_persist
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 |
- (NameProgArgs) process_fix
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 |
- (String) proxy
Gets a list of snmp proxies.
380 381 382 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 380 def proxy super end |
- (WrapperSecurityInformation) readonly_community
Gets a list of read-only communities.
391 392 393 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 391 def readonly_community super end |
- (WrapperUserInformation) readonly_user
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 |
- (WrapperSecurityInformation) readwrite_community
Gets a list of read-write communities.
413 414 415 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 413 def readwrite_community super end |
- (WrapperUserInformation) readwrite_user
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 |
- (Object) remove_access_info(opts)
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) check_params(opts,[:access_info]) super end |
- (Object) remove_agent_group_id(opts)
Removes the agent group id.
532 533 534 535 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 532 def remove_agent_group_id(opts) check_params(opts,[:group_id]) super end |
- (Object) remove_agent_interface(opts)
Removes the agent interface information.
545 546 547 548 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 545 def remove_agent_interface(opts) check_params(opts,[:agent_intf]) super end |
- (Object) remove_agent_listen_address(opts)
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) check_params(opts,[:agent_listen_addresses]) super end |
- (Object) remove_agent_trap_state(opts)
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) check_params(opts,[:state]) super end |
- (Object) remove_agent_user_id(opts)
Removes the ugent ser id.
586 587 588 589 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 586 def remove_agent_user_id(opts) check_params(opts,[:user_id]) super end |
- (Object) remove_agentx_information(opts)
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) check_params(opts,[:agentx_info]) super end |
- (Object) remove_auth_trap_state(opts)
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) check_params(opts,[:state]) super end |
- (Object) remove_check_disk(opts)
Removes a disk check instance.
626 627 628 629 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 626 def remove_check_disk(opts) check_params(opts,[:disk_info]) super end |
- (Object) remove_check_file(opts)
Removes a file check.
639 640 641 642 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 639 def remove_check_file(opts) check_params(opts,[:file_info]) super end |
- (Object) remove_check_load(opts)
Removes a load check.
652 653 654 655 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 652 def remove_check_load(opts) check_params(opts,[:load_info]) super end |
- (Object) remove_check_process(opts)
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) check_params(opts,[:proc_info]) super end |
- (Object) remove_client_access(opts)
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) check_params(opts,[:client_access_info]) super end |
- (Object) remove_community_to_security_info(opts)
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) check_params(opts,[:security_info]) super end |
- (Object) remove_create_user(opts)
Removes SNMPv3 users.
708 709 710 711 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 708 def remove_create_user(opts) check_params(opts,[:user_info]) super end |
- (Object) remove_dynamic_loadable_module(opts)
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) check_params(opts,[:mod_info]) super end |
- (Object) remove_engine_id(opts)
Removes the snmp engine identifier.
734 735 736 737 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 734 def remove_engine_id(opts) check_params(opts,[:engine_id]) super end |
- (Object) remove_exec(opts)
Removes a program instance.
747 748 749 750 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 747 def remove_exec(opts) check_params(opts,[:exec_info]) super end |
- (Object) remove_exec_fix(opts)
Removes an exec fix instance.
760 761 762 763 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 760 def remove_exec_fix(opts) check_params(opts,[:exec_info]) super end |
- (Object) remove_generic_traps
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 |
- (Object) remove_generic_traps_v2
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 |
- (Object) remove_group_info(opts)
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) check_params(opts,[:group_info]) super end |
- (Object) remove_ignore_disk(opts)
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) check_params(opts,[:ignore_disk]) super end |
- (Object) remove_pass_through(opts)
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) check_params(opts,[:passthru_info]) super end |
- (Object) remove_pass_through_persist(opts)
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) check_params(opts,[:passthru_info]) super end |
- (Object) remove_process_fix(opts)
Removes a process fix instance.
846 847 848 849 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 846 def remove_process_fix(opts) check_params(opts,[:fix_info]) super end |
- (Object) remove_proxy(opts)
Removes a list of snmp proxies.
859 860 861 862 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 859 def remove_proxy(opts) check_params(opts,[:proxy_info]) super end |
- (Object) remove_readonly_community(opts)
Removes read-only communities.
872 873 874 875 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 872 def remove_readonly_community(opts) check_params(opts,[:ro_community_info]) super end |
- (Object) remove_readonly_user(opts)
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) check_params(opts,[:ro_user_info]) super end |
- (Object) remove_readwrite_community(opts)
Removes read-write communities.
898 899 900 901 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 898 def remove_readwrite_community(opts) check_params(opts,[:rw_community_info]) super end |
- (Object) remove_readwrite_user(opts)
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) check_params(opts,[:rw_user_info]) super end |
- (Object) remove_smux_subagent(opts)
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) check_params(opts,[:subagent_info]) super end |
- (Object) remove_storage_use_nfs(opts)
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) check_params(opts,[:usage]) super end |
- (Object) remove_system_information(opts)
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) check_params(opts,[:system_info]) super end |
- (Object) remove_trap_community(opts)
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) check_params(opts,[:community]) super end |
- (Object) remove_trap_sinks(opts)
Removes a list of trap sinks.
986 987 988 989 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 986 def remove_trap_sinks(opts) check_params(opts,[:sink_type]) super end |
- (Object) remove_view_info(opts)
Removes a list of named views.
999 1000 1001 1002 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 999 def remove_view_info(opts) check_params(opts,[:view_info]) super end |
- (Object) set_access_info(opts)
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) check_params(opts,[:access_info]) super end |
- (Object) set_agent_group_id(opts)
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) check_params(opts,[:group_id]) super end |
- (Object) set_agent_interface(opts)
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) check_params(opts,[:agent_intf]) super end |
- (Object) set_agent_listen_address(opts)
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) check_params(opts,[:agent_listen_addresses]) super end |
- (Object) set_agent_trap_state(opts)
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) check_params(opts,[:state]) super end |
- (Object) set_agent_user_id(opts)
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) check_params(opts,[:user_id]) super end |
- (Object) set_agentx_information(opts)
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) check_params(opts,[:agentx_info]) super end |
- (Object) set_auth_trap_state(opts)
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) check_params(opts,[:state]) super end |
- (Object) set_check_disk(opts)
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) check_params(opts,[:disk_info]) super end |
- (Object) set_check_file(opts)
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) check_params(opts,[:file_info]) super end |
- (Object) set_check_load(opts)
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) check_params(opts,[:load_info]) super end |
- (Object) set_check_process(opts)
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) check_params(opts,[:proc_info]) super end |
- (Object) set_client_access(opts)
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) check_params(opts,[:client_access_info]) super end |
- (Object) set_community_to_security_info(opts)
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) check_params(opts,[:security_info]) super end |
- (Object) set_create_user(opts)
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) check_params(opts,[:user_info]) super end |
- (Object) set_dynamic_loadable_module(opts)
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) check_params(opts,[:mod_info]) super end |
- (Object) set_engine_id(opts)
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) check_params(opts,[:engine_id]) super end |
- (Object) set_exec(opts)
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) check_params(opts,[:exec_info]) super end |
- (Object) set_exec_fix(opts)
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) check_params(opts,[:exec_info]) super end |
- (Object) set_generic_traps
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 |
- (Object) set_generic_traps_v2
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 |
- (Object) set_group_info(opts)
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) check_params(opts,[:group_info]) super end |
- (Object) set_ignore_disk(opts)
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) check_params(opts,[:ignore_disk]) super end |
- (Object) set_pass_through(opts)
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) check_params(opts,[:passthru_info]) super end |
- (Object) set_pass_through_persist(opts)
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) check_params(opts,[:passthru_info]) super end |
- (Object) set_process_fix(opts)
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) check_params(opts,[:fix_info]) super end |
- (Object) set_proxy(opts)
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) check_params(opts,[:proxy_info]) super end |
- (Object) set_readonly_community(opts)
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) check_params(opts,[:ro_community_info]) super end |
- (Object) set_readonly_user(opts)
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) check_params(opts,[:ro_user_info]) super end |
- (Object) set_readwrite_community(opts)
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) check_params(opts,[:rw_community_info]) super end |
- (Object) set_readwrite_user(opts)
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) check_params(opts,[:rw_user_info]) super end |
- (Object) set_smux_subagent(opts)
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) check_params(opts,[:subagent_info]) super end |
- (Object) set_storage_use_nfs(opts)
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) check_params(opts,[:usage]) super end |
- (Object) set_system_information(opts)
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) check_params(opts,[:system_info]) super end |
- (Object) set_trap_community(opts)
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) check_params(opts,[:community]) super end |
- (Object) set_trap_sinks(opts)
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) check_params(opts,[:sink_type]) super end |
- (Object) set_view_info(opts)
Creates named views.
1531 1532 1533 1534 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 1531 def set_view_info(opts) check_params(opts,[:view_info]) super end |
- (SmuxSubAgentInformation) smux_subagent
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 |
- (long) storage_use_nfs
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 |
- (SystemInformation) system_information
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 |
- (String) trap_community
Gets the trap community string.
474 475 476 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 474 def trap_community super end |
- (SinkInformation) trap_sinks(opts)
Returns a list of trap sinks.
487 488 489 490 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 487 def trap_sinks(opts) check_params(opts,[:sink_type]) super end |
- (String) version
Gets the version information for this interface.
496 497 498 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 496 def version super end |
- (ViewInformation) view_info
Gets a list of named views.
507 508 509 |
# File 'lib/icontrol/management/snmp_configuration.rb', line 507 def view_info super end |