I have both the SwisPowerShell and PowerOrion powershell modules installed. I am having a difficult time figuring out how to query for a specific PC by either computer name or IP address. The fields that I would like returned are the Node Port, and Access Point that it is connected to. I would use this to figure out the name of the switch that the PC is connected to. This information is normally located by opening up Device Tracker and searching for the computer name when using the web gui. Examples are appreciated.
So far I have only been able to return network devices, but not Windows devices using this snippet:
Get-SwisData $swis "SELECT NodeID, ObjectSubType, IPAddress, IPAddressType, DynamicIP, Caption, NodeDescription, Description, DNS, SysName, Vendor, SysObjectID, Location, Contact, StatusIcon, LastBoot, SystemUpTime, IP, IP_Address, IPAddressGUID, NodeName FROM Orion.Nodes order by nodeid"
Thanks for your help!