The SolarWinds Switch Port Mapper remotely discovers the devices connected to each port on a switch or hub. Additionally, Switch Port Mapper
discovers the MAC address, IP address, and hostname of connected devices, as well as details about each port.
One of the most common tasks performed by network engineers is identifying the port on which a specific device is connected on a switch. For
example, a policy has been enacted that consolidates physical servers to virtual servers. A Windows server has just been transferred to a virtual
location and the remaining physical server needs to be disconnected from the switch, and then the port needs to be disabled to be compliant with
the new policy. Assuming the cables connected to the switch are not labeled, Switch Port Mapper is an easy way to identify the port.
| Need | Item |
|---|---|
| Operating System | Install on a 32-bit or 64-bit edition of one of the following operating systems:
|
| .NET Framework | Microsoft .NET Framework 3.5 SP1 or later. |
| Hard Drive space | 100MB |
Install the SolarWinds Switch Port Mapper application by running the SwitchPortMapper.msi program.
Notes:
SwitchPortMapper.msi).You will be prompted to license the product the first time you run Switch Port Mapper. Complete the following procedure to enable your software license key.
Complete the following procedure to customize how Switch Port Mapper works and displays results.
| Setting | Description |
|---|---|
| Use GetBulk | This is a feature of SNMPv2 that allows a faster/better way of getting large amounts of data at one time from the target device's SNMP agent. SolarWinds recommends keeping this turned on unless your device's SNMP agent only supports SNMPv1 or does not fully support SNMPv2. |
| Get Extended VLANs | Allows Switch Port Mapper to get information for VLANs outside the default VLAN ranges. It is best to leave this setting enabled. |
| Layer 3 Use GetBulk | When using a separate device to provide the Layer 3 information you can control the GetBulk setting independently. |
| Combine rows with identical values | Rows with identical values are collapsed together. |
| Only Show interfaces with MACs on them | This option limits the results to interfaces with discovered MAC addresses. |
| Hide Cisco Trunk Ports | Enabling this option removes Cisco trunk ports from the results table. |
| MAC Address Display Settings | Select to display MAC addresses in uppercase or lowercase. |
| Setting | Description |
|---|---|
| SNMP Timeout | The amount of time Switch Port Mapper waits for an SNMP query to return. If you are getting some data but are failing to get VLAN information try raising the timeout value significantly and then map the ports again. If it succeeds in getting all the information you may then reduce the timeout until you find a value that works in your environment. |
| SNMP Retry | The number of times Switch Port Mapper will retry an SNMP request if it fails. |
Port mapping is done by discovering and correlating port information to MAC address and IP address information. The MAC and IP address information
is discovered through a layer 3 device such as a router or server directly connected to the same subnet as the switch or hub.
Switches and hubs that support the BRIDGE-MIB can be mapped. If you are not sure if your device supports the BRIDGE-MIB, try to use the tool. Many
devices support this MIB. Device details for Switches and Hubs that do not support BRIDGE-MIB cannot be discovered.
Note: If you have SolarWinds Toolset you can use the Ping Sweep tool to sweep the subnet before running Switch Port Mapper to improve the details of the mapping by pre-loading the ARP table of the router. For more information, see �Using Ping Sweep� in the SolarWinds Toolset Administrator Guide.
Q. Why don't I see IP addresses or host names for a device?
A. It is possible the device does not appear within the ARP table of the router or server you specified. When this occurs, Switch Port Mapper will
be unable to correlate the MAC address to an IP address and host name. The ARP entry for this device may have expired or the device may be off or unreachable.
Q. Why do I see multiple devices connected to the same port?
A. A hub is most likely connected to the switch and multiple devices directly connected to the hub.
Q. Why don't I see the MAC addresses for non-default VLANs when using SNMPv3 on Cisco switches?
A. You must add the context for each VLAN to the snmp-server group on your device or Switch Port Mapper will not be able to read
the Bridge-MIB for each VLAN. To add visibility to your VLAN bridging table, add similar statements from the following examples to your configuration:
snmp-server group MyGroup v3 priv context vlan-2 read myview
snmp-server group MyGroup v3 priv context vlan-3 read myview
snmp-server group MyGroup v3 priv context vlan-4 read myview
Credentials can be saved for later use enabling you easily access credentials for your network devices.
SNMPv1/2c from the Type list in the Credential Details section, and then type a name for your credential.communityString@VLAN# where VLAN# is the number of the VLAN you want to connect to. For example,
to scan VLAN 2 using the public community string, type public@2.
SNMPv3 from the Type list, and then specify the appropriate information. You can reference your device's configuration setup for the appropriate SNMPv3 authorization settings:
The following section describes how to run Switch Port Mapper using the command line interface.
[Program Files]\SolarWinds\SwitchPortMapper.SwSpmCmd.exe and use the following parameters to specify how the tool should be run:
| Parameter | Description |
|---|---|
/? | Displays all available parameters and syntax. |
/Switch IP | The name or the IP Address of the switch to map. |
/switch community | The community string or credential name to be used when communicating with the switch. |
/arp ip | Layer 3 device name or IP address when using a switch that does not support Layer 3. |
/arp community | Community string or credential name for the layer 3 device when present. |
/scommv=<1|2> | Specifies the SNMP version (1 or 2) used by the switch. |
/arpcommv=<1|2> | Specifies the SNMP version (1 or 2) used by the Layer 3 device when present. |
/showraw | Shows all data retrieved from the devices. |
/xml | Show output in XML format instead of fixed with. This is useful for scripting. |
/nostatus | Hides the status messages in the output. |
/nodns | Prevents a reverse DNS query on found IP addresses. This speeds up the process. |
/nologo | Hides the copyright information. |
/macaddrlowercase | Sets the MAC address output to lowercase. |
/log | Displays additional log information. |
/exvlan | Retrieves extended VLAN information. |
Support for Switch Port Mapper is available through the following:
Copyright 1995-2011 SolarWinds, Inc. All rights reserved worldwide. No part of this document may be reproduced by any means nor modified, decompiled, disassembled, published or distributed, in whole or in part, or translated to any electronic medium or other means without the written consent of SolarWinds. All right, title and interest in and to the software and documentation are and shall remain the exclusive property of SolarWinds and its licensors. SolarWinds Orion�, SolarWinds Switch Port Mapper�, and SolarWinds Toolset� are trademarks of SolarWinds. SolarWinds� and the SolarWinds logo are registered trademarks of SolarWinds. Microsoft Windows Server, Windows Vista, and Windows XP are registered trademarks or trademarks of Microsoft Corporation in the United States and other countries. All other trademarks contained in this document and in the Software are the property of their respective owners.
SOLARWINDS DISCLAIMS ALL WARRANTIES, CONDITIONS OR OTHER TERMS, EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE, ON SOFTWARE AND DOCUMENTATION FURNISHED HEREUNDER INCLUDING WITHOUT LIMITATION THE WARRANTIES OF DESIGN, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SOLARWINDS, ITS SUPPLIERS OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES, WHETHER ARISING IN TORT, CONTRACT OR ANY OTHER LEGAL THEORY EVEN IF SOLARWINDS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.