https://www.techcrumble.net/2018/03/how-to-configure-snmp-in-vcsa-6-5-snmpv1/
In this article I’d like to show you the complete steps to configure SNMP v1 in the vCenter Server appliance. I have been closely working with vCenter server Migrations to 6.5 in my clients and had to re-configure the SNMP targets after the migrations, hope this article will help someone who try to configure the SNMP in a vCenter Server 6.5 Appliance.
What is SNMP ?
I assume you already know the meaning of the SNMP. These four letters stands for Simple Network Management Protocol which is collecting and organizing managed devices on IP networks. It can use to send device information from one device to another. Most of the network monitoring tools use SNMP traps to monitor the devices and capture the alarms and alerts.
Firstly, enable ssh login to the VCSA
Open a shell console to the VCSA
Type:
snmp.get
To view the current snmp settings of the VCSA, initially there shouldn’t be any configuration in the VCSA
First thing, we need to configure the SNMP community to configure the SNMP in the VCSA, use below format to set the SNMP community to your VCSA
snmp.set --communities <COMMUNITY_NAME>
Type below commands to configure SNMP targets, for one SNMP target configure as below:
snmp.set --targets <IP_ADDRESS_OR_HOSTNAME>@<PORT>/<COMMUNITY_STRING>
You can see the example as below
To configure multiple targets use the command as below:
snmp.set --targets <IP_ADDRESS_OR_HOSTNAME>@<PORT>/<COMMUNITY_STRING>,<IP_ADDRESS_OR_HOSTNAME>@<PORT>/<COMMUNITY_STRING>
Note: Any of these commands will override the current configuration, let’s say you have a single SNMP server configured and you execute the second server with the single target. Previous SNMP server configuration will override with the second server. So, you have to execute both targets again in the same command
Once these targets are configured execute the snmp.get command to view the configuration
To set the SNMP log level use below command
snmp.set --loglevel <DEBUG|INFO|WARNING|ERROR>
Finally, enable the SNMP on the VCSA
snmp.enable
SNMP Test and Help
To send a SNMP Test command use the below command:
snmp.test
To View the SNMP Statistics, use below command:
snmp.stats
You can also view the available options and configurations, type “snmp.” and hit TAB to view the options
To view the available configuration options in “snmp.set” command use below command:
snmp.set --help
Note : You can use –help, -h or TAB key to view the available commands
EX: This is the snmp.limits + TAB command output to see the Configuration Options
To configure the SNMP receivers to the vCenter server appliance you need to go to the vCenter General settings and add the receivers. In this setting this will send the triggered alarm notifications to the receivers. Previous, setting is for the vCenter service status and you need to set the receivers to send the alarm notifications.
Add the receivers details, url, port and community string as below
That’s it for now hope you enjoyed the post!
If You Found This Post As Useful Please Rate The Post And Share It!
Tidak ada komentar:
Posting Komentar