OSNMP.CONF sample

Requirement: The osnmp command requires that all fields for a given entry are specified on a single line. For readability, the following sample has been formatted such that long entries are wrapped to the next line.

# osnmp.conf sample
#   (used as /etc/snmpv2.conf unless OSNMP_CONF environment variable set)
#
# Sample file showing format of configuration file for the osnmp command
#
# Licensed Materials - Property of IBM
# "Restricted Materials of IBM"
Start of change# 5650-ZOS
# Copyright IBM Corp. 1996, 2013
# Status = CSV2R1End of change
# SMP/E distribution path: /usr/lpp/tcpip/samples/IBM/EZASNV2C
#
#----------------------------------------------------------------------------------------------------------------------------------------------------------
#
# Format of entries (SNMPv1 and SNMPv2c):
#
#   winSnmpName  targetAgent  admin  nosvipa
#
# Format of entries (SNMPv3):
#
#   winSnmpName  targetAgent  admin  secName  password  context secLevel authProto  authKey  privProto  privKey
#
#----------------------------------------------------------------------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------------------------------------------------------------------------
# Community-based security  (SNMPv1 and SNMPv2c)
#----------------------------------------------------------------------------------------------------------------------------------------------------------
v1       127.0.0.1   snmpv1
v2c      127.0.0.1   snmpv2c
v2c_ipv6 ::1         snmpv2c
mvs1     9.67.113.79 snmpv2c
# mvs2   mvs2c       snmpv2c    nosvipa
# mvs3   mvs3:1061   snmpv2c
mvs4     12ab::2     snmpv2c
#
#----------------------------------------------------------------------------------------------------------------------------------------------------------
# User-based Security Model (USM with SNMPV3)
#
# Notes
# - Keys in this file must not be localized.
# - All keys need to be regenerated using the pwtokey command in order
#   for these sample entries to actually be used.
# - In this sample:
#   - Keys are generated for use with engineID 00000002000000000943714F
#   - Authentication keys were generated with password of
#     username+"password", such as "u1password"
#   - Privacy keys were generated with password of
#     username+"privpass", such as "u1privpass"
#
Start of change# Format of entries (SNMPv3):                                                   
#                                                                               End of change
Start of change#   winSnmpName  targetAgent  admin  secName  password  context secLevel authProto  authKey  privProto  privKey End of change
#----------------------------------------------------------------------------------------------------------------------------------------------------------
#
# v3mpk: SNMPv3 with HMAC-MD5, authentication and privacy, using keys
v3mpk   127.0.0.1 snmpv3 u1 -          - AuthPriv     HMAC-MD5 7a3e34265e0e029f27d8b4235ecfa987         DES eac02a0d9fe90eca7911fdcaba20deae
#
# v3mak: SNMPv3 with HMAC-MD5, authentication without privacy, using keys
v3mak   127.0.0.1 snmpv3 u1 -          - AuthNoPriv   HMAC-MD5 7a3e34265e0e029f27d8b4235ecfa987         -   -
#
# v3n:   SNMPv3 with no authentication or privacy
v3n     127.0.0.1 snmpv3 u1 -          - noAuthNoPriv -        -                                        -   -
#
# v3mpk_ipv6: SNMPv3 with HMAC-MD5, authentication and privacy, using keys, with IPv6 target host address
v3mpk_ipv6    ::1 snmpv3 u1 -          - AuthPriv     HMAC-MD5 7a3e34265e0e029f27d8b4235ecfa987         DES eac02a0d9fe90eca7911fdcaba20deae
#
# v3spk: SNMPv3 with HMAC-SHA, authentication and privacy, using keys
v3spk   127.0.0.1 snmpv3 u2 -          - AuthPriv     HMAC-SHA 76784e5935acd6033a855df1fac42acb187aa867 DES adaaf313277a55a3df3a8d2fb70192c427799e0c
#
# v3sak: SNMPv3 with HMAC-SHA, authentication without privacy, using keys
v3sak   127.0.0.1 snmpv3 u2 -          - AuthNoPriv   HMAC-SHA 76784e5935acd6033a855df1fac42acb187aa867 -   -
#
# v3mpk2: SNMPv3 with HMAC-MD5, authentication and privacy, using non-localized keys at agent
v3mpk2  127.0.0.1 snmpv3 u3 -          - AuthPriv     HMAC-MD5 d1f86e9c9346253c10a4cd2da339b1db         DES cfccde3249ba521ae4da0ddfc2b76ee7
#
# v3spk2: SNMPv3 with HMAC-SHA, authentication and privacy, using non-localized keys at agent
v3spk2  127.0.0.1 snmpv3 u4 -          - AuthPriv     HMAC-SHA 42529b3c6c138c173e70db1050de8d74c04205cb DES ef70a0a98d399a9189f3169e82010f3b46e694e2
#
# v3mpp: SNMPv3 with HMAC-MD5, authentication and privacy, using password to generate keys
v3mpp   127.0.0.1 snmpv3 u5 u5password - AuthPriv     HMAC-MD5 -                                        DES -      nosvipa
#
# v3map: SNMPv3 with HMAC-MD5, authentication without privacy, using password to generate keys
v3map   127.0.0.1 snmpv3 u5 u5password - AuthNoPriv   HMAC-MD5 -                                        -   -      nosvipa
#
# v3spp: SNMPv3 with HMAC-SHA, authentication and privacy, using password to generate keys
v3spp   127.0.0.1 snmpv3 u6 u6password - AuthPriv     HMAC-SHA -                                        DES -
#
# v3sap: SNMPv3 with HMAC-SHA, authentication without privacy, using password to generate keys
v3sap   127.0.0.1 snmpv3 u6 u6password - AuthNoPriv   HMAC-SHA -                                        -   -
Start of change#
# v3mpka: SNMPv3 with HMAC-MD5, authentication and privacy protocol AESCFB128, using keys
v3mpka  127.0.0.1 snmpv3 u7 -          - AuthPriv     HMAC-MD5 15549009e2401748e8077fa17bf64c9b         AESCFB128 90009683501c78a6f87575bdad5455bcEnd of change
Figure 1. OSNMP.CONF sample