# Ansible-Playbook for fetch D-link switch Serial Number

**URL:** <https://forum.ansible.com/t/ansible-playbook-for-fetch-d-link-switch-serial-number/36905>\
**Category:** Ansible Project\
**Created:** [July 26, 2022, 7:43am UTC](https://forum.ansible.com/t/ansible-playbook-for-fetch-d-link-switch-serial-number/36905 "2022-07-26T07:43:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajdeep\_Rathod](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@Rajdeep\_Rathod](https://forum.ansible.com/u/Rajdeep_Rathod)\
**Post date:** [July 26, 2022, 7:43am UTC](https://forum.ansible.com/t/ansible-playbook-for-fetch-d-link-switch-serial-number/36905/1 "2022-07-26T07:43:22Z")

</div>

Hello,

I have multiple network switch. i want to get serial number using ansible play book.  
here i have tried but not succeed.

In below example i have output of so many lines i have get only Serial Number Please help me…

test.yml
