Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 2

Table of Contents

*(Under Review for V2)

...

Introduction

As at 1.12.6 we have introduced the concept of Networks. The Blessed Subnets feature uses the data available in Networks.

How Does it Work?

As we run Discoveries and collect device results we populate the list of networks. The Blessed The blessed Subnets  feature feature uses this list of networks to only accept data from devices on those networks.

...

To make another network go to menu : Manage -> Admin -> Networks -> Create Network. Provide a name and an optional description.

IMPORTANT - The network name should be a slash subnet address addrress like 192.168.1.0/24. No spaces between the slash and numbers. It should be a valid subnet address. This string is what is tested against when using Blessed Subnets.

Image Removed

 

Image Removed

 Image Added

View Network Details

Go to menu : Manage -> Admin -> Networks -> List Networks.

Image Added

You will see a list of available networks. You can view a

...

network by clicking on the

...

it's ID (in green). You can also edit or delete

...

the network.

You will also see a list of the devices in that particular network.

Image Added

 

Image Removed

 

Database Schema
 

Code Block
themeEclipse
languagetext
Create Table: CREATE TABLE `networks` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL DEFAULT '',
  `network` varchar(200) NOT NULL DEFAULT '',
  `org_id` int(10) unsigned NOT NULL DEFAULT '1',
  `description` text NOT NULL,
  `edited_by` varchar(200) NOT NULL DEFAULT '',
  `edited_date` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

Example Database Entry

Networks are stored in the database in the "networks" table. A typical entry will look as below.

...

themeEclipse
languagetext

...

 

         id: 5
       name: 192.168.1.0/24

...

description: 
  edited_by: auto-generated by process_component
edited_date: 

...

2016-

...

07-29 

...

13:

...

51:

...

03

API / Web Access?

You can access the /networks collection using the normal Open-AudIT JSON based API. Just like any other collection. Please see the API documentation for further details.

...

Request Method
ID
Action
Resulting Function
URL Example
Notes
GETncreatecreate_form/networks/createDisplays a standard web form for submission to POST /networks.
GETyupdateupdate_form/networks/{id}/updateShow the networks details with the option to update attributes using PATCH to /networks/{id}