ped_snmp.h File Reference

Routines related to SNMP. More...

Go to the source code of this file.

Defines

#define PE_MIB_OID   SNMP_OID_ENTERPRISES, 2636, 5, 5, 21
 OID of PE MIB.
#define PE_MIB_NOTIFY_OID   PE_MIB_OID, 0
 OID of PE notification.
#define PE_MIB_DATA_OID   PE_MIB_OID, 1
 OID of PE data.
#define PE_MIB_IF_TOTAL_OID   PE_MIB_DATA_OID, 1
 OID of the number of total interfaces.
#define PE_MIB_IF_TABLE_OID   PE_MIB_DATA_OID, 2
 OID of the policy table.
#define PE_MIB_IF_COUNT_OID   PE_MIB_DATA_OID, 3
 OID of the number of interfaces under management.
#define PE_MIB_SNMP_VER_OID   PE_MIB_DATA_OID, 4
 OID of the net-snmp version.
#define PE_MIB_PSD_STATE_OID   PE_MIB_DATA_OID, 5
 OID of the state of PSD connection.
#define PE_MIB_PSD_TIME_OID   PE_MIB_DATA_OID, 6
 OID of the up time of PSD connection.
#define PE_MIB_NOTIFY_PSD_STATE_OID   PE_MIB_NOTIFY_OID, 1
 OID of notification of the state of PSD connection.

Functions

void netsnmp_subagent_init (void)
void ped_notify_psd_state (boolean state)


Detailed Description

Routines related to SNMP.

Functions to intialize snmp sub-agent and process snmp requests.

Definition in file ped_snmp.h.


Function Documentation

void netsnmp_subagent_init ( void   ) 

Initialze snmp sub-agent.

Definition at line 573 of file ped_snmp.c.

References DNAME_PED, init_netsnmp_ds(), ped_ctx, and ped_init_mib().

Referenced by ped_init().

void ped_notify_psd_state ( boolean  state  ) 

Send notification of PSD connection status.

Parameters:
[in] state The state of PSD connection.

Definition at line 599 of file ped_snmp.c.

References notify_psd_state_oid, and psd_state_oid.

Referenced by disconnect_psd(), and psd_ipc_read().


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:27:06 2010 for SDK Your Net Corporation Policy Manager Example: Policy Enforcement Daemon 1.0 by Doxygen 1.5.1