I need a ps1 script to simply take an inventory of all layer2 & 3 nodes excluding interfaces and servers. Any help with this will be much appreciated.
You could assign a custom property to all your Layer 2/3 nodes than use the report writer to pull the data using the following data source.
Thank You for your response. This is a customization in the report that I've already made. I'm looking for a way to get this report by runing a powershell script rather than logging ino the orion console. Is there any such script or api that you can help with ?
There are lots of examples out here on Thwack about how to do this. First and foremost @KMSigma.SWI just did an awesome SolarWinds Lab (#86), completely revolved around getting started with Powershell and the Orion API. You can find it here - https://www.youtube.com/playlist?list=PLSAG2TJPvS5YIsM2X2lhdv5DTbR4HZGoC
Specifically talking about custom properties, and how to reference them in Powershell, you first have to query that data in the Orion API (via SWQL). Once you have that data in an array, you can manipulate it in many ways. Below is something I worked on some time ago which is really a conversion of @adatole's original work within Perl. It gives an example of querying custom properties and working with them in powershell.
https://thwack.solarwinds.com/t5/NPM-Documents/Automatically-tweak-Polling-Intervals-with-Alert-and-PowerShell/ta-p/520330
Here's some helpful links to reference for the Orion SDK...
Orion SDK Wiki: https://github.com/solarwinds/OrionSDK/wiki
Orion SDK Download: https://github.com/solarwinds/OrionSDK/releases
Best of luck in your endeavors...