SUMMARY: Network Monitoring of T2000 with SE (SymbEL) Toolkit 3.4

From: Andre Hilgers <Andre.Hilgers_at_mobilcom.de>
Date: Thu Aug 03 2006 - 01:34:28 EDT
The problem:
> ___________________________________________
> Von: 	Andre Hilgers
> Gesendet:	Mittwoch, 2. August 2006 08:18
> An:	'sunmanagers@sunmanagers.org'
> Betreff:	Network Monitoring of T2000 with SE (SymbEL) Toolkit 3.4
>
> Hello,
> I like to find out how busy the network interfaces of a T2000 are. OS
> is Solaris 10.
>
> I try to use the SE Toolkit 3.4 and the predefined example nx.se but
> it didn't work. There is no output for the network interfaces ipge0 to
> ipge3.
>
> In the FAQ of SE Toolkit is a section: "Q: SE doesn't see my network
> interfaces. Is there a way to add it on the fly?".
> I tried to do this workaround (edit kstat.se and netif.se) but I
> failed.
>
> Does anybody monitor the network interfaces of a T2000 with SE
> Toolkit?
> How do I have to fix the problems with ipge0 to ipge3 to make them
> visible?
>
> I will summarize.
> Thanks!
>
>
The solution (many thanks to Alex Madden!):

# diff kstat.se.orig kstat.se
2317a2318,2452
> // IPGE
> kstat struct "ipge:" ks_ipge_network {
>     int    number$;        // linear counter
>     string name$;          // name of interface
>     int    instance$;      // instance number
>
> ulong_t adv_cap_1000fdx;
> ulong_t adv_cap_1000hdx;
> ulong_t adv_cap_100T4;
> ulong_t adv_cap_100fdx;
> ulong_t adv_cap_100hdx;
> ulong_t adv_cap_10fdx;
> ulong_t adv_cap_asmpause;
> ulong_t adv_cap_autoneg;
> ulong_t adv_cap_pause;
> ulong_t alignment_err;
> ulong_t brdcstrcv;
> ulong_t brdcstxmt;
> ulong_t cap_1000fdx;
> ulong_t cap_1000hdx;
> ulong_t cap_100T4;
> ulong_t cap_100fdx;
> ulong_t cap_100hdx;
> ulong_t cap_10fdx;
> ulong_t cap_10hdx;
> ulong_t cap_asmpause;
> ulong_t cap_autoneg;
> ulong_t cap_pause;
> ulong_t code_violations;
> ulong_t collisions;
> ulong_t crc_err;
> ulong_t crtime;
> ulong_t excessive_collisions;
> ulong_t first_collision;
> ulong_t ierrors;
> ulong_t ifspeed;
> ulong_t ipackets;
> uint64_t ipackets64;
> ulong_t ipackets_cpu00;
> ulong_t ipackets_cpu01;
> ulong_t ipackets_cpu02;
> ulong_t ipackets_cpu03;
> ulong_t late_collisions;
> ulong_t lb_mode;
> ulong_t length_err;
> ulong_t link_T4;
> ulong_t link_asmpause;
> ulong_t link_duplex;
> ulong_t link_pause;
> ulong_t link_speed;
> ulong_t link_up;
> ulong_t lp_cap_1000fdx;
> ulong_t lp_cap_1000hdx;
> ulong_t lp_cap_100T4;
> ulong_t lp_cap_100fdx;
> ulong_t lp_cap_100hdx;
> ulong_t lp_cap_10fdx;
> ulong_t lp_cap_10hdx;
> ulong_t lp_cap_asmpause;
> ulong_t lp_cap_autoneg;
> ulong_t lp_cap_pause;
> ulong_t mac_mtu;
> ulong_t multircv;
> ulong_t multixmt;
> ulong_t norcvbuf;
> ulong_t noxmtbuf;
> ulong_t obytes;
> uint64_t obytes64;
> ulong_t oerrors;
> ulong_t opackets;
> uint64_t opackets64;
> ulong_t pci_bad_ack_err;
> ulong_t pci_bus_speed;
> ulong_t pci_dmarz_err;
> ulong_t pci_dmawz_err;
> ulong_t pci_drto_err;
> ulong_t pci_err;
> ulong_t pci_parity_err;
> ulong_t pci_rma_err;
> ulong_t pci_rta_err;
> ulong_t peak_attempts;
> ulong_t promisc;
> ulong_t qos_mode;
> ulong_t rbytes;
> uint64_t rbytes64;
> ulong_t rev_id;
> ulong_t rx_allocb_fail;
> ulong_t rx_hdr_drops;
> ulong_t rx_hdr_pkts;
> ulong_t rx_inits;
> ulong_t rx_jumbo_pkts;
> ulong_t rx_len_mm;
> ulong_t rx_msgdup_fail;
> ulong_t rx_mtu_drops;
> ulong_t rx_mtu_pkts;
> ulong_t rx_new_hdr_pgs;
> ulong_t rx_new_mtu_pgs;
> ulong_t rx_new_nxt_pgs;
> ulong_t rx_new_pages;
> ulong_t rx_no_buf;
> ulong_t rx_no_comp_wb;
> ulong_t rx_nocanput;
> ulong_t rx_nxt_drops;
> ulong_t rx_ov_flow;
> ulong_t rx_pkts_dropped;
> ulong_t rx_reused_pgs;
> ulong_t rx_split_pkts;
> ulong_t rx_tag_err;
> ulong_t rx_taskq_waits;
> ulong_t snaptime;
> ulong_t trunk_mode;
> ulong_t tx_allocb_fail;
> ulong_t tx_ddi_pkts;
> ulong_t tx_dma_bind_fail;
> ulong_t tx_dvma_pkts;
> ulong_t tx_hdr_pkts;
> ulong_t tx_inits;
> ulong_t tx_jumbo_pkts;
> ulong_t tx_max_pend;
> ulong_t tx_msgdup_fail;
> ulong_t tx_no_desc;
> ulong_t tx_nocanput;
> ulong_t tx_queue0;
> ulong_t tx_queue1;
> ulong_t tx_starts;
> ulong_t tx_uflo;
> ulong_t xcvr_addr;
> ulong_t xcvr_id;
> ulong_t xcvr_inits;
> ulong_t xcvr_inuse;
> };

# diff netif.se.orig netif.se.new
49c49,50
< #define NETIF_TYPES 29
---
> #define NETIF_IPGE  29
> #define NETIF_TYPES 30
121a123
>     ks_ipge_network if_ipge;  // FSC Gigabit Ethernet
269a272,276
>       for(refresh$(if_ipge); if_ipge.number$ != -1;
>           if_ipge.number$++, refresh$(if_ipge)) {
>         count++;
>       }
>       if_max[NETIF_IPGE] = count;
788a796,813
>     case NETIF_IPGE:
>       if_ipge.number$ = number$ - (if_max[NETIF_FJGI] + 1);
>       refresh$(if_ipge);
>       name$          = if_ipge.name$;
>       ipackets       = if_ipge.ipackets;
>       ierrors        = if_ipge.ierrors;
>       opackets       = if_ipge.opackets;
>       oerrors        = if_ipge.oerrors;
>       collisions     = if_ipge.collisions;
>       nocanput       = if_ipge.rx_nocanput;
>       defer          = if_ipge.tx_nocanput;
>       nocarrier      = 0;
>       ooctets        = if_ipge.obytes64;
>       ioctets        = if_ipge.rbytes64;
>       ifspeed        = if_ipge.ifspeed;
>       iftype         = NT_CSMACD;
>       break;
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Aug 3 01:35:15 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:00 EST