Mailing List Archive

Junipers and Cricket?
Hi there,

Is anyone pulling stats off of a Juniper box using cricket? Do you
have a config you would care to share?

All the best,

John.

--
John Senior <js@irishbroadband.ie>
Junipers and Cricket? [ In reply to ]
At 05:15 PM 2/6/2003 +0000, John Senior wrote:
>Hi there,
>
>Is anyone pulling stats off of a Juniper box using cricket? Do you
>have a config you would care to share?

In Defaults, I added these:

OID ifHCInOctets 1.3.6.1.2.1.31.1.1.1.6
OID ifHCInUcastPkts 1.3.6.1.2.1.31.1.1.1.7
OID ifHCOutOctets 1.3.6.1.2.1.31.1.1.1.10
OID ifHCOutUcastPkts 1.3.6.1.2.1.31.1.1.1.11

targetType hc-standard-interface
ds = "ifHCInOctets, ifHCOutOctets, ifInErrors,
ifOutErrors, ifInUcastPackets,
ifOutUcastPackets,
ifInNUcastPackets, ifOutNUcastPackets,
ifOutDiscards, ifOutQLen"
view = "Octets: ifHCInOctets ifHCOutOctets,
UcastPackets: ifInUcastPackets
ifOutUcastPackets,
NUcastPackets: ifInNUcastPackets
ifOutNUcastPackets,
Errors: ifInErrors ifOutErrors,
Output-Q-Info: ifOutDiscards
ifOutQLen"

targetType hc-sub-interface
ds = "ifHCInOctets, ifHCOutOctets"
view = "Octets: ifHCInOctets ifHCOutOctets"

And then a typical config looks like:

target --default--
router = m10.startap.net
snmp-version = 2

target if-ge-0_0_0
interface-name = ge-0/0/0
short-desc = "StarLight Catalyst 6509 [ge-0/0/0]"
target-type = hc-standard-interface

target as00024_nren
interface-name = ge-0/0/0.24
short-desc = "NREN (AS 24) [ge-0/0/0.24]"
target-type = hc-sub-interface

target as00293_esnet
interface-name = ge-0/0/0.293
short-desc = "ESNet (AS 293) [ge-0/0/0.293]"
target-type = hc-sub-interface

target as00297_nisn
interface-name = at-0/1/0.297
short-desc = "NISN (AS 297) [at-0/1/0.297]"
target-type = hc-sub-interface

target as00513_cern
interface-name = ge-0/0/0.513
short-desc = "CERN (AS 513) [ge-0/0/0.513]"
target-type = hc-sub-interface

target as22335_mren
interface-name = ge-0/0/0.0
short-desc = "MREN (AS 22335) [ge-0/0/0.0]"
target-type = hc-sub-interface

target as01103_surfnet
interface-name = ge-0/0/0.1103
short-desc = "SURFNet (AS 1103) [ge-0/0/0.1103]"
target-type = hc-sub-interface

target as02008_ampath
interface-name = ge-0/0/0.2008
short-desc = "AMPATH (AS 2008) via Global Crossing
[ge-0/0/0.2008]"
target-type = hc-sub-interface

target as05568_naukanet
interface-name = ge-0/0/0.5568
short-desc = "NaukaNet (AS 5568) [ge-0/0/0.5568]"
target-type = hc-sub-interface

target as06509_canet4_winnipeg
interface-name = ge-0/0/0.6509
short-desc = "CA*Net4 Winnipeg (AS 6509) [ge-0/0/0.6509]"
target-type = hc-sub-interface

target as06509_canet4_toronto
interface-name = ge-0/0/0.6510
short-desc = "CA*Net4 Toronto (AS 6509) [ge-0/0/0.6510]"
target-type = hc-sub-interface

target as11537_abilene
interface-name = ge-0/0/0.11537
short-desc = "Abilene (AS 11537) [ge-0/0/0.11537]"
target-type = hc-sub-interface

