# Utility Slot Commands # Traffic/Disk Usage Command Your monthly traffic and disk usage statistics can be viewed via shell by running `app-stats`. - Login to your service via [SSH](https://docs.ultra.cc/books/secure-shell-%28ssh%29/page/how-to-connect-to-your-ultracc-slot-via-ssh). When you have successfully logged in, execute `app-stats show` and in the right-hand column you will see disk and traffic statistics on a weekly basis, as shown below.

All traffic and disk values are presented in GB.

``` *** disk stats *** date value 7986 2023-02-20 3775 8113 2023-02-26 3463 8281 2023-03-05 3580 8449 2023-03-12 3625 8617 2023-03-19 3752 8785 2023-03-26 3372 8952 2023-04-02 3080 9120 2023-04-09 3277 *** traffic stats *** date value 7986 2023-02-20 3570 8113 2023-02-26 4224 8281 2023-03-05 182 8449 2023-03-12 430 8617 2023-03-19 760 8785 2023-03-26 1102 8952 2023-04-02 58 9120 2023-04-09 354 ``` - Traffic stats is shown accumulatively and will reset on the date specified in the [UCP](https://docs.ultra.cc/books/ultracc-control-panel-%28ucp%29/page/ultracc-control-panel-tour). - Disk stats will show currently used space in GB. ### Usage Instructions For detailed instructions on how to use the command, execute `app-stats show --help` and you will be presented with all available command switches. ``` Switches: -c, --count COUNT:int Choose number of stats you want for selected PERIOD -s, --stats STATS:{'disk', 'traffic'} Choose type of stats data -t, --type PERIOD:{'week', 'day', 'hour'} Select type of stats period ``` With the use of these switches you can customize the command to your liking. See examples below: - Show last 10 days of traffic usage: `app-stats show -s traffic -t day -c 10` - Show last 48 hours of traffic usage: `app-stats show -s traffic -t hour -c 48` - Show last 10 days of disk usage: `app-stats show -s disk -t day -c 10` - Show last 24 hours of disk usage: `app-stats show -s disk -t hour -c 24` # Assigned Ports Command

You are only allowed to use the ports that are assigned to your service.

Your Ultra.cc service comes with a range of ports that are allocated to each of the applications available for installation via the [User Control Panel](https://cp.ultra.cc). In this guide, we will show you the `app-ports` command and how to use it. - Login to your Ultra.cc service via [SSH](https://docs.ultra.cc/books/secure-shell-%28ssh%29/page/how-to-connect-to-your-ultracc-slot-via-ssh). Once you have successfully logged in to your Ultra.cc service, you may execute the following commands: - `app-ports show` – List ports and their application allocation. - `app-ports free` – List unused ports that are not currently used by any application. Furthermore, custom applications can be assigned a port that you are currently not using. For example, any port that is listed when you execute `app-ports free` can be used for a custom application of your choice. Using any port outside your allocated port range is strictly prohibited, and will put you at risk of a violating our [Fair Usage Policy](https://ultra.cc/policies/terms-of-service#fair-usage).