Portnox Switch Commander

In this topic, you will learn about Portnox Switch Commander, a free desktop tool that lets you check and change switch ports from many vendors in one interface.

Warning:

Portnox Switch Commander is a free tool created by Portnox engineers to complement Portnox Cloud. It is not an integral part of the Portnox Cloud product.

As such, it is subject to the following limitations:

  • It is provided free of charge and on an “as-is” basis.
  • It is not supported by Portnox Technical Support.
  • It is not covered by any Portnox Cloud service-level agreement (SLA), support contract, or product warranty.
  • Portnox does not guarantee its fitness for a particular purpose, correctness, or continued maintenance.
  • Use of this tool is at your own risk.

Portnox Switch Commander is available for Windows 10 and later (x64). To get it, fill out the form on the Switch Commander download page.

What is Portnox Switch Commander?

In this section, you will learn what Portnox Switch Commander does and what it needs to run.

Portnox Switch Commander stores the connection details of your switches in an encrypted database. It reads the ports of each switch and shows them in one table. You can use it to check and change ports without logging in to each switch separately.

Portnox Switch Commander main window

Portnox Switch Commander can do the following:

  • Connect to switches using SNMP v1, SNMP v2c, SNMP v3, web login, Telnet, or SSH.

  • Show all interfaces of a switch with their status, VLANs, and connected devices.

  • Enable or disable ports.

  • Assign ports to a VLAN.

  • Run actions on several ports at once.

  • Log each operation in detail.

Portnox Switch Commander needs no installation. Download the file and run it. It needs the following:

  • Windows 10 or later (x64)
  • A 1 GHz processor
  • 2 GB of memory
  • 200 MB of free disk space
  • Microsoft Visual C++ 2012 Redistributable (x64). If it’s missing when you run Portnox Switch Commander, a wizard opens and lets you download it.

Setting up the database

In this section, you will learn how to protect the database that stores your switch credentials.

The database stores the IP addresses and credentials of all your switches. Portnox Switch Commander asks for a database password when you run it for the first time.

Warning:
You can’t recover the database password. If you lose it, you lose access to all stored switch details.
  1. Run Portnox Switch Commander.
  2. Enter a strong password in the Password and Confirm Password fields.

    The Do not require a password. (Not Recommended) option leaves the database without a password. Anyone with access to your computer can then read your switch credentials.

  3. Click on the OK button.

    The main window opens. The status bar shows the name of the database file, for example, SwitchCommander.default.db.

To manage the database later, use the Database section of the Options tab:

  • Save As...: saves the database to a new file
  • Create New...: creates an empty database
  • Change Password: changes the database password

Adding a switch

In this section, you will learn how to add a switch and its credentials to Portnox Switch Commander.

Turn on the management protocol you want to use (SNMP, web login, Telnet, or SSH) on the switch. For instructions, see the documentation of your switch.

Port actions over SNMP need write access. Some devices offer read-only SNMP access only, for example, Ubiquiti UniFi devices. Portnox Switch Commander can read the ports of such devices but can’t change them.

  1. In the Switch tab, click on the Add/Update Switch button.

    Add/Edit Switch dialog

  2. Select the Add New Switch option and enter the IP address of the switch.

    To check that your computer can reach the switch, click on the Ping button. The dialog shows OK if a device responds. Make sure that the IP address belongs to the switch and not to another device.

  3. Enter the credentials for the protocol you want to use.
    • SNMP v1 or v2c: Select the SNMP ver 1/2c option. Enter the community strings in the Read Community and Write Community fields. Select v1 or v2c in the SNMP Version field.

    • SNMP v3: Select the SNMP version 3 option. Enter the User Name, and select the Authentication Protocol and Privacy Protocol with their passwords.

    • Web login: In the Web Login section, enter the Web User, Password, and Http Port. Select Use HTTPS if the switch uses HTTPS.

    • Telnet or SSH: In the Telnet/SSH Login section, enter the CLI User and Password. Select Use SSH to use SSH instead of Telnet.

  4. In the Switch configuration section, select the vendor of the switch in the Brand Name field and the model in the Model field.

    If your model isn’t listed, select the option that starts with 0, for example, 0 (Any).

  5. Optional: Select the format of the port names in the Access Port Name Format field.

    Portnox Switch Commander uses this format to find the access ports of the switch. Only access ports can be changed with port actions. For many switches, the brand profile finds the access ports without a format. Leave the field empty at first.

    If the probe reports There are no access ports, come back to this dialog and select a format. To find the port names of your switch, read the Description column after the probe, or check the web interface or CLI of the switch.

    Port names look like Typical switches Select the format that starts with
    ge-0/0/9 or 1/1/9 Juniper EX, Aruba CX, Ruckus ICX (?<UNIT1>\d+)\/(?<UNIT2>\d+)\/
    GigabitEthernet1/0/9 or TenGigabitEthernet1/1/1 Cisco Catalyst (full names), HPE Comware (Ethernet|gi|te|eth)
    1/g9 or 1/e9 Dell PowerConnect (older models) (?<Module>\d+)\/[e|g]+
    Gi1/0/9 or Te1/1/1 Cisco Catalyst stackable switches (short names), Dell N-Series (Gi|Te|Eth)
    Port9 Smart and entry-level switches, for example, TP-Link and D-Link Port(?<PORT>\d+)
    1/A9, 1/9, or Gi0/9 HPE ProCurve and Aruba OS-S, Cisco Catalyst standalone switches (?<UNIT1>[A-Z]{0,1}\d+)\/(?<PORT1>
    Unit: 1 Slot: 0 Port: 9 Gigabit Broadcom FASTPATH switches, for example, Netgear and Dell N-Series Slot\:\s+(?<UNIT>\d+)\s+Port

    After the next probe, check the Access Port column. If your ports show Yes, the format is correct.

  6. Click on the Add button, then on the Done button.

    If a required field is empty, a red message appears at the bottom of the dialog.

To change a switch, open the dialog again, click on the Select IP option, and select the switch. Make your changes, then click on the Update button. To remove the switch, click on the Delete button.

Probing a switch

In this section, you will learn how to read the ports of a switch.

  1. In the Properties section of the Switch tab, select the switch in the IP field.
  2. Click on the Probe button.

    If you aren’t sure which model to use, click on the Probe All Models button instead. It probes the switch once with each model of the selected brand.

    A probe can take a minute or more. When it finishes, the ports table lists all interfaces of the switch. The Output panel ends with probing succeeded or probing failed.

The most important columns of the ports table are:

  • Description: the interface name
  • Status: whether the port is up or down
  • VLAN: the VLAN number and name of the port
  • Unit and Number: the switch number in a stack and the port number
  • IF Type: the SNMP interface type, for example, 6 for Ethernet
  • Access Port: whether you can change the port with port actions
  • Is Trunk and Uplink: whether the port is a trunk or uplink port
  • Devices: the MAC addresses of connected devices

Select a port to see its details in the panel below the table.

After a probe, the Exlusive field in the Add/Edit Switch dialog lists the interfaces that aren’t access ports, for example, VLAN interfaces. You can’t edit this field.

Changing ports

In this section, you will learn how to enable, disable, and assign VLANs to switch ports.

Probe the switch first. You can change access ports only.

Warning:
Don’t disable or change the VLAN of the port that connects the switch to your network. If you do, you lose the connection to the switch.
  1. Select one or more ports in the ports table.
  2. In the Enforce Action section, select the action in the Action field.
    • Enable Port
    • Disable Port
    • Set Port Vlan: also select the VLAN in the VLAN field
  3. Click on the Execute Action button.

    The Actions tab shows the result. If the Reprobe after port action option is selected in the Options tab, Portnox Switch Commander probes the switch again and updates the table.

You can also right-click on the selected ports and select Enable Port, Disable Port, or Set Vlan....

Analyzing results

In this section, you will learn how to use the Output and Actions panels to analyze probes and port actions.

  • The Output tab logs each probe and action with its errors, warnings, and hints. The first lines show the protocol used, for example, SNMPv: v2c, and the connection status.

  • The Actions tab lists each operation, for example, connect or enable, with its error, warning, and hint counts. Select an operation to see its details below the list.

  • To highlight text in the log, type it in the search field at the top of the panel. To clear the search field, click on the eraser icon next to it.

  • To clear both panels, click on the Clear Outputs & Commands button in the Switch tab.

Common results:

  • connectFailed within a fraction of a second: the switch refused the request or never got it. Check that the IP address belongs to the switch, that the protocol and SNMP version are correct, and that SNMP is on.

  • There are no access ports: no interface matches the port naming scheme. Select a format in the Access Port Name Format field.

  • An action fails with Err: 1: check that the switch allows write access.

Changing the look

In this section, you will learn how to change the appearance of Portnox Switch Commander.

Use the View tab:

  • Skins: select a ready-made color theme. The first skin in the list is a vector skin. When you select it, you can adjust its colors in the Plate section.

  • Show Filter Row: adds a filter row to the ports table
  • Show Vertical Lines and Show Horizontal Lines: show or hide grid lines in the ports table