FortiSIEM Get CMDB Device Info

Get a Section of Information (Applications, Interfaces, Processors, Storage) About One Device for an Organization

Methodology REST API based: make an HTTP(S) request with an input XML (optional). An output XML is returne
Input URL https:///phoenix/rest/cmdbDeviceInfo/device?ip=&loadDepend=true&fields=
Input

Credentials

 Username and password of any AccelOps account for the Acme organization
Output An XML that contains the specified section discovered for the device
Options for <sectionName>

 

applications interfaces processors storages

Sample XML Output

Query: https://<AccelOps_IP>/phoenix/rest/cmdbDeviceInfo/device?ip=192.168.1.12&loadDepend=true&fields=inter faces&organization=ACME

Output: oneWindowsServerInterfaces.xml

Sample Python Code

Get the List of Monitored Devices and Attributes

Applies To

API Parameters for Enterprise

API Parameters for Multitenant

Sample XML Output

Sample Code

Sample Python Script

Applies To

Enterprise and multitenant deployments.

API Parameters for Enterprise
Methodology REST API based: make an HTTP(S) request with an input XML (optional). An output XML is returned.
Input URL https:///phoenix/rest/deviceInfo/monitoredDevices
Input Credentials  Username and password of any AccelOps account
Output  An XML that contains device name, device type, organization name and list of monitored attributes
API Parameters for Multitenant
Methodology REST API based: make an HTTP(S) request with an input XML (optional). An output XML is returned.
Input URL https:///phoenix/rest/deviceInfo/monitoredDevices
Input Credentials Username and password of Super account or Organization specific account, Organization name
Output  An XML that contains device name, device type, organization name and list of monitored attributes

Sample XML Output

 Output MonitoredDevices.txt

Sample Code

Sample Python Script

GetMonitoredDevicesByOrg

.py Script

Usage
GetMonitoredDevicesByOrg.py python GetMonitoredDevicesByOrg.py <AccelOps_IP> <user> <password> <org_name> Sample Query python GetMonitoredDevicesByOrg.py 172.16.20.210 “super/admin” “admin*1″ACME

Super_user needs to be explicitly stated in organization/user format, for example “super/admin” or “supe r/admin” instead of just “admin”.


Having trouble configuring your Fortinet hardware or have some questions you need answered? Check Out The Fortinet Guru Youtube Channel! Want someone else to deal with it for you? Get some consulting from Fortinet GURU!

This entry was posted in Administration Guides, FortiSIEM on by .

About Mike

Michael Pruett, CISSP has a wide range of cyber-security and network engineering expertise. The plethora of vendors that resell hardware but have zero engineering knowledge resulting in the wrong hardware or configuration being deployed is a major pet peeve of Michael's. This site was started in an effort to spread information while providing the option of quality consulting services at a much lower price than Fortinet Professional Services. Owns PacketLlama.Com (Fortinet Hardware Sales) and Office Of The CISO, LLC (Cybersecurity consulting firm).

Leave a Reply

Your email address will not be published. Required fields are marked *

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