Comtrol eCos User Manual

Page 628

Advertising
background image

Chapter 47. SNMP for eCos

but you must have built the

package

with

openssl

installed

in

order

to use SHA.

The only privacy

protocol currently supported is DES.

If

the

pri-

vacy

passphrase is not specified, it is assumed to

be the same as the authentication passphrase.

Note

that

the users created will be useless unless they

are also added to the VACM

access

control

tables

described above.

Warning:

the minimum pass phrase length is 8 char-

acters.

SNMPv3 users can be created at

runtime

using

the

snmpusm command.

SETTING SYSTEM INFORMATION

syslocation STRING

syscontact STRING

Sets the system location and the system contact for

the agent.

This information

is

reported

by

the

’system’ table in the mibII tree.

authtrapenable NUMBER

Setting

authtrapenable

to 1 enables generation of

authentication failure traps. The default value

is

2 (disable).

trapcommunity STRING

This

defines

the

default

community string to be

used when sending traps.

Note

that

this

command

must

be

used

prior to any of the following three

commands

that

are

intended

use

this

community

string.

trapsink HOST [COMMUNITY [PORT]]

trap2sink HOST [COMMUNITY [PORT]]

informsink HOST [COMMUNITY [PORT]]

These

commands

define

the hosts to receive traps

(and/or inform notifications). The daemon

sends

a

Cold

Start

trap when it starts up. If enabled, it

also sends traps on authentication failures.

Mul-

tiple

trapsink, trap2sink and informsink lines may

be specified to specify multiple destinations.

Use

trap2sink

to

send

SNMPv2 traps and informsink to

send inform notifications.

If

COMMUNITY

is

not

specified,

the

string from a preceding trapcommu-

nity directive will be used. If PORT is not

speci-

fied,

the

well known SNMP trap port (162) will be

used.

524

Advertising