/*
*
* U.S. Government Rights - Commercial software. Government users are subject
* to the Sun Microsystems, Inc. standard license agreement and applicable
* provisions of the FAR and its supplements.
*
*
* This distribution may include materials developed by third parties. Sun,
* Sun Microsystems, the Sun logo and Solaris are trademarks or registered
* trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
*
*/
/*
* Note: this file originally auto-generated by mib2c using
* : mib2c.scalar.conf,v 1.5 2002/07/18 14:18:52 dts12 Exp $
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include "sunHostPerf.h"
void
{
(void) time(&hp_cache_now);
return;
}
/* Initializes the sunHostPerf module */
void
init_sunHostPerf(void)
{
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 2, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 4, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 11, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 5, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 6, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 16, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 7, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 12, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 10, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 8, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 3, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 14, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 17, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 1, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 15, 0 };
{ 1, 3, 6, 1, 4, 1, 42, 3, 13, 18, 0 };
/* Initialize host, current time */
(void) time(&hp_cache_now);
("rsNiceModeTime",
("rsIdleModeTime",
("rsVSwapIn",
("rsDiskXfer1",
("rsDiskXfer2",
("rsIfInErrors",
("rsDiskXfer3",
("rsVSwapOut",
("rsVPagesOut",
("rsDiskXfer4",
("rsSystemProcessTime",
("rsIfInPackets",
("rsVPagesIn",
("rsIfOutErrors",
("rsUserProcessTime",
("rsIfOutPackets",
("rsVIntr",
("rsIfCollisions",
}
int
{
long cp_time;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long cp_time;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long dk_xfer;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long dk_xfer;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long if_ierrors;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long dk_xfer;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long dk_xfer;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long cp_time;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long if_ipackets;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long if_oerrors;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long cp_time;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long if_opackets;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}
int
{
long if_collisions;
/*
* We are never called for a GETNEXT if it's registered as a
* "instance", as it's "magically" handled for us.
*/
/*
* a instance handler also only hands us one request at a time, so
* we don't need to loop over a list of requests; we'll only get one.
*/
case MODE_GET:
get_rstats();
(u_char *) &if_collisions,
sizeof (if_collisions));
break;
default:
/* we should never get here, so this is a really bad error */
return (SNMP_ERR_GENERR);
}
return (SNMP_ERR_NOERROR);
}