SNMP: Difference between revisions

From DWIKI
Line 35: Line 35:
  view all included .1
  view all included .1
  group ACCSRV v2c notConfigUser
  group ACCSRV v2c notConfigUser
  com2sec -Cn swasrv notConfigUser 192.168.0.0/16 swa
  com2sec -Cn wasrv notConfigUser 192.168.0.0/16 swa
  com2sec -Cn swbsrv notConfigUser 192.168.0.0/16 swb
  com2sec -Cn wbsrv notConfigUser 192.168.0.0/16 swb
  access ACCSRV swasrv any noauth prefix all none none
  access ACCSRV wasrv any noauth prefix all none none
  access ACCSRV swbsrv any noauth prefix all none none
  access ACCSRV wbsrv any noauth prefix all none none
  proxy -Cn swasrv -v 2c -c public 10.1.0.11 .1.3
  proxy -Cn wasrv -v 2c -c public 10.1.0.11 .1.3
  proxy -Cn swbsrv -v 2c -c public 10.1.0.12 .1.3
  proxy -Cn wbsrv -v 2c -c public 10.1.0.12 .1.3


Then from your 192.168.0.0/16 network:
Then from your 192.168.0.0/16 network:

Revision as of 16:08, 8 January 2024


Links

Documentation

OID

https://www.dpstele.com/snmp/what-does-oid-network-elements.php

HOWTO

snmpd on Ubuntu

In /etc/snmp/snmpd.conf:

view   systemonly  included   .1


Using snmpd as snmp proxy


IP range to call from: 192.168.0.0/16 Hosts to monitor: swa and swb ( 10.1.0.1x )

On your the host used as proxy:

view all included .1
group ACCSRV v2c notConfigUser
com2sec -Cn wasrv notConfigUser 192.168.0.0/16 swa
com2sec -Cn wbsrv notConfigUser 192.168.0.0/16 swb
access ACCSRV wasrv any noauth prefix all none none
access ACCSRV wbsrv any noauth prefix all none none
proxy -Cn wasrv -v 2c -c public 10.1.0.11 .1.3
proxy -Cn wbsrv -v 2c -c public 10.1.0.12 .1.3

Then from your 192.168.0.0/16 network:

snmpwalk -v 2c -c swa yoursnmpproxyserver

FAQ

Install MIB

Locations

  • /usr/share/snmp/mib
  • /var/lib/snmp/mibs/
  • /usr/share/snmp/mibs/

snmpwalk

snmpwalk -v 2c  -c public yourhost system(?)

or to show all OIDs

 snmpwalk -v 2c  -c public yourhost