| ... and so I am responding to myself once again, because I have fixed the
SET request problem with the UCX/eSNMP example chess-mib subagent.
There are two things you must consider:
1. There must be a SNMP community with read-write access.
Online UCX Help says that the only access type allowed is READ,
but this can't be true for an officially supported product.
So I have tried access type WRITE and it was accepted by UCX.
Now I have got an SNMP Configuration with the default community
"public" , Type "Read Write" and Address_List 0.0.0.0.
2. But this one alone does not solve my problem, I still got SET-request
errors. Fortunately I found out in one of the SNMP related replies of
this conference, that there are some "flags" available:
A "Authen" flag and a "Sets" flag. The first one enables Authentication-
Traps and the second one allows you to SET values to MIB variables.
With these two workarounds, which are nowhere documented I have got the
chess-mib subagent working for GETs and SETs.
As I asked in .0 about the two services "SNMP" and "ESNMP" and their function
I have found out that these two services are in the UCX Service Configuration
Database after doing a @SYS$MANAGER:UCX$CONFIG.
The service "SNMP" can be enabled or disabled, it has no effect to accessing
the eSNMP subagents. The service "ESNMP" cannot be enabled, you will get an
error message like: %UCX-E-STARTERROR, Error starting ESNMP service
-RMS-F-IOP, operation invalid for file organization or device
So I leave/set these two services DISABLED.
To summarize all the above I have listed the UCX command sequence, which
works in my environment:
UCX> SET CONFIG NOSNMP
UCX> SET CONFIG SNMP /COMMUNITY="public" /TYPE=READ /CONTACT="Dieter Lukas" -
_UCX> /LOCATION=(FIRST="Take care",SECOND="and",THIRD="stay alive !!!") -
_UCX> /FLAGS=(AUTHEN,SETS) /ADDRESS=(16.185.224.12, 16.185.240.232)
UCX> SET CONFIG SNMP /COMMUNITY="bvin" /TYPE=WRITE -
_UCX> /ADDRESS=(16.185.224.12,16.185.240.232)
UCX> SHOW CONFIG SNMP/FULL
As you can see I use two seperate communities for read and read/write access,
and I am not allowing every host to access my system.
Here is the resulting output of the "SHOW CONFIG SNMP/FULL" UCX command:
------------------------------------------------------------------------------
SNMP Configuration
Flags: AuthenTraps Sets
Contact: Dieter Lukas
Location
First: Take care
Second: and
Third: stay alive !!!
Community Type Address_list
public Read 16.185.224.12, 16.185.240.232
bvin Read Write 16.185.224.12, 16.185.240.232
------------------------------------------------------------------------------
regards,
Dieter Lukas
Technology Consultant
Digital Frankfurt/Germany
|