# Network switch total uptime in minutes

**URL:** <https://forum.ansible.com/t/network-switch-total-uptime-in-minutes/32418>\
**Category:** Ansible Developer\
**Created:** [March 9, 2020, 8:44am UTC](https://forum.ansible.com/t/network-switch-total-uptime-in-minutes/32418 "2020-03-09T08:44:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasir\_Nasir](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Post date:** [March 9, 2020, 8:44am UTC](https://forum.ansible.com/t/network-switch-total-uptime-in-minutes/32418/1 "2020-03-09T08:44:42Z")

</div>

Hi,

i want to get the total uptime of switch in minutes,  
i have tried the below command for it but it gives me in days, hours, and minutes but i would need it only in **minutes** :  
i am currently using below module for it

- name: Check device uptime  
ios\_command:  
commands:
- show ver | i uptime  
register: uptime

please help me on this.

Regards,  
Syed Nasir

---

<div class="post-metadata">

**Author:** ![Nasir\_Nasir](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Post date:** [March 10, 2020, 11:43am UTC](https://forum.ansible.com/t/network-switch-total-uptime-in-minutes/32418/2 "2020-03-10T11:43:45Z")

</div>

Hi All,

if i can get any reply on this.

Reagrds,  
Nasir

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [March 10, 2020, 12:02pm UTC](https://forum.ansible.com/t/network-switch-total-uptime-in-minutes/32418/3 "2020-03-10T12:02:22Z")

</div>

Hello,

please ask support questions in the correct place:  
[https://groups.google.com/forum/#!topic/ansible-project/](https://groups.google.com/forum/#!topic/ansible-project/)

This mailing list is for development discussions.

Thanks,  
Felix
