Dell provide an Ansible module to query IDRAC. You can use this to get information on the server. The example below fetches the tag.

pip3 install ansible ansible-lint
ansible-galaxy collection install git+,collections
pip3 install omsdk --upgrade

- hosts: localhost
    - name: Get System Inventory
        idrac_ip: ""
        idrac_user: "admin"
        idrac_password: "admin"
        validate_certs: false
      register: system_info

    - name: Debug output
        msg: "{{ system_info.system_info.System[0].ServiceTag }}"

ansible-playbook idrac.yaml

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.