---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# SNMPGatherDocParts - Global

# SNMPGatherDocParts - Global {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The SNMPGatherDocParts script include provides methods to handle the gathering of parts of an SNMP response document for JavaScript SNMP sensors.

Use this script include in a discovery script when you need to gather the parts of an SNMP response document.

## SNMPGatherDocParts - gather(String doc, Object probe) {#ariaid-title2}

Returns the given XML document with any data gathered by prior SNMP probes.
{#r_SGDP-gather_S_O__table_d24_fsg_xt__entry__3}

| Name | Type | Description |
|-|-|-|
| doc | String | The XML document for this sensor |
| probe | Object | The probe instance |
[Table 1. Parameters]

{#r_SGDP-gather_S_O__table_d24_fsg_xt} {#r_SGDP-gather_S_O__table_e24_fsg_xt__entry__2}

| Type | Description |
|-|-|
| String | The XML document with the gathered data. |
[Table 2. Returns]

{#r_SGDP-gather_S_O__table_e24_fsg_xt}