target if-at-0_1_0
interface-name = at-0/1/0
short-desc = "StarLight-OC12 [at-0/1/0]"
target-type = hc-standard-interface

target as02603_nordunet
interface-name = at-0/1/0.2603
short-desc = "NORDUNet (AS 2603) [at-0/1/0.2603]"
target-type = hc-sub-interface

target as07660_apan
interface-name = at-0/1/0.7660
short-desc = "APAN/TransPac (AS 7660) [at-0/1/0.7660]"
target-type = hc-sub-interface

target local_atm_startap
interface-name = at-0/1/0.10764
short-desc = "StarTAP Cisco 7505 at 225 W Randolph
[at-0/1/0.10764]"
target-type = hc-sub-interface



===
Bill Nickless http://www.mcs.anl.gov/people/nickless +1 630 252 7390
PGP:0E 0F 16 80 C5 B1 69 52 E1 44 1A A5 0E 1B 74 F7 nickless@mcs.anl.gov
Junipers and Cricket? [ In reply to ]
hi

attached a Default.

below how define a target

target router.cern.ch
target-type = juniper-operating-status
short-desc = "routing engine - Juniper M10 "
part = "Routing Engine"


hope it helps

Edoardo

John Senior wrote:
> Hi there,
>
> Is anyone pulling stats off of a Juniper box using cricket? Do you
> have a config you would care to share?
>
> All the best,
>
> John.
>
> --
> John Senior <js@irishbroadband.ie>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp@puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp

--
edoardo.martelli@cern.ch
phone: +41.22.76.75026

-------------- next part --------------
# Juniper Environment Default file
# Edoardo Martelli 20020122
#
# to retrieve the part use: .1.3.6.1.4.1.2636.3.1.13.1.5
# examples:
# enterprises.2636.3.1.13.1.5.1.1.0.0 = "midplane"
# enterprises.2636.3.1.13.1.5.2.1.0.0 = "Power Supply A"
# enterprises.2636.3.1.13.1.5.2.2.0.0 = "Power Supply B"
# enterprises.2636.3.1.13.1.5.4.1.1.0 = "Left Fan 1"
# enterprises.2636.3.1.13.1.5.4.1.2.0 = "Left Fan 2"
# enterprises.2636.3.1.13.1.5.4.1.3.0 = "Left Fan 3"
# enterprises.2636.3.1.13.1.5.4.1.4.0 = "Left Fan 4"
# enterprises.2636.3.1.13.1.5.6.1.0.0 = "FEB E-FEB"
# enterprises.2636.3.1.13.1.5.7.1.0.0 = "FPC: 1x STM-16 SDH, SMSR @ 0/*/*"
# enterprises.2636.3.1.13.1.5.7.2.0.0 = "FPC @ 1/*/*"
# enterprises.2636.3.1.13.1.5.9.1.0.0 = "Routing Engine"


OID jnxOperatingTable .1.3.6.1.4.1.2636.3.1.13

map jnx-component-name
base-oid = jnxOperatingTable.1.5
match = %part%

datasource componentTemp
ds-source = snmp://%snmp%/jnxOperatingTable.1.7.%inst%
rrd-ds-type = GAUGE

datasource componentCpu
ds-source = snmp://%snmp%/jnxOperatingTable.1.8.%inst%
rrd-ds-type = GAUGE

datasource componentCpuISR
ds-source = snmp://%snmp%/jnxOperatingTable.1.9.%inst%
rrd-ds-type = GAUGE

datasource componentMemBufferPct
ds-source = snmp://%snmp%/jnxOperatingTable.1.11.%inst%
rrd-ds-type = GAUGE

datasource componentMemHeapPct
ds-source = snmp://%snmp%/jnxOperatingTable.1.12.%inst%
rrd-ds-type = GAUGE

targetType juniper-operating-status
ds = "componentTemp, componentCpu, componentCpuISR,
componentMemBufferPct, componentMemHeapPct"
view = "cpu: componentCpu componentCpuISR,
memory: componentMemBufferPct componentMemHeapPct,
temperature: componentTemp"

