uddrag af snmpd.conf
--- snip ---
####
# First, map the community name "public" into a "security name"
# sec.name source community
com2sec notConfigUser default pwd
####
# Second, map the security name into a group name:
# groupName securityModel securityName
#group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
####
# Third, create a view for us to let the group have rights to:
# name incl/excl subtree mask(optional)
view systemview included system
####
# Third, create a view for us to let the group have rights to:
# name incl/excl subtree mask(optional)
view systemview included system
####
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level prefix read write
notif
access notConfigGroup "" any noauth exact systemview none
none
# --------------------------------------------------------------------------
---
# Here is a commented out example configuration that allows less
# restrictive access.
# YOU SHOULD CHANGE THE "COMMUNITY" TOKEN BELOW TO A NEW KEYWORD ONLY
# KNOWN AT YOUR SITE. YOU *MUST* CHANGE THE NETWORK TOKEN BELOW TO
# SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.
## sec.name source community
#com2sec local localhost lbk1383
#com2sec mynetwork NETWORK/24 COMMUNITY
## group.name sec.model sec.name
#group MyRWGroup any local
#group MyROGroup any mynetwork
#
#group MyRWGroup any otherv3user
#...
## incl/excl subtree mask
#view all included .1 80
## -or just the mib2 tree-
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
## context sec.model sec.level prefix read write notif
#access MyROGroup "" any noauth 0 all none none
#access MyRWGroup "" any noauth 0 all all all
############################################################################
###
# System contact information
#
# It is also possible to set the sysContact and sysLocation system
# variables through the snmpd.conf file:
# syslocation Unknown (edit /etc/snmp/snmpd.conf)
# syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
# Example output of snmpwalk:
# % snmpwalk -v 1 localhost public system
# system.sysDescr.0 = "RedHat name ting"
# system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.sunos4
# system.sysUpTime.0 = Timeticks: (595637548) 68 days, 22:32:55
# system.sysContact.0 = "Gud <gud@email.dk>"
# system.sysName.0 = "UJ"
# system.sysLocation.0 = "Right here, right now."
# system.sysServices.0 = 72
# --------------------------------------------------------------------------
---
osv--->
--- snap ---
"Lars Thegler" <xyz@xyz.xyz> skrev i en meddelelse
news:slrn9uvga9.1niu.xyz@
www.chaos.dk...
> On Mon, 12 Nov 2001 13:21:17 +0100, Lars Knudsen <lars@dulmens.dk> wrote:
> >
> >Har installeret snmpd og mrtg.. men når jeg kører en cfgmaker bla bla..
med
> >de rigtige communities osv.. så får jeg følgende:
> >
> >--snpo: Skipping ifName scanning because pwd@localhost: does not seem to
> >support it
>
> Lyder som om din snmpd ikke er conf'et til at svare på det, som
> cfgmaker spørger om...
>
> /Lars