cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
adn77
Engaged Sweeper

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?

2 REPLIES 2
FrankSc
Lansweeper Tech Support
Lansweeper Tech Support

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!

adn77
Engaged Sweeper

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 🙂

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now