SNMP Subagent Programmer's Guide

Programming Tutorials
SNMP Subagent Programmer’s Guide119728 2-81
Security Checker
community string can contain from 0 to 50 printable bytes, and cannot contain
successive colons. The total manager station community string can contain 0 to 255
bytes.
These files are related to Security Checker:
Functions
Invoke Security Checker by specifying the executable subagent name, a NonStop agent
process name, and a subagent password:
RUN HELLOSC /NAME $MYSC/ $ZSNMP topSecret
Configure the community string of the manager station from which you will interact
with Security Checker. Append two colons (::) and the subagent password to the
community string used in the NonStop agent’s authentication table entry for the manager
station. In the following example of a manager station community string, the NonStop
agent’s authentication table contains an entry with a COMMUNITY attribute value of
public:
public::topSecret
The subagent prints the message associated with the MIB object named helloOutputText
at the frequency associated with the MIB object named helloPrintFreq. It also prints the
message when it receives any request from an SNMP manager. The subagent supports
the same manager requests as Nowaited Hello World:
Get and Set operations on helloOutputText
Get and Set operations on helloPrintFreq
Get operations on helloPrintCnt
When the subagent password used in the subagent’s invocation line matches that in the
manager station’s community string, all these operations are supported. When the
invocation password is invalid, Security Checker returns the following error message to
the manager in response to any request:
SNMP_ERR_GEN_ERR
A Set operation on helloPrintFreq results in the same trap generated by all Hello World
subagents.
MIB
The MIB used by Security checker is shown in Example 2-17. The only difference
between this MIB and the one used by Nowaited Hello World is the extensions. Security
helloscc C source code for main control block
authentc C source code for authentication function
securitc C source code for access functions
hloscsmi MIB definition
helloscm TACL routine