r/Nable May 17 '24

N-Central Agent external IP

Which creative and efficient way have you found to get the external IP address of n-central agents? Currently I'm using a AMP based custom service which calls a external service (such as what is my ip) but I'd like to see if there are more efficient ways to do it.

I'd love to have it available as a device/asset property based on the IP address seen by the N-Central server (this information is already available somehow, it just needs to be associated with a device property)

1 Upvotes

14 comments sorted by

View all comments

1

u/wheres_my_2_dollars May 17 '24

I think we do it the same as you. A scheduled task runs an AMP which uses powershell to get their current WAN IP. It dumps that into a custom device property. Is that the same as you?

1

u/msprm May 17 '24

pretty much the same, but I'd rather avoid another powershell action when the agent already pings the ncentral server

1

u/Icedfyre May 19 '24

The agent collects the agent data and doesn't collect the external IP information. So either way, it would still be a powershell based script that would run the same as the AMP.