target --default--
inst = map(jnx-component-name)
target-type = juniper-operating-status
directory-desc = "cpu, memory, temperature"
# router = %auto-target-name%
# snmp-host = %router%

graph componentCpu
units = "%"
color = dark-green
draw-as = AREA
y-axis = "Percent CPU utilization"
legend = "CPU utilization"
# fixed y-axis, since this is a percentage
y-min = 0
y-max = 100

graph componentCpuISR
units = "%"
color = blue
y-axis = "Percent CPU utilization in Interrupt Service Routine"
legend = "CPU Interrupt Service Routine utilization"
# fixed y-axis, since this is a percentage
y-min = 0
y-max = 100

graph componentMemBufferPct
units = "%"
color = dark-green
draw-as = AREA
y-axis = "Percent Memory Buffer Pool utilization"
legend = "Memory Buffer Pool utilization"
# fixed y-axis, since this is a percentage
y-min = 0
y-max = 100

graph componentMemHeapPct
units = "%"
color = blue
y-axis = "Percent Memory Heap utilization"
legend = "Memory Heap utilization"
# fixed y-axis, since this is a percentage
y-min = 0
y-max = 100


graph componentTemp
color = dark-green
draw-as = AREA
y-axis = "degrees Centigrade"
units = "&#176;"
space = ""
legend = "temperature in C"
precision = integer
Junipers and Cricket? [ In reply to ]
Bill Nickless (nickless@mcs.anl.gov) wrote:
> At 05:15 PM 2/6/2003 +0000, John Senior wrote:
> >Hi there,
> >
> >Is anyone pulling stats off of a Juniper box using cricket? Do you
> >have a config you would care to share?



>
> In Defaults, I added these:
>
> OID ifHCInOctets 1.3.6.1.2.1.31.1.1.1.6
> OID ifHCInUcastPkts 1.3.6.1.2.1.31.1.1.1.7
> OID ifHCOutOctets 1.3.6.1.2.1.31.1.1.1.10
> OID ifHCOutUcastPkts 1.3.6.1.2.1.31.1.1.1.11
>
> targetType hc-standard-interface
> ds = "ifHCInOctets, ifHCOutOctets, ifInErrors,
> ifOutErrors, ifInUcastPackets,
> ifOutUcastPackets,
> ifInNUcastPackets, ifOutNUcastPackets,
> ifOutDiscards, ifOutQLen"
> view = "Octets: ifHCInOctets ifHCOutOctets,
> UcastPackets: ifInUcastPackets
> ifOutUcastPackets,
> NUcastPackets: ifInNUcastPackets
> ifOutNUcastPackets,
> Errors: ifInErrors ifOutErrors,
> Output-Q-Info: ifOutDiscards
> ifOutQLen"
>
> target if-ge-0_0_0
> interface-name = ge-0/0/0
> short-desc = "StarLight Catalyst 6509 [ge-0/0/0]"
> target-type = hc-standard-interface
>

for some unclear reason, this does not work with my juniper here, it
seems to bail out on the "ifHCInOctets, ifHCOutOctets" counters.

any idea or hint ?

--jan


--
Jan Ahrent Czmok - Senior Network Engineer - Access Networks
Global Access Telecommunications, Inc. - Stephanstr. 3 - 60313 Frankfurt
voice: +49 69 299896-35 - fax: +49 69 299896-66 - email: czmok@gatel.de
Junipers and Cricket? [ In reply to ]
>
>
> for some unclear reason, this does not work with my juniper here, it
> seems to bail out on the "ifHCInOctets, ifHCOutOctets" counters.
>
> any idea or hint ?


are you using snmp v2c?

have a look here:
http://www.geocrawler.com/archives/3/1089/2000/8/0/4274242/

ciao
Edoardo

--
edoardo.martelli@cern.ch
phone: +41.22.76.75026