{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":1099,"path":"api-reference/server-api-reference/c_SNMPGatherDocPartsAPI.md","title":"SNMPGatherDocParts - Global","bundle":null,"doc_type":null,"release":"australia","body":"\n# SNMPGatherDocParts- Global\n\nThe SNMPGatherDocParts script include provides methods to handle the gathering of parts of an SNMP response document for JavaScript SNMP sensors.\n\nUse this script include in a discovery script when you need to gather the parts of an SNMP response document.\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## SNMPGatherDocParts - gather\\(String doc, Object probe\\)\n\nReturns the given XML document with any data gathered by prior SNMP probes.\n\n|Name|Type|Description|\n|----|----|-----------|\n|doc|String|The XML document for this sensor|\n|probe|Object|The probe instance|\n\n|Type|Description|\n|----|-----------|\n|String|The XML document with the gathered data.|\n\n"}}