On solaris interface discovery doesn't seem to pickup interfaces in deprecated mode. Is this by design or just by luck?
If its by design it is not desirable in all situations.
eg if you have a sun cluster with zones and the cluster manages the zones ips, the interfaces appear as deprecated, thus no network interfaces are picked up
eg
root@[~] ifconfig -a
lo0:3: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0:4: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DE PRECATED,IPv4,FIXEDMTU> mtu 1500 index 2
inet 10.44.126.69 netmask ffffff00 broadcast 10.44.126.255
igb0:5: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DE PRECATED,IPv4,FIXEDMTU> mtu 1500 index 3
inet 10.44.19.110 netmask ffffff80 broadcast 10.44.19.127
root@mk-zabbix-1[~] /opt/zabbix/bin/zabbix_get -k net.if.discovery -s 10.44.19.110
{
"data":[]}
on a non clustered zone
# /home/cscott >ifconfig -a
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bnx0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.103.237.160 netmask ffffff00 broadcast 10.103.237.255
# zabbix_get -k net.if.discovery -s 10.103.237.160
{
"data":[
{
"{#IFNAME}":"lo0"},
{
"{#IFNAME}":"bnx0"}]}
If its by design it is not desirable in all situations.
eg if you have a sun cluster with zones and the cluster manages the zones ips, the interfaces appear as deprecated, thus no network interfaces are picked up
eg
root@[~] ifconfig -a
lo0:3: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0:4: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DE PRECATED,IPv4,FIXEDMTU> mtu 1500 index 2
inet 10.44.126.69 netmask ffffff00 broadcast 10.44.126.255
igb0:5: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DE PRECATED,IPv4,FIXEDMTU> mtu 1500 index 3
inet 10.44.19.110 netmask ffffff80 broadcast 10.44.19.127
root@mk-zabbix-1[~] /opt/zabbix/bin/zabbix_get -k net.if.discovery -s 10.44.19.110
{
"data":[]}
on a non clustered zone
# /home/cscott >ifconfig -a
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bnx0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.103.237.160 netmask ffffff00 broadcast 10.103.237.255
# zabbix_get -k net.if.discovery -s 10.103.237.160
{
"data":[
{
"{#IFNAME}":"lo0"},
{
"{#IFNAME}":"bnx0"}]}