madman_api.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "snmp_msg.h"
#include "madman_api.h"
/***** GLOBAL VARIABLES *****/
/* SMTP */
char smtp_string[] = "1.3.6.1.2.1.27.4.25";
/* P1 */
char id_ac_mts_transfer_string[] = "2.6.0.1.6";
/* P3 */
/* P7 */
/***** LOCAL CONSTANTS *****/
#define MAX_LABEL_LEN 50
#define MAX_COLUMNS 30
#define TO_INTEGER 1
#define TO_STRING 2
#define TO_ASCII 3
#define TO_OID 4
/***** LOCAL TYPES *****/
typedef struct _SNMP_object {
int translator;
} SNMP_object;
typedef struct _SNMP_column {
int translator;
} SNMP_column;
typedef struct _SNMP_table {
int column_num;
} SNMP_table;
/***** LOCAL VARIABLES *****/
/**********/
/* MIB II */
/**********/
static SNMP_object sysUpTime_object
/************/
/* RFC 1565 */
/************/
static Oid applAccumulatedInboundAssociations_name = { applAccumulatedInboundAssociations_subids, 10 };
static Oid applAccumulatedOutboundAssociations_name = { applAccumulatedOutboundAssociations_subids, 10 };
static SNMP_column applName_column
static SNMP_column applVersion_column
static SNMP_column applUptime_column
static SNMP_column applOperStatus_column
static SNMP_column applLastChange_column
= { "applAccumulatedInboundAssociations", &applAccumulatedInboundAssociations_name, COUNTER, TO_INTEGER };
= { "applAccumulatedOutboundAssociations", &applAccumulatedOutboundAssociations_name, COUNTER, TO_INTEGER };
= { "applRejectedInboundAssociations", &applRejectedInboundAssociations_name, COUNTER, TO_INTEGER };
static SNMP_table applTable = {
14,
{
}
};
static SNMP_column assocDuration_column
static SNMP_table assocTable = {
4,
{
}
};
/************/
/* RFC 1566 */
/************/
static SNMP_table mtaTable = {
9,
{
}
};
static Oid mtaGroupAccumulatedInboundAssociations_name = { mtaGroupAccumulatedInboundAssociations_subids, 10 };
static Oid mtaGroupAccumulatedOutboundAssociations_name = { mtaGroupAccumulatedOutboundAssociations_subids, 10 };
static Oid mtaGroupRejectedInboundAssociations_name = { mtaGroupRejectedInboundAssociations_subids, 10 };
static Oid mtaGroupFailedOutboundAssociations_name = { mtaGroupFailedOutboundAssociations_subids, 10 };
static Oid mtaGroupOutboundConnectFailureReason_name = { mtaGroupOutboundConnectFailureReason_subids, 10 };
= { "mtaGroupAccumulatedInboundAssociations", &mtaGroupAccumulatedInboundAssociations_name, COUNTER, TO_INTEGER };
= { "mtaGroupAccumulatedOutboundAssociations", &mtaGroupAccumulatedOutboundAssociations_name, COUNTER, TO_INTEGER };
= { "mtaGroupRejectedInboundAssociations", &mtaGroupRejectedInboundAssociations_name, COUNTER, TO_INTEGER };
= { "mtaGroupFailedOutboundAssociations", &mtaGroupFailedOutboundAssociations_name, COUNTER, TO_INTEGER };
= { "mtaGroupOutboundConnectFailureReason", &mtaGroupOutboundConnectFailureReason_name, STRING, TO_ASCII };
static SNMP_column mtaGroupName_column
static SNMP_table mtaGroupTable = {
24,
{
}
};
static SNMP_table mtaGroupAssociationTable = {
1,
{
}
};
/************/
/* RFC 1567 */
/************/
static SNMP_column dsaUnauthBinds_column
static SNMP_column dsaInOps_column
static SNMP_column dsaReadOps_column
static SNMP_column dsaCompareOps_column
static SNMP_column dsaAddEntryOps_column
static SNMP_column dsaListOps_column
static SNMP_column dsaSearchOps_column
static SNMP_column dsaReferrals_column
static SNMP_column dsaChainings_column
static SNMP_column dsaErrors_column
static SNMP_table dsaOpsTable = {
20,
{
}
};
static SNMP_column dsaCopyEntries_column
static SNMP_column dsaCacheHits_column
static SNMP_column dsaSlaveHits_column
static SNMP_table dsaEntriesTable = {
5,
{
}
};
static SNMP_column dsaName_column
static SNMP_column dsaFailures_column
static SNMP_column dsaSuccesses_column
static SNMP_table dsaIntTable = {
7,
{
}
};
/************/
/* X4MS MIB */
/************/
static SNMP_column x4msMtaName_column
static SNMP_table x4msMtaTable = {
1,
{
}
};
static Subid x4msUserAuthentificationFailures_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 2, 1, 7 };
static Subid x4msUserAuthentificationFailureReason_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 2, 1, 8 };
static Oid x4msUserAuthentificationFailureReason_name = { x4msUserAuthentificationFailureReason_subids, 14 };
= { "x4msUserAuthentificationFailures", &x4msUserAuthentificationFailures_name, COUNTER, TO_INTEGER };
= { "x4msUserAuthentificationFailureReason", &x4msUserAuthentificationFailureReason_name, STRING, TO_ASCII };
static SNMP_column x4msUserName_column
static SNMP_table x4msUserTablePart1 = {
8,
{
}
};
static Subid x4msUserMessagesOlderThanWeek_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 7 };
static Subid x4msUserMessagesOlderThanMonth_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 9 };
static Subid x4msUserVolumeOlderThanMonth_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 10 };
static Subid x4msUserMessagesOlderThanYear_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 11 };
static Subid x4msUserP3InboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 13 };
static Subid x4msUserP7InboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 14 };
static Subid x4msUserP3OutboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 15 };
static Subid x4msUserAccumulatedP3InboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 16 };
static Oid x4msUserAccumulatedP3InboundAssociations_name = { x4msUserAccumulatedP3InboundAssociations_subids, 14 };
static Subid x4msUserAccumulatedP7InboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 17 };
static Oid x4msUserAccumulatedP7InboundAssociations_name = { x4msUserAccumulatedP7InboundAssociations_subids, 14 };
static Subid x4msUserAccumulatedP3OutboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 18 };
static Oid x4msUserAccumulatedP3OutboundAssociations_name = { x4msUserAccumulatedP3OutboundAssociations_subids, 14 };
static Subid x4msUserLastP3InboundActivity_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 19 };
static Subid x4msUserLastP7InboundActivity_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 20 };
static Subid x4msUserLastP3OutboundActivity_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 21 };
static Subid x4msUserRejectedP3InboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 22 };
static Oid x4msUserRejectedP3InboundAssociations_name = { x4msUserRejectedP3InboundAssociations_subids, 14 };
static Subid x4msUserRejectedP7InboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 23 };
static Oid x4msUserRejectedP7InboundAssociations_name = { x4msUserRejectedP7InboundAssociations_subids, 14 };
static Subid x4msUserFailedP3OutboundAssociations_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 24 };
static Oid x4msUserFailedP3OutboundAssociations_name = { x4msUserFailedP3OutboundAssociations_subids, 14 };
static Subid x4msUserP3InboundRejectionReason_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 25 };
static Subid x4msUserP7InboundRejectionReason_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 26 };
static Subid x4msUserP3OutboundConnectFailureReason_subids[] = { 1, 3, 6, 1, 4, 1, 42, 2, 8, 2, 1, 3, 1, 27 };
static Oid x4msUserP3OutboundConnectFailureReason_name = { x4msUserP3OutboundConnectFailureReason_subids, 14 };
= { "x4msUserAccumulatedP3InboundAssociations", &x4msUserAccumulatedP3InboundAssociations_name, COUNTER, TO_INTEGER };
= { "x4msUserAccumulatedP7InboundAssociations", &x4msUserAccumulatedP7InboundAssociations_name, COUNTER, TO_INTEGER };
= { "x4msUserAccumulatedP3OutboundAssociations", &x4msUserAccumulatedP3OutboundAssociations_name, COUNTER, TO_INTEGER };
= { "x4msUserRejectedP3InboundAssociations", &x4msUserRejectedP3InboundAssociations_name, COUNTER, TO_INTEGER };
= { "x4msUserRejectedP7InboundAssociations", &x4msUserRejectedP7InboundAssociations_name, COUNTER, TO_INTEGER };
= { "x4msUserFailedP3OutboundAssociations", &x4msUserFailedP3OutboundAssociations_name, COUNTER, TO_INTEGER };
= { "x4msUserP3OutboundConnectFailureReason", &x4msUserP3OutboundConnectFailureReason_name, STRING, TO_ASCII };
static SNMP_column x4msUserORName_column
static SNMP_table x4msUserTablePart2 = {
29,
{
}
};
static SNMP_table x4msUserAssociationTable = {
1,
{
}
};
/*************/
/* X4GRP MIB */
/*************/
static SNMP_column x4grpName_column
static SNMP_table x4grpTable = {
1,
{
}
};
static SNMP_table x4grpMappingTable = {
2,
{
}
};
/*************/
/* X5DSA MIB */
/*************/
static SNMP_table x5dsaReferenceTable = {
4,
{
}
};
/***** LOCAL FUNCTIONS *****/
/***************************************************************/
{
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
{
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
{
return NULL;
}
{
return NULL;
}
/* check oid */
{
return NULL;
}
/* check type */
{
return NULL;
}
{
return NULL;
}
return sysUpTime;
}
/***************************************************************/
{
{
return;
}
}
/***************************************************************/
{
printf("sysUpTime: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int applEntry_send_request(SNMP_session *session, u_char type, int32_t applIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < applTable.column_num; i++)
{
if(applIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
{
return NULL;
}
for(i = 0; i < applTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract applIndex */
{
return NULL;
}
/* check if all applIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return applEntry;
}
/***************************************************************/
{
{
return;
}
{
}
{
}
if(applEntry->applVersion)
{
}
}
/***************************************************************/
{
printf("applIndex: %ld\n",
printf("applName: %s\n",
printf("applDirectoryName: %s\n",
printf("applVersion: %s\n",
printf("applUptime: %ld\n",
printf("applOperStatus: %s\n",
printf("applLastChange: %ld\n",
printf("applInboundAssociations: %ld\n",
printf("applOutboundAssociations: %ld\n",
printf("applAccumulatedInboundAssociations: %ld\n",
printf("applAccumulatedOutboundAssociations: %ld\n",
printf("applLastInboundActivity: %ld\n",
printf("applLastOutboundActivity: %ld\n",
printf("applRejectedInboundAssociations: %ld\n",
printf("applFailedOutboundAssociations: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int
assocEntry_send_request(SNMP_session *session, u_char type, int32_t applIndex, int32_t assocIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < assocTable.column_num; i++)
{
if(applIndex >= 0)
{
if(assocIndex >= 0)
{
}
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
AssocEntry *assocEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(assocEntry == NULL)
{
return NULL;
}
for(i = 0; i < assocTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract applIndex */
{
return NULL;
}
/* check if all applIndex + assocIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return assocEntry;
}
/***************************************************************/
{
if(assocEntry == NULL)
{
return;
}
{
}
{
}
}
/***************************************************************/
{
printf("applIndex: %ld\n",
printf("assocIndex: %ld\n",
printf("assocRemoteApplication: %s\n",
printf("assocApplicationProtocol: %s\n",
printf("assocApplicationType: %s\n",
printf("assocDuration: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < mtaTable.column_num; i++)
{
if(applIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
{
return NULL;
}
for(i = 0; i < mtaTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract applIndex */
{
return NULL;
}
/* check if all applIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return mtaEntry;
}
/***************************************************************/
{
{
return;
}
}
/***************************************************************/
{
printf("applIndex: %ld\n",
printf("mtaReceivedMessages: %ld\n",
printf("mtaStoredMessages: %ld\n",
printf("mtaTransmittedMessages: %ld\n",
printf("mtaReceivedVolume: %ld\n",
printf("mtaStoredVolume: %ld\n",
printf("mtaTransmittedVolume: %ld\n",
printf("mtaReceivedRecipients: %ld\n",
printf("mtaStoredRecipients: %ld\n",
printf("mtaTransmittedRecipients: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int mtaGroupEntry_send_request(SNMP_session *session, u_char type, int32_t applIndex, int32_t mtaGroupIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < mtaGroupTable.column_num; i++)
{
if(applIndex >= 0)
{
if(mtaGroupIndex >= 0)
{
}
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
MtaGroupEntry *mtaGroupEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(mtaGroupEntry == NULL)
{
return NULL;
}
for(i = 0; i < mtaGroupTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract applIndex and mtaGroupIndex */
{
return NULL;
}
/* check if all applIndex + mtaGroupIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return mtaGroupEntry;
}
/***************************************************************/
{
if(mtaGroupEntry == NULL)
{
return;
}
{
}
{
}
{
}
{
}
}
/***************************************************************/
{
printf("applIndex: %ld\n",
printf("mtaGroupIndex: %ld\n",
printf("mtaGroupReceivedMessages: %ld\n",
printf("mtaGroupRejectedMessages: %ld\n",
printf("mtaGroupStoredMessages: %ld\n",
printf("mtaGroupTransmittedMessages: %ld\n",
printf("mtaGroupReceivedVolume: %ld\n",
printf("mtaGroupStoredVolume: %ld\n",
printf("mtaGroupTransmittedVolume: %ld\n",
printf("mtaGroupOldestMessageStored: %ld\n",
printf("mtaGroupInboundAssociations: %ld\n",
printf("mtaGroupOutboundAssociations: %ld\n",
printf("mtaGroupAccumulatedInboundAssoc.: %ld\n",
printf("mtaGroupAccumulatedOutboundAssoc.: %ld\n",
printf("mtaGroupLastInboundActivity: %ld\n",
printf("mtaGroupLastOutboundActivity: %ld\n",
printf("mtaGroupRejectedInboundAssociations: %ld\n",
printf("mtaGroupFailedOutboundAssociations: %ld\n",
printf("mtaGroupInboundRejectionReason: %s\n",
printf("mtaGroupOutboundConnectFailureReason: %s\n",
printf("mtaGroupScheduledRetry: %ld\n",
printf("mtaGroupMailProtocol: %s\n",
printf("mtaGroupName: %s\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int mtaGroupAssociationEntry_send_request(SNMP_session *session, u_char type, int32_t applIndex, int32_t mtaGroupIndex, int32_t mtaGroupAssociationIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < mtaGroupAssociationTable.column_num; i++)
{
if(applIndex >= 0)
{
if(mtaGroupIndex >= 0)
{
if(mtaGroupAssociationIndex >= 0)
{
}
}
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
MtaGroupAssociationEntry *mtaGroupAssociationEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(mtaGroupAssociationEntry == NULL)
{
return NULL;
}
for(i = 0; i < mtaGroupAssociationTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract applIndex and mtaGroupIndex */
if(extract_three_indexes_from_column(&(variable->name), column->name, &applIndex, &mtaGroupIndex, &mtaGroupAssociationIndex))
{
return NULL;
}
/* check if all applIndex + mtaGroupIndex + mtaGroupAssociationIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return mtaGroupAssociationEntry;
}
/***************************************************************/
{
if(mtaGroupAssociationEntry == NULL)
{
return;
}
}
/***************************************************************/
{
printf("applIndex: %ld\n",
printf("mtaGroupIndex: %ld\n",
printf("mtaGroupAssociationIndex: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int dsaOpsEntry_send_request(SNMP_session *session, u_char type, int32_t applIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < dsaOpsTable.column_num; i++)
{
if(applIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
DsaOpsEntry *dsaOpsEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(dsaOpsEntry == NULL)
{
return NULL;
}
for(i = 0; i < dsaOpsTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract applIndex */
{
return NULL;
}
/* check if all applIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return dsaOpsEntry;
}
/***************************************************************/
{
if(dsaOpsEntry == NULL)
{
return;
}
}
/***************************************************************/
{
printf("applIndex: %ld\n",
printf("dsaAnonymousBinds: %ld\n",
printf("dsaUnauthBinds: %ld\n",
printf("dsaSimpleAuthBinds: %ld\n",
printf("dsaStrongAuthBinds: %ld\n",
printf("dsaBindSecurityErrors: %ld\n",
printf("dsaInOps: %ld\n",
printf("dsaReadOps: %ld\n",
printf("dsaCompareOps: %ld\n",
printf("dsaAddEntryOps: %ld\n",
printf("dsaRemoveEntryOps: %ld\n",
printf("dsaModifyEntryOps: %ld\n",
printf("dsaModifyRDNOps: %ld\n",
printf("dsaListOps: %ld\n",
printf("dsaSearchOps: %ld\n",
printf("dsaOneLevelSearchOps: %ld\n",
printf("dsaWholeTreeSearchOps: %ld\n",
printf("dsaReferrals: %ld\n",
printf("dsaChainings: %ld\n",
printf("dsaSecurityErrors: %ld\n",
printf("dsaErrors: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int dsaEntriesEntry_send_request(SNMP_session *session, u_char type, int32_t applIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < dsaEntriesTable.column_num; i++)
{
if(applIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
DsaEntriesEntry *dsaEntriesEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(dsaEntriesEntry == NULL)
{
return NULL;
}
for(i = 0; i < dsaEntriesTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract applIndex */
{
return NULL;
}
/* check if all applIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return dsaEntriesEntry;
}
/***************************************************************/
{
if(dsaEntriesEntry == NULL)
{
return;
}
}
/***************************************************************/
{
printf("applIndex: %ld\n",
printf("dsaMasterEntries: %ld\n",
printf("dsaCopyEntries: %ld\n",
printf("dsaCacheEntries: %ld\n",
printf("dsaCacheHits: %ld\n",
printf("dsaSlaveHits: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int dsaIntEntry_send_request(SNMP_session *session, u_char type, int32_t applIndex, int32_t dsaIntIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < dsaIntTable.column_num; i++)
{
if(applIndex >= 0)
{
if(dsaIntIndex >= 0)
{
}
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
DsaIntEntry *dsaIntEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(dsaIntEntry == NULL)
{
return NULL;
}
for(i = 0; i < dsaIntTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract applIndex and mtaGroupIndex */
{
return NULL;
}
/* check if all applIndex + dsaIntIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return dsaIntEntry;
}
/***************************************************************/
{
if(dsaIntEntry == NULL)
{
return;
}
if(dsaIntEntry->dsaName)
{
}
}
/***************************************************************/
{
printf("applIndex: %ld\n",
printf("dsaIntIndex: %ld\n",
printf("dsaName: %s\n",
printf("dsaTimeOfCreation: %s\n",
printf("dsaTimeOfLastAttempt: %ld\n",
printf("dsaTimeOfLastSuccess: %ld\n",
printf("dsaFailuresSinceLastSuccess: %ld\n",
printf("dsaFailures: %ld\n",
printf("dsaSuccesses: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int x4msMtaEntry_send_request(SNMP_session *session, u_char type, int32_t x4msMtaIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < x4msMtaTable.column_num; i++)
{
if(x4msMtaIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
X4msMtaEntry *x4msMtaEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(x4msMtaEntry == NULL)
{
return NULL;
}
for(i = 0; i < x4msMtaTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract x4msMtaIndex */
{
return NULL;
}
/* check if all x4msMtaIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return x4msMtaEntry;
}
/***************************************************************/
{
if(x4msMtaEntry == NULL)
{
return;
}
if(x4msMtaEntry->x4msMtaName)
{
}
}
/***************************************************************/
{
printf("x4msMtaIndex: %ld\n",
printf("x4msMtaName %s\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
int x4msUserEntryPart1_send_request(SNMP_session *session, u_char type, int32_t x4msUserIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < x4msUserTablePart1.column_num; i++)
{
if(x4msUserIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/***************************************************************/
/* ARGSUSED */
X4msUserEntryPart1 *x4msUserEntryPart1_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(x4msUserEntryPart1 == NULL)
{
return NULL;
}
for(i = 0; i < x4msUserTablePart1.column_num; i++)
{
{
return NULL;
}
/* check oid and extract x4msMtaIndex */
{
return NULL;
}
/* check if all x4msUserIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return x4msUserEntryPart1;
}
/***************************************************************/
{
if(x4msUserEntryPart1 == NULL)
{
return;
}
{
}
{
}
}
/***************************************************************/
{
printf("x4msUserIndex: %ld\n",
printf("x4msUserTotalMessages: %ld\n",
printf("x4msUserTotalVolume: %ld\n",
printf("x4msUserP3Associations: %ld\n",
printf("x4msUserP7Associations: %ld\n",
printf("x4msUserLastP7Association: %ld\n",
printf("x4msUserAuthentificationFailures: %ld\n",
printf("x4msUserAuthentificationFailureReason:%s\n",
printf("x4msUserName: %s\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
int x4msUserEntryPart2_send_request(SNMP_session *session, u_char type, int32_t x4msUserIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < x4msUserTablePart2.column_num; i++)
{
if(x4msUserIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/* ARGSUSED */
X4msUserEntryPart2 *x4msUserEntryPart2_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(x4msUserEntryPart2 == NULL)
{
return NULL;
}
for(i = 0; i < x4msUserTablePart2.column_num; i++)
{
{
return NULL;
}
/* check oid and extract x4msUserIndex */
{
return NULL;
}
/* check if all x4msUserIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return x4msUserEntryPart2;
}
/***************************************************************/
{
if(x4msUserEntryPart2 == NULL)
{
return;
}
{
}
{
}
{
}
{
}
}
/***************************************************************/
{
printf("x4msUserIndex: %ld\n",
printf("x4msUserNewMessages: %ld\n",
printf("x4msUserNewVolume: %ld\n",
printf("x4msUserListedMessages: %ld\n",
printf("x4msUserListedVolume: %ld\n",
printf("x4msUserProcessedMessages: %ld\n",
printf("x4msUserProcessedVolume: %ld\n",
printf("x4msUserMessagesOlderThanWeek: %ld\n",
printf("x4msUserVolumeOlderThanWeek: %ld\n",
printf("x4msUserMessagesOlderThanMonth: %ld\n",
printf("x4msUserVolumeOlderThanMonth: %ld\n",
printf("x4msUserMessagesOlderThanYear: %ld\n",
printf("x4msUserP3InboundAssociations: %ld\n",
printf("x4msUserP7InboundAssociations: %ld\n",
printf("x4msUserP3OutboundAssociations: %ld\n",
printf("x4msUserAccumulatedP3InboundAssoc.: %ld\n",
printf("x4msUserAccumulatedP7InboundAssoc.: %ld\n",
printf("x4msUserAccumulatedP3OutboundAssoc.: %ld\n",
printf("x4msUserLastP3InboundActivity: %ld\n",
printf("x4msUserLastP7InboundActivity: %ld\n",
printf("x4msUserLastP3OutboundActivity: %ld\n",
printf("x4msUserRejectedP3InboundAssoc.: %ld\n",
printf("x4msUserRejectedP7InboundAssoc.: %ld\n",
printf("x4msUserFailedP3OutboundAssociations: %ld\n",
printf("x4msUserP3InboundRejectionReason: %s\n",
printf("x4msUserP7InboundRejectionReason: %s\n",
printf("x4msUserP3OutboundConnectFailureRea.: %s\n",
printf("x4msUserMtaIndex: %ld\n",
printf("x4msUserORName: %s\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
int x4msUserAssociationEntry_send_request(SNMP_session *session, u_char type, int32_t x4msUserIndex, int32_t x4msUserAssociationIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < x4msUserAssociationTable.column_num; i++)
{
if(x4msUserIndex >= 0)
{
if(x4msUserAssociationIndex >= 0)
{
}
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/* ARGSUSED */
X4msUserAssociationEntry *x4msUserAssociationEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(x4msUserAssociationEntry == NULL)
{
return NULL;
}
for(i = 0; i < x4msUserAssociationTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract x4msUserIndex and x4msUserAssociationIndex */
if(extract_two_indexes_from_column(&(variable->name), column->name, &x4msUserIndex, &x4msUserAssociationIndex))
{
return NULL;
}
/* check if all x4msUserIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return x4msUserAssociationEntry;
}
/***************************************************************/
{
if(x4msUserAssociationEntry == NULL)
{
return;
}
}
/***************************************************************/
{
printf("x4msUserIndex: %ld\n",
printf("x4msUserAssociationIndex: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int x4grpEntry_send_request(SNMP_session *session, u_char type, int32_t x4grpIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < x4grpTable.column_num; i++)
{
if(x4grpIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/* ARGSUSED */
X4grpEntry *x4grpEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(x4grpEntry == NULL)
{
return NULL;
}
for(i = 0; i < x4grpTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract x4grpIndex */
{
return NULL;
}
/* check if all x4grpIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return x4grpEntry;
}
/***************************************************************/
{
if(x4grpEntry == NULL)
{
return;
}
if(x4grpEntry->x4grpName)
{
}
}
/***************************************************************/
{
printf("x4grpIndex: %ld\n",
printf("x4grpName: %s\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int x4grpMappingEntry_send_request(SNMP_session *session, u_char type, int32_t x4grpIndex, int32_t x4grpMappingMSIndex, int32_t x4grpMappingMTAIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < x4grpMappingTable.column_num; i++)
{
if(x4grpIndex >= 0)
{
if(x4grpMappingMSIndex >= 0)
{
if(x4grpMappingMTAIndex >= 0)
{
}
}
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/* ARGSUSED */
X4grpMappingEntry *x4grpMappingEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(x4grpMappingEntry == NULL)
{
return NULL;
}
for(i = 0; i < x4grpMappingTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract x4grpIndex, x4grpMappingMSIndex and x4grpMappingMTAIndex */
if(extract_three_indexes_from_column(&(variable->name), column->name, &x4grpIndex, &x4grpMappingMSIndex, &x4grpMappingMTAIndex))
{
return NULL;
}
/* check if all x4grpIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return x4grpMappingEntry;
}
/***************************************************************/
{
if(x4grpMappingEntry == NULL)
{
return;
}
}
/***************************************************************/
{
printf("x4grpIndex: %ld\n",
printf("x4grpMappingMSIndex: %ld\n",
printf("x4grpMappingMTAIndex: %ld\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
int x5dsaReferenceEntry_send_request(SNMP_session *session, u_char type, int32_t x5dsaReferenceIndex, char *error_label)
{
int i;
error_label[0] = '\0';
{
return -1;
}
{
return -1;
}
for(i = 0; i < x5dsaReferenceTable.column_num; i++)
{
if(x5dsaReferenceIndex >= 0)
{
}
else
{
}
{
return -1;
}
}
{
/* we have to free the request */
return -1;
}
return 0;
}
/* ARGSUSED */
X5dsaReferenceEntry *x5dsaReferenceEntry_process_response(SNMP_session *session, SNMP_pdu *response, char *error_label)
{
int i;
error_label[0] = '\0';
{
return NULL;
}
{
return NULL;
}
if(x5dsaReferenceEntry == NULL)
{
return NULL;
}
for(i = 0; i < x5dsaReferenceTable.column_num; i++)
{
{
return NULL;
}
/* check oid and extract x5dsaReferenceIndex */
{
return NULL;
}
/* check if all x5dsaReferenceIndex are equal ??? */
/* check type */
{
return NULL;
}
{
return NULL;
}
pointer++;
}
return x5dsaReferenceEntry;
}
/***************************************************************/
{
if(x5dsaReferenceEntry == NULL)
{
return;
}
{
}
{
}
{
}
}
/***************************************************************/
{
printf("x5dsaReferenceIndex: %ld\n",
printf("x5dsaReferenceType: %s\n",
printf("x5dsaReferenceNamingContext: %s\n",
printf("x5dsaReferenceSubordinate: %s\n",
printf("x5dsaReferenceName: %s\n",
printf("\n");
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
char *
{
static char buffer[20];
switch(applOperStatus)
{
case APPL_UP:
break;
case APPL_DOWN:
break;
case APPL_HALTED:
break;
case APPL_CONGESTED:
break;
case APPL_RESTARTING:
break;
default:
break;
}
return buffer;
}
/***************************************************************/
char *
{
static char buffer[20];
switch(assocApplicationType)
{
case ASSOC_UA_INITIATOR:
break;
case ASSOC_UA_RESPONDER:
break;
case ASSOC_PEER_INITIATOR:
break;
case ASSOC_PEER_RESPONDER:
break;
default:
break;
}
return buffer;
}
/***************************************************************/
{
static char buffer[30];
switch(x5dsaReferenceType)
{
case REFERENCE_SUPERIOR:
break;
case REFERENCE_CROSS:
break;
case REFERENCE_SUBORDINATE:
break;
break;
default:
break;
}
return buffer;
}
/***************************************************************/
/***************************************************************/
/***************************************************************/
char *predefined_request_string(int predefined_id)
{
static char buffer[50];
switch(predefined_id)
{
case SYSUPTIME_REQ:
break;
case APPL_ENTRY_REQ:
break;
case ASSOC_ENTRY_REQ:
break;
case MTA_ENTRY_REQ:
break;
case MTA_GROUP_ENTRY_REQ:
break;
break;
case DSA_OPS_ENTRY_REQ:
break;
case DSA_ENTRIES_ENTRY_REQ:
break;
case DSA_INT_ENTRY_REQ:
break;
case X4MS_MTA_ENTRY_REQ:
break;
break;
break;
break;
case X4GRP_ENTRY_REQ:
break;
case X4GRP_MAPPING_ENTRY_REQ:
break;
break;
default:
break;
}
return buffer;
}
static int
{
error_label[0] = '\0';
switch(translator)
{
case TO_INTEGER:
break;
case TO_ASCII: {
return -1;
}
{
}
}
break;
case TO_STRING: {
{
return -1;
}
}
break;
case TO_OID: {
{
return -1;
}
}
break;
}
return 0;
}
/***************************************************************/
static int
{
return -1;
return -1;
return 0;
}
/***************************************************************/
static int
{
return -1;
return -1;
return 0;
}
/***************************************************************/
static int
extract_three_indexes_from_column(Oid *instance, Oid *object, int32_t *index1, int32_t *index2, int32_t *index3)
{
return -1;
return -1;
return 0;
}