moins,
ich möchte auf dem SuseServer einen SNMP-Dienst laufen lassen, der nix weiter macht, als gegen Authentifiezierung genau eine einzige OID auszulesen und zurückzugeben.
Dazu ist net-snmp installiert.
Meine snmpd.conf sieht so aus:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Please see /usr/share/doc/packages/net-snmp/EXAMPLE.conf for a
# more complete example and snmpd.conf(5).
#
# Writing is disabled by default for security reasons. If you'd like
# to enable it uncomment the rwcommunity line and change the community
# name to something nominally secure (keeping in mind that this is
# transmitted in clear text).
# don't use ' < > in strings for syslocation or syscontact
# Note that if you define the following here you won't be able to change
# them with snmpset
syslocation Server Room
syscontact Sysadmin (root@localhost)
# These really aren't meant for production use. They include all MIBS
# and can use considerable resources. See snmpd.conf(5) for information
# on setting up groups and limiting MIBS.
engineID alba
com2sec albnet 192.168.1.0/24 public
group albgroup usm albnet
view all included interfaces.ifTable.ifEntry.ifIndex.1 ff.a0
access albgroup "" any noauth exact all all all
|
In die /var/lib/snmp/snmpd.conf habe ich noch eingetragen:
|
Quellcode
|
1
|
createUser user1 MD5 passwort1 DES password2
|
Nach neustart des snmp-Daemon versuche ich über einen Client(GUI auf Windows-PC) einen Kontakt zum Server.
Der sagt aber immer:
Connection from UDP: [192.168.1.81]:1620
Authentication failed for user1