1. Operations
2. appliance
3. techpreview
4. monitoring
5. snmp

## appliance techpreview monitoring snmp: stats

Generate diagnostics report for snmp agent.

### Request:

#### HTTP request

GET https://{server}/rest/appliance/techpreview/monitoring/snmp/stats
No request parameters

### Response:

#### HTTP Status Code: 200

#### Representations:

- JSON
- XML

{
"value": {
"avgresponsetime": "string",
"avgvarbinds": 1,
"inasnparseerrs": 1,
"inbadcommunitynames": 1,
"inbadcommunityuses": 1,
"inbadvalues": 1,
"inbadversions": 1,
"ingenerrs": 1,
"innosuchnames": 1,
"inpkts": 1,
"intoobigs": 1,
"maxvarbinds": 1,
"outbadvalues": 1,
"outgenerrs": 1,
"outnosuchnames": 1,
"outpkts": 1,
"outtoobigs": 1,
"outtraps": 1,
"silentdrops": 1,
"sysuptime": "string",
"usmstatsdecryptionerrors": 1,
"usmstatsnotintimewindows": 1,
"usmstatsunknownengineids": 1,
"usmstatsunknownusernames": 1,
"usmstatswrongdigests": 1,
"worstresponsetime": "string",
"worstrtimelast": "string"
}
}
<?xml version="1.0" ?>
<ns0:Stats-Result xmlns:ns0="http://vmware.com/appliance/techpreview/monitoring/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<outgenerrs>1</outgenerrs>
<silentdrops>1</silentdrops>
<inbadversions>1</inbadversions>
<usmstatsunknownusernames>1</usmstatsunknownusernames>
<usmstatsnotintimewindows>1</usmstatsnotintimewindows>
<avgresponsetime>string</avgresponsetime>
<avgvarbinds>1</avgvarbinds>
<inasnparseerrs>1</inasnparseerrs>
<ingenerrs>1</ingenerrs>
<outbadvalues>1</outbadvalues>
<worstresponsetime>string</worstresponsetime>
<maxvarbinds>1</maxvarbinds>
<worstrtimelast>string</worstrtimelast>
<inbadcommunitynames>1</inbadcommunitynames>
<inbadcommunityuses>1</inbadcommunityuses>
<usmstatsdecryptionerrors>1</usmstatsdecryptionerrors>
<sysuptime>string</sysuptime>
<outtraps>1</outtraps>
<outtoobigs>1</outtoobigs>
<outnosuchnames>1</outnosuchnames>
<outpkts>1</outpkts>
<inbadvalues>1</inbadvalues>
<intoobigs>1</intoobigs>
<inpkts>1</inpkts>
<innosuchnames>1</innosuchnames>
<usmstatsunknownengineids>1</usmstatsunknownengineids>
<usmstatswrongdigests>1</usmstatswrongdigests>
</value>
</ns0:Stats-Result>

#### Response Type:

Name | Type | Description
--- | --- | ---
bold = required
value | SNMP_stats | SNMP stats.
value.sysuptime | string | System uptime
value.worstrtimelast | string | Last updated time
value.avgresponsetime | string | Average response time
value.worstresponsetime | string | Response time
value.inpkts | long | No of input packets
value.outpkts | long | No of output packets
value.usmstatsnotintimewindows | long | No of stats not in time window
value.usmstatsunknownusernames | long | No of usm stats unknown
value.usmstatsunknownengineids | long | No of usm stats unknown engine ids
value.usmstatswrongdigests | long | No of wrogn digests
value.usmstatsdecryptionerrors | long | No. of decryption errors
value.inbadversions | long | No of bad versions
value.inbadcommunitynames | long | No of bad community names
value.inbadcommunityuses | long | No of bad community uses
value.inasnparseerrs | long | No of parse errors
value.intoobigs | long | No of too bigs
value.innosuchnames | long | No of no such names
value.inbadvalues | long | No of bad values
value.ingenerrs | long | No of gen errors
value.outtoobigs | long | No out output too bigs
value.outnosuchnames | long | No of no such names
value.outbadvalues | long | No of bad values
value.outgenerrs | long | No of gen errors
value.outtraps | long | No of output traps
value.silentdrops | long | No of silent drops
value.avgvarbinds | long | No of ave:rage var binds
value.maxvarbinds | long | No of max var binds

#### Errors:

HTTP Status Code | Type | Description
--- | --- | ---
500 | error | Generic error