Hi,

In most ways, discovery is optional -- HOWEVER, there is one exception
to that.

When a system sends an initial "I'm here, please configure me" packet,
that packet contains netconfig discovery data - giving the local network
topology.  As a result, this discovery packet is mandatory.

Below is some annotated sample output - optional things are shown with
'*' at the end of the deescription.

{                                                                               
                                                    

  "discovertype": "netconfig",  *# /Type of discovery - cannot change/*
  "description": "IP Network Configuration", /*# Human description*/
  "source": "netconfig",        */# Name of script performing the
discovery/*
  "host": "servidor",           /*# System performing the discovery*/
  "data": {                     /*# Beginning of discovery
dat*//*a*//**// /              
    "eth0": {                           /*# Name of network device*/
        "address": "00:1b:fc:1b:a8:73", /*# MAC address*/
        "carrier": true,                /*# True if it has carrier*//** */
        "duplex": "full",               /*# *//*"full" or "half"**/
        "mtu": 1500,                    /*# *//*Maximum transmission unit**/
        "operstate": "up",              /*# Operational stat*//*e
(up/down)**/
        "speed": 1000,                  /*# Speed in megabits/sec**/
        "default_gw": true,             /*# True if *//*this is the
primary interface*/
        "ipaddrs": {                    /*# Information about the IP
addresses on this interface*/
                "10.10.10.5/24":  {"brd":"10.10.10.255",  /*# Broadcast
address*/
                                   "scope":"global",      /*# Scope
(follows ipv6 conventions)*/
                                   "name":"eth0"},        /*# Name of
this *//*logical interface*/
                "fe80::21b:fcff:fe1b:a873/64":  {"scope":"link"}
        }
    },
    "lo": {
        "address": "00:00:00:00:00:00",
        "carrier": true,
        "mtu": 16436,
        "operstate": "unknown",
        "ipaddrs": {
                "127.0.0.1/8":  {"scope":"host", "name":"lo"},
                "::1/128":      {"scope":"host"}
        }
    },
    "virbr0": {
        "address": "1a:b8:75:fc:e9:37",
        "carrier": false,
        "mtu": 1500,
        "operstate": "down",
        "ipaddrs": {
                "192.168.122.1/24":     {"brd":"192.168.122.255",
"scope":"global", "name":"virbr0"}
        }
    }
  }
}


-- 
    Alan Robertson <[email protected]> - @OSSAlanR

"Openness is the foundation and preservative of friendship...  Let me claim 
from you at all times your undisguised opinions." - William Wilberforce

_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/

Reply via email to