Nut/OS  5.0.5
API Reference
mib2sys.c File Reference
#include <sys/version.h>
#include <sys/confos.h>
#include <sys/confnet.h>
#include <sys/environ.h>
#include <pro/snmp.h>
#include <pro/snmp_api.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include "mib2sys.h"
Include dependency graph for mib2sys.c:

Defines

#define BOARD_NAME   "Custom"
#define MAG_SYS_DESCR   1
#define MAG_SYS_OID   2
#define MAG_SYS_UPTIME   3
#define MAG_SYS_CONTACT   4
#define MAG_SYS_NAME   5
#define MAG_SYS_LOCATION   6
#define MAG_SYS_SERVICES   7

Functions

int MibRegisterSysVars (void)
 Register MIB II system variables.

Define Documentation

#define BOARD_NAME   "Custom"

Referenced by MibRegisterSysVars().

#define MAG_SYS_DESCR   1
#define MAG_SYS_OID   2
#define MAG_SYS_UPTIME   3
#define MAG_SYS_CONTACT   4
#define MAG_SYS_NAME   5
#define MAG_SYS_LOCATION   6
#define MAG_SYS_SERVICES   7

Function Documentation

int MibRegisterSysVars ( void  )

Register MIB II system variables.

Note:
Preliminary code with hard coded values.
Examples:
snmpd/snmpd.c.

References BOARD_NAME, confos, getenv(), _CONFOS::hostname, NULL, NutVersionString(), SnmpMibRegister(), strcat(), strcpy(), and time().

Referenced by main().

Here is the call graph for this function: