multiple usec users/contexts

Everett W. Jacobs (jacobs@nosc.mil)
Wed, 26 Jun 1996 10:38:26 -0700 (PDT)

I have a question about creating an agent speaking USEC configured with
multiple users/contexts. In short, are scotty2.0.2 usec agents suppose to
support multiple users/contexts ? A bit longer...

Below is an example using scotty2.0.2
where in one scotty I create an agent set up to receive requests from
three different users (each with a different context). In another
scotty2.0.2 session I set up the corresponding manager handles, and (the
good news) show that the requests work. Further experimentation with
this sort of setup revealed that the agent properly acts as a single agent
which recognizes multiple users/contexts.

The bad news is that what seems like an inordinate
amount of snmp traffic is generated by having multiple user/contexts.
The agent generates a bunch of report PDUs (which result in the
manager sending more requests). In this example most of the report PDUs are
usecStatsUnknownUserNames errors. If one is to add authentication, then
(using scotty2.0.2) I have observed that an agent with one, two or maybe three
users/contexts/auths will "work" (given alot of extra traffic is generated).
Adding more users/contexts/auths usually results in noResponse (and alot
of report PDUs).

Has anyone tried this sort of thing ? If so, am I not configuring this
correctly ? Many thanx...

...Bill.

---------------------------------------------------------------------------
Everett W. "Bill" Jacobs phone: (619) 553-1614 (forwards to voice mail)
NCCOSC RDT&E Div phone: (619) 553-6151 (best chance to talk live)
Code 364 fax: (619) 553-1269 or 4955
San Diego, CA 92152-5000 email: jacobs@nosc.mil

*******************************************************************************
SCOTTY 2.0.2 snmp agent session

% set a [snmp session -address 198.253.71.37 -port 3161 -timeout 10 \
-retries 1 -user me1 -context mine1 -agent {} ]
Warning: SNMP agent created based on an unsafe Tcl interpreter!
snmp0
% set a [snmp session -address 198.253.71.37 -port 3161 -timeout 10 \
-retries 1 -user me2 -context mine2 -agent {} ]
Warning: SNMP agent created based on an unsafe Tcl interpreter!
snmp1
% set a [snmp session -address 198.253.71.37 -port 3161 -timeout 10 \
-retries 1 -user me3 -context mine3 -agent {} ]
Warning: SNMP agent created based on an unsafe Tcl interpreter!
snmp2
%

*******************************************************************************
SCOTTY 2.0.2 snmp manager session

% set a [snmp session -address 198.253.71.37 -port 3161 -timeout 10 \
-retries 1 -user me1 -context mine1 ]
snmp0
% set a [snmp session -address 198.253.71.37 -port 3161 -timeout 10 \
-retries 1 -user me2 -context mine2 ]
snmp1
% set a [snmp session -address 198.253.71.37 -port 3161 -timeout 10 \
-retries 1 -user me3 -context mine3 ]
snmp2
%
% snmp0 get sysDescr.0
{1.3.6.1.2.1.1.1.0 {OCTET STRING} {scotty midlevel agent}}
% snmp1 get sysDescr.0
{1.3.6.1.2.1.1.1.0 {OCTET STRING} {scotty midlevel agent}}
% snmp2 get sysDescr.0
{1.3.6.1.2.1.1.1.0 {OCTET STRING} {scotty midlevel agent}}
%