Skip to content

elevenchars/cmx_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cmx_util

PHP utility for use on the UTD Constellation project.

This is not a wrapper for the Cisco CMX API.

Installing / Getting started

config.json

{
    "username" : "",
    "password" : "",
    "map_endpoint" : "",
    "location_endpoint" : ""
}

hello.php

require_once("cmx_util.php");
$myNewRequest = new CMXRequest("config.json", ip);
$resp = $myNewRequest->getResponse();

This makes a request to the CMX proxy specified in config.json. The response is an associative array containing all of the information from the proxy.

Initial Configuration

CMXUtil requires PHP >= 7.0 with curl.

Features

CMXUtil abstracts the request to the CMX proxy away from the core Constellation server code. Currently, it simply parses the data but can be modified to change the data as needed.

Configuration

All configuration for CMXUtil is done in a JSON file with the following parameters.

Key Value
username Username for the CMX Proxy
password Password for the CMX Proxy
map_endpoint Map endpoint for the CMX proxy (.../maps?)
location_endpoint Location endpoint for the CMX proxy (.../clients?)

About

Interface for UTD CMX Proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages