---
title: "How to monitor unused switch ports"
description: "Monitoring unused switch ports in OP5 Monitor involves configuring SNMP access and adding specific check commands and services. The process allows viewing detailed reports on port status, description, speed, and idle time for effective network management."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020054954-op5-monitor-how-to-monitor-unused-switch-ports/index.html"
---
## **Introduction**

This guide will describe how to use OP5 Monitor to keep track of unused switch ports on your network.

## **Prerequisites**

Before you start, please make sure of the following:

- OP5 Monitor is installed
- You have SNMP access from the OP5 Monitor server to the switch(es) you would like to monitor

## **Adding the command**

To add the new command:

1. Open up the OP5 Monitor configuration tool and click "**Commands**".
2. Add a new check command with the following data:

   ```
   command_name  check_portstatus
   ```

   ```
   command_line  $USER1$/check_portstatus -H $HOSTADDRESS$ -C $ARG1$ -v $ARG2$ -w $ARG3$ -c $ARG4$
   ```

3. Click **Apply.**

## **Adding the service**

To add the new service:

1. Open up the OP5 Monitor configuration tool.
2. Pick up the host you like to add the service to and click "**Services for this host**"
3. Add a new service like this

   ```
   Service description  Port status
   ```

   ```
   check_command        check_portstatus
   ```

   ```
   check_command_args   snmpcommunity!1!10!5
   ```

4. Click **Apply.**
5. Click **Save.**

## **View the result**

On the **Service information** page, you can find the status output for this service. It looks like this:

```
OK: 49 of 52 ports available, 1 down, click here to view the report.
```

From here you can view a report showing all ports on the host. In the report you can see the port

- description
- state
- speed
- idle time

To view the report, click on the **click here to view the report** link.


