nv-l
[Top] [All Lists]

Re: xnmgraph

To: nv-l@lists.tivoli.com
Subject: Re: xnmgraph
From: Thomas Schnorr <ts@NMC-M.DTAG.DE>
Date: Fri, 25 Sep 1998 14:33:40 +0200
Reply-to: Discussion of IBM NetView and POLYCENTER Manager on NetView et alia <NV-L@UCSBVM.UCSB.EDU>
Sender: Discussion of IBM NetView and POLYCENTER Manager on NetView et alia <NV-L@UCSBVM.UCSB.EDU>
> I have collected some data with snmpCollect using MibExpressions. I can view
> them with "Tools...Data Collections and Thresholds"
>       with "Show Data Button"
> and i can graph them
>            with "Graph Button".
>
> Now i want call the xnmgraph from command-line varying some options; but i
> don't know, how to do it like the GUI (xnmcollect).
>
> Thanks
> W. Klein

I call xnmgraph vom command-line with the "-mibFile" option.

xnmgraph -mibFile nv.mibfile  router.nmc-m.dtag.de

In the sample of the nv.mibfile later in the E-Mail are
the parameters vor a Mib-Expression (If%inQuDrops)
(Sorry for the German comments)

read the man page for the option "-browse" to display
the Collectet data from snmpCollect

The sample application Registration File (ARF) make a icon
in the toolbar of the GUI. So you can modify the nv.mibfile
whit a editor and whithout restart the GUI you can use the
xnmgraph whit drag and drop

# Thomas Schnorr
# E-Mail: tschnorr@nmc-m.dtag.de





# File: nv.mibfile
# Date: 21.01.98 T.Schnorr
#
# Zweck: - Konfigurationsdatei fuer den xnmgraph
#        - Verwendung mit der Option -mibFile
# Bsp.:  xnmgraph -mibFile nv.mibfile  router.nmc-m.dtag.de
#
# Hinweis: - Unbenutzte Zeilen mit einem # deaktivieren
#          - Diese Datei wird im Homeverzeichnis des Useres erwartet
#            cp /usr/OV/help/C/nmc-m/nv.mibfile ~
#          - Die einzelenen Felder werden durch : getrennt
#
# Hier kann eingestellt werden was der xnmgraph anzeigen soll
# Selektionskriterien sind
# ------------------------
# Variablennamen:   .1.3.6.1.2.1.2.2.1.16  -->  Out Octets (Byte/s)
#                   .1.3.6.1.2.1.2.2.1.10  -->  In  Octets (Byte/s)
#                   .1.3.6.1.2.1.2.2.1.17  -->  Out Pakete (Packete/s)
#                   .1.3.6.1.2.1.2.2.1.11  -->  In  Pakete (Packete/s)
#
# IfIndexe:         - nur IfIndex 1 und 3   ^1$|^3$
#
# Interfacetypen:   6    --> Ethernet
#                   22   --> Punkt zu Punkt (Standleitung)
#                   23   --> ISDN
#                   31   --> SMDS
#                   39   --> ATM  (39|37|49)
#                   Kombinationen mit RE (Regular Expressions)
#                   - alle Normalen Interfacetypes ^[^1]$|^1.$|^2[^4]$|^[3-9].$
#
# *** if-Octets ***
# Alle IfIndexe und alle Normalen Interfacetypes ^[^1]$|^1.$|^2[^4]$|^[3-9].$
#
#.1.3.6.1.2.1.2.2.1.16:Interface Out 
Octets::.1.3.6.1.2.1.2.2.1.3:^[^1]$|^1.$|^2[^4]$|^[3-9].$:.1.3.6.1.2.1.2.2.1.2:::,
#.1.3.6.1.2.1.2.2.1.10:Interface in 
Octets::.1.3.6.1.2.1.2.2.1.3:^[^1]$|^1.$|^2[^4]$|^[3-9].$:.1.3.6.1.2.1.2.2.1.2: 
::
#
# nur IfIndex 1 und 3   ^1$|^3$
# Octets 16 10   Packete  11 17
#.1.3.6.1.2.1.2.2.1.16:Int Out 
Octets::.1.3.6.1.2.1.2.2.1.3::.1.3.6.1.2.1.2.2.1.2:::,
#.1.3.6.1.2.1.2.2.1.10:Int  in 
Octets::.1.3.6.1.2.1.2.2.1.3::.1.3.6.1.2.1.2.2.1.2: ::
#.1.3.6.1.2.1.2.2.1.16:Int Out 
Octets:^27$|^3$:.1.3.6.1.2.1.2.2.1.3:^[^1]$|^1.$|^2[^4]$|^[3-9].$:.1.3.6.1.2.1.2.2.1.2:::,
#.1.3.6.1.2.1.2.2.1.10:Int  in 
Octets:^1$|^3$:.1.3.6.1.2.1.2.2.1.3:^[^1]$|^1.$|^2[^4]$|^[3-9].$:.1.3.6.1.2.1.2.2.1.2:
 ::
