Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

/etc/context.conf

Context definitions for SNMPv2

Name:

/etc/context.conf

Description:

The context.conf file is used to define a collection of object resources that's accessible by a network entity. A context is made up of:

The agent acts as a proxy machine for the remote non-SNMP system.

Here's the search order that's used to find this file:

  1. /nodecfg/node_name/etc/context.conf, where node_name is the value of the CS_NODENAME configuration string (see getconf and setconf)
  2. /etc/context.conf

The file is in this format:

contextname contextidentity
contextviewindex contextlocalentity contextlocaltime
contextdstpartyindex contextsrcpartyindex contextproxyxcontext

where:

contextName
Unique alphanumeric friendly name.
contextIdentity
Unique object identifier.
contextViewIndex
Numeric value representing a view as defined in /etc/view.conf.
contextLocalEntity
String or NULL.
contextLocalTime
CurrentTime or restartTime.
contextDstpartyIndex
Decimal value.
contextSrcpartyIndex
Decimal value.
contextProxyContext
Object identifier.

For example, the following defines a context (agent_context) that consists of view index number 3 from the /etc/view.conf file:

agent_context .1.3.6.1.6.3.3.1.4.10.0.0.59.3
3             NULL        CurrentTime
0             0           0

See also:

snmpget, snmpgetnext, snmptest, snmptrapd, snmpwalk

Based on ISO IS 8824 (ASN.1), RFC 1065, RFC 1066, RFC 1067, RFC 1446