a month ago
I am trying to retrieve the switch port an asset is plugged into.
Using the networks.connection.key already gives me network switch along with the SnmpInfos.
What I am missing is the lookup of switch port by MAC, which appearently exists on the Webpage:
query getNetworkInformation{
...
snmpAssetMacsByMac {}
...
}
How would I do this in a proper GraphQL query against the Data API?
a month ago
Hello adn77,
At this moment we are not offering the possibility to scan network devices through API calls. Our current SNMP scans are based on a direct scan of the device with credentials.
We are working on initiatives to scan with custom scripts, this will be for 2025!
a month ago
I was actually trying to retrieve the same information that is displayed on the asset detail page. (The scan already took place)
When I use the webinterface in a browser, I was comparing the XHRs with the documented API calls. Hence the question if the getNetworkInformation can be used in GraphQL.
Merry Christmas by the way 🙂
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now