{"id":191,"date":"2019-03-04T23:58:02","date_gmt":"2019-03-04T22:58:02","guid":{"rendered":"https:\/\/leeryanrs.com\/?p=191"},"modified":"2019-03-04T23:58:02","modified_gmt":"2019-03-04T22:58:02","slug":"snmp-v3-on-ubuntu","status":"publish","type":"post","link":"https:\/\/leeryanrs.com\/?p=191","title":{"rendered":"SNMP V3 on Ubuntu"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We will be installing 3 packages to get SNMP up and running on Linux.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>apt install snmpd snmp libsnmp-dev<\/strong><br><br>OR<br><br><strong>yum -y install net-snmp net-snmp-utils    (if you are running yum)<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the default snmpd config file for backup purposes ( if you want to )<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>cp \/etc\/snmp\/snmpd.conf \/etc\/snmp\/snmpd.conf.bak<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Empty the file out by doing the below<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>cat \/dev\/null &gt; \/etc\/snmp\/snmpd.conf<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Stop the running service of snmpd by issuing the command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl stop snmpd<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create your read only user account for SNMP V3. Replace &#8220;SUPERPASSWORD&#8221; and &#8220;USERNAME&#8221; with your required information<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>net-snmp-create-v3-user -ro -A SUPERPASSWORD -a SHA -X SUPERPASSWORD -x AES USERNAME<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now make the service start on bootup <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl enable snmpd<\/strong><br><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Start the service!<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl start snmpd<\/strong><br><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We will be installing 3 packages to get SNMP up and running on Linux. apt install snmpd snmp libsnmp-devORyum -y install net-snmp net-snmp-utils (if you are running yum) Copy the default snmpd config file for backup purposes ( if you want to ) cp \/etc\/snmp\/snmpd.conf \/etc\/snmp\/snmpd.conf.bak Empty the file out by doing the below cat [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,14,15,17],"tags":[34,45,47,50],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-linux","category-security","category-server","category-ubuntu","tag-linux","tag-server","tag-ssh","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":0,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"wp:attachment":[{"href":"https:\/\/leeryanrs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leeryanrs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}