[Orca-users] network device aggregation, Solaris, Orca

chris lo mychrislo at gmail.com
Wed Oct 6 21:39:18 PDT 2010


I think I had this working from a colleague. In fact, you can "dig" into the
SVN. the SVN does support newer interfaces as well as aggr interface.


*** kstat.se.20080623   Thu Mar  1 03:16:13 2007
--- kstat.se    Mon Jun 23 14:55:24 2008
***************
*** 2364,2369 ****
--- 2364,2396 ----
    uint32_t macrcv_errors;
  };

+ //kstat struct ":aggr::aggr[0-9]*:" ks_aggr_network {
+ kstat struct "*aggr" ks_aggr_network {
+     int    number$;        // linear counter
+     string name$;          // name of interface
+     int    instance$;      // instance number
+
+     uint64_t ifspeed;
+     uint32_t multircv;
+     uint32_t brdcstrcv;
+     uint32_t multixmt;
+     uint32_t brdcstxmt;
+     uint32_t norcvbuf;
+     uint32_t ierrors;
+     uint32_t noxmtbuf;
+     uint32_t oerrors;
+     uint32_t collisions;
+     uint32_t rbytes;
+     uint32_t ipackets;
+     uint32_t obytes;
+     uint32_t opackets;
+     uint64_t rbytes64;
+     uint64_t ipackets64;
+     uint64_t obytes64;
+     uint64_t opackets64;
+     uint32_t unknowns;
+ };
+
  // END OF NETIF STRUCTURES

  kstat struct ks_interrupts {


# diff -c netif.se.20080623 netif.se
*** netif.se.20080623   Thu Mar  1 03:16:14 2007
--- netif.se    Mon Jun 23 14:57:50 2008
***************
*** 47,53 ****
  #define NETIF_BGE   27
  #define NETIF_FJGI  28
  #define NETIF_NGE   29
! #define NETIF_TYPES 30

  // possible values for ifspeed (may also be ifspeed from kstat)
  #define TEN_MEGABIT       10000000
--- 47,54 ----
  #define NETIF_BGE   27
  #define NETIF_FJGI  28
  #define NETIF_NGE   29
! #define NETIF_AGGR  30
! #define NETIF_TYPES 31

  // possible values for ifspeed (may also be ifspeed from kstat)
  #define TEN_MEGABIT       10000000
***************
*** 122,127 ****
--- 123,129 ----
      ks_bge_network  if_bge;   // Broadcom gigabit ethernet
      ks_fjgi_network if_fjgi;  // FSC Gigabit Ethernet
      ks_nge_network  if_nge;   // Whatever is on the AMD boxes now
+     ks_aggr_network if_aggr;  // Link Aggregations

      if (initialized == 0) {
        count = -1;
***************
*** 275,280 ****
--- 277,287 ----
          count++;
        }
        if_max[NETIF_NGE] = count;
+       for(refresh$(if_aggr); if_aggr.number$ != -1;
+           if_aggr.number$++, refresh$(if_aggr)) {
+         count++;
+       }
+       if_max[NETIF_AGGR] = count;

        if_count = count + 1;
        initialized = 1;
***************
*** 811,816 ****
--- 818,840 ----
        ifspeed        = if_nge.ifspeed;
        iftype         = NT_CSMACD;
        break;
+     case NETIF_AGGR:
+       if_aggr.number$ = number$ - (if_max[NETIF_NGE] + 1);
+       refresh$(if_aggr);
+       name$          = if_aggr.name$;
+       ipackets       = if_aggr.ipackets;
+       ierrors        = if_aggr.ierrors;
+       opackets       = if_aggr.opackets;
+       oerrors        = if_aggr.oerrors;
+       collisions     = if_aggr.collisions;
+       nocanput       = 0;
+       defer          = 0;
+       nocarrier      = 0;
+       ooctets        = if_aggr.obytes64;
+       ioctets        = if_aggr.rbytes64;
+       ifspeed        = if_aggr.ifspeed;
+       iftype         = NT_CSMACD;
+       break;
      }
      if (opackets != 0) {
        collision_rate = (collisions * 100.0) / opackets;


SVN:
http://setoolkit.svn.sourceforge.net/viewvc/setoolkit/trunk/se/include/kstat.se?view=markup&pathrev=100

2010/9/2 Hudes, Dana <hudesd at hra.nyc.gov>

>  The language is C-like but is not C. The orca site has a link to the docs
> on the Symbel language
>
> ------------------------------
>  *From*: orca-users-bounces+hudesd=hra.nyc.gov at orcaware.com<orca-users-bounces+hudesd=
> hra.nyc.gov at orcaware.com>
> *To*: ORCA users <orca-users at orcaware.com>
> *Sent*: Wed Sep 01 12:09:24 2010
>
> *Subject*: Re: [Orca-users] network device aggregation, Solaris, Orca
>
>
> I looked at /opt/csw/lib/orcallator.se.  I think you are right that at
> least part of the problem is here.  It looks a lot like C.
>
> I am using e1000g's without needing to modify the install.
>
> I use the packages from OpenCSW and do not have a development environment
> available.
>
> Thanks for the info,
> Glen
>
> >>> "Hudes, Dana" <hudesd at hra.nyc.gov> 8/26/2010 6:48 PM >>>
> orcallator can report any kstat, ndd or SNMP mIB
> You would also need to modify the orcallator.cfg used by orca so it
> processes the informatio gathered.
>
> I have to do this for nxge, e1000g and whatever the thing they call a
> trunked interface. Which will have a higher speed.
>
> I haven't time to get to it for awhile.
>
>  ------------------------------
> *From*: orca-users-bounces+hudesd=hra.nyc.gov at orcaware.com<orca-users-bounces+hudesd=
> hra.nyc.gov at orcaware.com>
> *To*: Glen Gunselman <ggunselm at emporia.edu>
> *Cc*: blair at orcaware.com <blair at orcaware.com>; orca-users at orcaware.com <
> orca-users at orcaware.com>
> *Sent*: Thu Aug 26 17:43:19 2010
> *Subject*: Re: [Orca-users] network device aggregation, Solaris, Orca
>
>  From what I’ve seen on my systems, orca won’t report on either the
> aggregate or separate interfaces once the aggregate is created.
>
>
>
> I suspect that there are changes that can be made to orcallater.cfg, but I
> haven’t pursued anything and don’t have the bandwidth anyway.
>
>
>
> *From:* orca-users-bounces+leo.mccoy=kbm1.com at orcaware.com [mailto:
> orca-users-bounces+leo.mccoy <orca-users-bounces%2Bleo.mccoy>=kbm1.com@
> orcaware.com] *On Behalf Of *Glen Gunselman
> *Sent:* Thursday, August 26, 2010 3:26 PM
> *Cc:* blair at orcaware.com; orca-users at orcaware.com
> *Subject:* [Orca-users] network device aggregation, Solaris, Orca
>
>
>
>
>
> I'm preparing to aggregate two (maybe three) network ports on a X4500
> running Solaris 10 (it's a NetBackup master).  These are e1000g nics.
>
>
>
> Do I need to make any changes to orcallator.cfg?
>
>
>
> Will orca continue reporting on the individual network interfaces or will
> it report on the aggregate - aggr1?
>
>
>
> Thanks for any insight,
>
>
>
>
>
> Glen Gunselman
> Systems Software Specialist
> TCS
> Emporia State University
>
> _______________________________________________
> Orca-users mailing list
> Orca-users at orcaware.com
> http://www.orcaware.com/mailman/listinfo/orca-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20101007/3b896f1a/attachment.html>


More information about the Orca-users mailing list