Wednesday, July 28, 2021

Server and DRAC Identification via SNMP

 Sometimes Network IP Changes creates a problem in identifying DRAC Ip or Server IP , with SNMP agent Enable on DRAC and Server


we can use Advance IP Scanner to Quickly Scan network range and with Name appear we can easily get the IP.


Setting Name FOR DRAC

Enable SNMP and Change DNS name


FastLinQ Documentation > Server and DRAC Identification via SNMP > image2021-2-19_22-58-46.png






FastLinQ Documentation > Server and DRAC Identification via SNMP > image2021-2-19_22-55-11.png


Assign DNS IDRAC and enable SNMP Agent






Setting Name on Servers

RHEL/CENTOS

Installation

Execute the command:

yum install -y net-snmp

Add the line below to the configuration file (/etc/snmp/snmpd.conf):

rocommunity public

agentAddress udp:161,udp6:[::1]:161

Start the snmpd service:

systemctl enable snmpd && systemctl start snmpd

Allowing SNMP ports in firewall

Execute the following commands:


firewall-cmd --zone=public --add-port=161/udp --permanent

firewall-cmd --zone=public --add-port=162/udp --permanent

firewall-cmd --reload






CentOS

Installation

Execute the commands:


> yum update

> yum install net-snmp


Configuration

Edit the file: /etc/snmp/snmpd.conf 


Add the line:

rocommunity public

Replace the line below:

view systemview included .1.3.6.1.2.1.25.1.1

with the following line:

view systemview included .1.3.

Restart the SNMP Service:

service snmpd restart

Allowing SNMP ports in Firewall

Execute the commands:


firewall-cmd --zone=public --add-port=161/udp --permanent

firewall-cmd --zone=public --add-port=162/udp --permanent

firewall-cmd --reload


Ubuntu

Installation

Execute the command:


> apt update

> apt install snmpd


Configuration

Edit the file: /etc/snmp/snmpd.conf 


Add the line:

rocommunity public

Comment the line:

#agentAddress udp:127.0.0.1:161

Uncomment the line: 

agentAddress udp:161,udp6:[::1]:161

Restart the SNMP Service:

service snmpd restart

Allowing SNMP ports in firewall

Execute the following commands to allow necessary ports:


ufw allow 161/udp

ufw allow 162/udp




Using Advance IP Scanner  To Scan network 


Now Running IP Scanner will Show the Name of the Server and DRAC


FastLinQ Documentation > Server and DRAC Identification via SNMP > image2021-2-19_23-6-14.png








https://www.site24x7.com/help/admin/adding-a-monitor/configuring-snmp-linux.html


No comments:

Post a Comment

Featured Post

XDP - Getting Started with XDP (Linux)