DEV Community

Doğukan Eren for Açıklab

Posted on

2

RPM tabanlı Makinalarda SNMPv3 Kurulumu ve Konfigürasyonu

1. RPM Tabanlı Dağıtımlarda Kurulum

Not: Aşağıdaki komutlar root kullanıcısı ile çalıştırılmıştır, normal bir kullanıcı ile işlem yapacaksanız komutların başına sudo ekleyiniz.

1.1

İlk önce SNMP paketini bilgisayarımıza aşağıdaki komutla kuruyoruz.

yum install net-snmp
Enter fullscreen mode Exit fullscreen mode

1.2

SNMP servisini durduruyoruz.

systemctl stop snmpd.service
Enter fullscreen mode Exit fullscreen mode

1.3

Kullanıcıyı aşağıdaki komutta ilgili yerleri değiştirerek oluşturuyoruz.

net-snmp-create-v3-user -ro -A [Doğrulama Parolası] -a [MD5|SHA] -X [Parola] -x [DES|AES] [Kullanıcı Adı]
Enter fullscreen mode Exit fullscreen mode

Örnek:

net-snmp-create-v3-user -ro -A authpassword -a MD5 -X password -x AES deren
Enter fullscreen mode Exit fullscreen mode

2. Test

2.1

SNMPv3 kullanıcısı oluşturduk, şimdi snmpwalk komutu ile kontrol edelim, bunun için ilk önce aşağıdaki komutu çalıştırarak gerekli paketi indirelim.

yum install net-snmp-utils
Enter fullscreen mode Exit fullscreen mode

2.2

snmpwalk komutu ile test edelim

snmpwalk -u [Kullanıcı Adı] -A [Doğrulama Parolası] -a [MD5|SHA] -X [Parola] -x [DES|AES] -l authPriv 127.0.0.1 -v3
Enter fullscreen mode Exit fullscreen mode

Örnek:

snmpwalk -u deren -A authpassword -a MD5 -X password -x AES -l authPriv 127.0.0.1 -v3
Enter fullscreen mode Exit fullscreen mode

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay