Trap Multiplexer Subagent/Manager
SNMP Configuration and Management Manual — 424777-006
12 -67
Application Source Code
/* extract the command-line parameters */
while (( argc != 0 ) && ( **argv == '-' )) <-- 35
{
opt = *( *argv + 1 );
argv++, argc--;
switch (opt)
{
case 'c' : coll_name = *argv;
argv++;
argc--;
break;
case 'f' : filt_name = *argv;
argv++;
argc--;
break;
default : fprintf (stderr,usage,whoami);
exit(1);
} /* end of case */
} /* end of while */
/* this will convert a partial filename into an external filename */
error = FILENAME_RESOLVE_ (coll_name, /* partial name */ <-- 36
(short)strlen(coll_name), /* length */
coll_name_Dxx, /* full name */
file_name_Dxx_maxlen, /* max length */
&file_name_len, /* full name length */
,,,,,
startup_default_str, /* defaults */
(short)strlen(startup_default_str)); /* length */
if (error)
{
printf ("FILENAME_RESOLVE_ returned %d\n", error);
exit (1);
}
/* this will convert an external filename into an internal filename for
passing it to the EMS routines */
error = FILENAME_TO_OLDFILENAME_ (coll_name_Dxx, /* file name */ <-- 37
file_name_len, /* length */
(short*)coll_name_Cxx); /* old filename */
if (error)
{
printf ("FILENAME_TO_OLDFILENAME_ returned %d\n", error);
exit (1);
}
/* this will convert a partial filename into an external filename */
error = FILENAME_RESOLVE_ (filt_name, /* partial name */ <-- 38
(short)strlen(filt_name), /* length */
filt_name_Dxx, /* full name */
file_name_Dxx_maxlen, /* max length */
&file_name_len, /* full name length */
,,,,,
startup_default_str, /* defaults */
(short)strlen(startup_default_str)); /* length */
Example 12-3. Sample Application Source Code
(page 12 of 14)
Содержание T9576G06
Страница 24: ...Contents SNMP Configuration and Management Manual 424777 006 xxii Tables continued ...
Страница 36: ...About This Manual SNMP Configuration and Management Manual 424777 006 xxxiv Change Bar Notation ...
Страница 38: ...Part I Installing and Configuring SNMP SNMP Configuration and Management Manual 424777 006 ...
Страница 140: ...Part II SCF for the SNMP Agent SNMP Configuration and Management Manual 424777 006 ...
Страница 208: ...Part III Troubleshooting SNMP Configuration and Management Manual 424777 006 ...
Страница 230: ...Part IV SNMP Subagents SNMP Configuration and Management Manual 424777 006 ...
Страница 340: ...TCP IP Subagent SNMP Configuration and Management Manual 424777 006 8 110 Converting Events to Traps ...
Страница 562: ...Trap Multiplexer Subagent Manager SNMP Configuration and Management Manual 424777 006 12 70 Application Source Code ...
Страница 636: ...IPX SPX Subagent G Series SNMP Configuration and Management Manual 424777 006 13 74 1012 ZISA EVT PROCESS TRAPPED ...
Страница 704: ...Part V Appendices SNMP Configuration and Management Manual 424777 006 ...
Страница 778: ...Index SNMP Configuration and Management Manual 424777 006 Index 32 Special Characters ...