#
#.1.3.6.1.2.1.2.2.1.17:Int Out 
Packet:^19$|^20$:.1.3.6.1.2.1.2.2.1.3:^[^1]$|^1.$|^2[^4]$|^[3-9].$:.1.3.6.1.2.1.2.2.1.2:::,
#.1.3.6.1.2.1.2.2.1.11:Int  in 
Packet:^19$|^20$:.1.3.6.1.2.1.2.2.1.3:^[^1]$|^1.$|^2[^4]$|^[3-9].$:.1.3.6.1.2.1.2.2.1.2:
 ::
#
# nur PPP= 22 oder Eth=6
#.1.3.6.1.2.1.2.2.1.16:Int Out 
Octets::.1.3.6.1.2.1.2.2.1.3:^22$|^6$:.1.3.6.1.2.1.2.2.1.2:::,
#.1.3.6.1.2.1.2.2.1.10:Int  in 
Octets::.1.3.6.1.2.1.2.2.1.3:^22$|^6$:.1.3.6.1.2.1.2.2.1.2: ::
#
# *** ifindex 16 ***
#.1.3.6.1.2.1.2.2.1.16:Int Out 
Octets:^16$|^20$:.1.3.6.1.2.1.2.2.1.3::.1.3.6.1.2.1.2.2.1.2: ::,
#.1.3.6.1.2.1.2.2.1.10:Int  in 
Octets:^16$|^20$:.1.3.6.1.2.1.2.2.1.3::.1.3.6.1.2.1.2.2.1.2: ::

#
#
# *** SMDS-Octets ***
# Alle IfIndexe aber nur SMDS Interfacetypes 31
# 31 = SMDS  6=Ethernet
#.1.3.6.1.2.1.2.2.1.16:Interface Out 
Octets::.1.3.6.1.2.1.2.2.1.3:31:.1.3.6.1.2.1.2.2.1.2:::,
#.1.3.6.1.2.1.2.2.1.10:Interface in 
Octets::.1.3.6.1.2.1.2.2.1.3:31:.1.3.6.1.2.1.2.2.1.2: ::
#
# *** ATM Ports ***
#.1.3.6.1.2.1.2.2.1.16:Interface Out 
Octets::.1.3.6.1.2.1.2.2.1.3:39|37|49:.1.3.6.1.2.1.2.2.1.2:::,
#.1.3.6.1.2.1.2.2.1.10:Interface in 
Octets::.1.3.6.1.2.1.2.2.1.3:39|37|49:.1.3.6.1.2.1.2.2.1.2: ::
#.1.3.6.1.2.1.2.2.1.17:Int Out 
Packet:19|21|22:.1.3.6.1.2.1.2.2.1.3::.1.3.6.1.2.1.2.2.1.2: ::,
#.1.3.6.1.2.1.2.2.1.11:Int  in 
Packet:19|21|22:.1.3.6.1.2.1.2.2.1.3::.1.3.6.1.2.1.2.2.1.2: ::
#
# *** Cisco Drops ***
# Mib-Expression Beispiel
If%inQuDrops:InputQueueDrops::.1.3.6.1.2.1.2.2.1.3::.1.3.6.1.2.1.2.2.1.2: ::,
If%outQuDrops:OutputQueueDrops::.1.3.6.1.2.1.2.2.1.3::.1.3.6.1.2.1.2.2.1.2: ::
## *** ENDE ***






This ist the Application Registration File (/usr/OV/registration/C)
############################################################################

Application "Datex M Graphs"
{
    Description {
        "Monitors and Graphs SMDS Activity",
        "File: /usr/OV/registration/C/nmc-m/smds.arf"
    }

    Version "V0.3";

    Copyright {
      "Licensed Program Product:",
      "  NetView for AIX",
      "(C) Telekom Stuttgart NMC-M 1996",
      ""
    }

/** TOOLS FOR Tool Pallette ****/

    TOOL "MibFile" {
       Icon Gif "/usr/OV/icons/gifs/interface_traffic.gif";
       DragBitmap "/usr/OV/icons/drag-bitmaps/interface_traffic.xbm";
       LabelColor  "black";
       SelectionMechanism double-click, drag-drop;
       Action "MibFile"
    }


/******/
    }

    Action "MibFile" {
        MinSelected     1 ;
        SelectionRule   isNode
                        && (isSNMPSupported || isSNMPProxied) ;
        NameField       "IP Hostname", "IP Address", "Selection Name";
        Command "${xnmgraph:-/usr/OV/bin/xnmgraph} \
            -title \"Graphen aus dem MibFile $HOME/nv.mibfile\" \
            -iconLabel \"${OVwSelection1%%.[a-zA-Z]*([.a-zA-Z0-9])}\" \
            -iconName \"/usr/OV/icons/gifs/interface_traffic.gif\" \
            -iconLabelColor \"black\" \
            -iconNameType \"picture\" \
            -iconBitmapFile \"/usr/OV/icons/bitmaps/interface_traffic.xbm\" \
            -units \"Wert\" \
            -helpFile nmc-m/nv.mibfile \
            -mibFile ${HOME}/nv.mibfile ${OVwSelections}";
    }
}
###############################################################################

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web