See multiple scripts in attachment
Observer Apex Session login
curl -v -H "Content-Type: application/json" -H "Accept: application/json" -c cookies.txt -d "{\"session\":{\"username\": \"yourusername\",\"password\": \"yourpassword\"}}" https://apex.usa.viavi.solutions/oa/api/session
Apex Dashboards (look for dashboard id for forensics)(I have output going to txt file) (use the forensics dashboard id in the next script)
curl -v -H "Content-Type: application/json" -H "Accept: application/json" -o apex-api-dashboards-log.txt -b cookies.txt https://apex.usa.viavi.solutions/oa/api/dashboards
example Observer Apex US Forensics Dashboard - Conversations, with filter ipServer 23.218152.114 output to txt file
curl -v -H "Content-Type: application/json" -H "Accept: application/json" -o apex-api-forensics-results-log.txt -b cookies.txt -d "{\"params\":{\"dashboardId\": \"103070D8-36CC-11EA-A0EC-A44CC8945AAA\",\"businessGroupId\":\"CA364A70-8547-11EC-A0C8-8BF02B53AF18\",\"params\" : {\"filter\":\"ipServer 23.218.152.114\",\"startTime\":\"2022-03-05T00:00:00.000Z\",\"endTime\":\"2022-03-06T00:00:00.000Z\"}}}"
https://apex.usa.viavi.solutions/oa/api/dashboardResults
Gigaflow
https://gigaflowsupport.viavisolutions.com/index.php/APIs.html
How to monitor number of flow/s received by GigaFlow ?
Curl / Request : /static/health.json and retrieve "totalFlowsS"
Example : https://gigaflow.viavi.solutions/static/health.json
{"cdInformation":[{"allowedSeenIPs":300000,"devices":19,"dnsCache":201,"eventCodes":1581,"exitCodes":132,"id":0,"interfaces":392,"ipAddresses":27443,"macAddresses":98,"totalFlowsS":2832,"usersSeen":3,"usersToIP":2}],"serverInformation":{"VERSION":"18.5.1.0","allowUnlogged":true,"archiveEnabledNetflow":false,"archiveLocation":"","autoTunePostgresEnabled":false,"buildDate":"2021/11/16 18:37","buildNumber":"56","currenttime":1640090644610,"customerName":"Not Set","dscpSummariesEnabled":true,"hostname":"gigaflow.emea.viavi.solutions.localdomain","hostnameCanonical":"gigaflow.emea.viavi.solutions.localdomain","installTime":1547556428698,"ip":"127.0.0.1","memFree":106937872,"memMax":1908932608,"memPct":13,"memTotal":372244480,"memUsed":265306608,"monitorDiskDrive":"/","monitorDiskEnabled":true,"monitorDiskSpace":5,"monitorDiskSpaceFree":6,"namedTablesCount":21,"namedTablesDrops":0,"os":"Linux","preparedTablesCount":28,"product":"anuview flow","serverName":"gigaflow.emea.viavi.solutions","serverid":"c24b681a-eebd-463d-b7a7-9caf98f63815","upTime":1542571265,"versionMajor":1,"versionMinor":60}}
Please log in or sign up to comment.