You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hopefully, there is an option to add also a remote script that can be executed to identify this on Hardware devices.
Made a start on an ansible script. However this is far from compleate and will only give you some details. But it is at least something.
---
#### Save file as: GetInfo.yml## Run: ansible-playbook GetInfo.yml -e'target=10.0.0.1'## The scipt will ask for the user name / password to login to the unit, and execute the tasks via SSH.##
- hosts: localhostconnection: localgather_facts: notasks:
- name: add hosts from extra-vars to "temp" groupadd_host:
groups: tempname: "{{ target }}"
- name: Get Fortigate infohosts: tempcollections:
- fortinet.fortiosconnection: sshvars_prompt:
- name: ansible_userprompt: userprivate: no
- name: ansible_passwordprompt: passtasks:
- name: "Get-Info"raw: | fnsysctl ls -la /bin # fnsysctl ls -la /data/bin # config global # diagnose sys filesystem last-modified-files # diagnose sys tcpsock | grep httpsdregister: note
- debug:
msg: "{{ note.stdout_lines }}"
I'm not that good with code, however afther this you need to create some kind of wrapper that will filter the output.
Hope to help at least someone witht the code and hoppefully find someone who can update it with a wrapper 🥇
The text was updated successfully, but these errors were encountered:
Hi,
Hopefully, there is an option to add also a remote script that can be executed to identify this on Hardware devices.
Made a start on an ansible script. However this is far from compleate and will only give you some details. But it is at least something.
Output generated on a test unit:
I'm not that good with code, however afther this you need to create some kind of wrapper that will filter the output.
Hope to help at least someone witht the code and hoppefully find someone who can update it with a wrapper 🥇
The text was updated successfully, but these errors were encountered: