linux_wiki:net-snmp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:net-snmp [2016/03/18 23:12]
billdozor [Net-snmp]
linux_wiki:net-snmp [2019/05/25 23:50] (current)
Line 12: Line 12:
 ===== Install and Configure net-snmp ===== ===== Install and Configure net-snmp =====
  
-1) Install net snmp +  * Install net snmp<code bash>yum install net-snmp-utils net-snmp</code>
-<code bash> +
-yum install net-snmp net-snmp-utils net-snmp-libs +
-</code>+
  
-2) Create the SNMPv3 User +\\ 
-<code bash> +  * Create the SNMPv3 User<code bash>net-snmp-create-v3-user -ro -A <Authpw> -X <Encryptionpw> -a SHA -x AES <snmpv3username></code
-net-snmp-create-v3-user -ro -A <Authpw> -X <Encryptionpw> -a SHA -x AES <snmpv3username> +    * Example:<code bash>net-snmp-create-v3-user -ro -A MyAuthPW123 -X MyEncryptPW123 -a SHA -x AES systempoller</code>
-</code>+
  
-Example: +\\ 
-<code bash> +  * Comment out default user and group<code bash>sed -i 's/^com2sec notConfigUser/#com2sec notConfigUser/' /etc/snmp/snmpd.conf 
-net-snmp-create-v3-user -ro -A MyAuthPW123 -X MyEncryptPW123 -a SHA -x AES systempoller +sed -i 's/^group   notConfigGroup/#group   notConfigGroup/' /etc/snmp/snmpd.conf</code>
-</code>+
  
-3) Start the snmpd service +\\ 
-<code bash> +  * Start the snmpd service 
-service snmpd start +    * EL7<code bash>systemctl start snmpd</code
-</code>+    * EL6<code bash>service snmpd start</code>
  
-4) Configure service to start at boot +\\ 
-<code bash> +  * Configure service to start at boot 
-chkconfig snmpd on +    * EL7<code bash>systemctl enable snmpd</code
-</code>+    * EL6<code bash>chkconfig snmpd on</code> 
 + 
 +\\ 
 +  * Test the user<code bash>snmpwalk -u <snmpv3username> -A <Authpassword> -a SHA -X <Encryptionpassword> -x AES -l authPriv -v3 127.0.0.1 | head</code>
  
 ---- ----
Line 43: Line 41:
 Location: /etc/snmp/snmpd.conf Location: /etc/snmp/snmpd.conf
  
-SNMPv2 Example content:+\\ 
 +Configure SNMP System Information
 <code bash> <code bash>
-rocommunity redhat 
 syslocation Datacenter, Row 3, Rack 2 syslocation Datacenter, Row 3, Rack 2
 syscontact UNIX Admin <admin@example.com> syscontact UNIX Admin <admin@example.com>
 </code> </code>
 +
 +----
 +
  • linux_wiki/net-snmp.1458357160.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)