components/mrtg/TESTING
author Ivo Raisr <ivo.raisr@oracle.com>
Wed, 12 Oct 2016 00:33:37 -0700
branchs11u3-sru
changeset 7127 0d23504d93cf
parent 5733 d956aa0a2f2f
permissions -rw-r--r--
PSARC/2016/221 PC/SC Lite smartcard middleware 24657567 pcsclite needs to deliver 32-bit libraries
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5732
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     1
Install snmp:
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     2
$ pkg install system/management/snmp/net-snmp
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     3
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     4
Enable snmp:
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     5
$ svcadm enable svc:/application/management/net-snmp:default
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     6
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     7
Make sure snmp works:
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     8
$ snmpget -v2c -c public localhost sysUpTime.0
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     9
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    10
Do some networking traffic:
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    11
$ while : ; do rm -f /home/vmarek/tmp/gs ; cp /usr/bin/gs /home/vmarek/tmp; done &
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    12
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    13
Test mrtg:
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    14
$ rm -rf /var/tmp/mrtg && mkdir -p /var/tmp/mrtg
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    15
$ cfgmaker --global "workdir: /var/tmp/mrtg" public@localhost > /var/tmp/mrtg.cfg
5733
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    16
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    17
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    18
Open /var/tmp/mrtg.cfg and make sure that the configuration is not all
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    19
commented out. There may for example be:
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    20
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    21
### The following interface is commented out because:
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    22
### * has no ifSpeed property
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    23
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    24
In such case one has to uncomment whole interface config and modify the line like
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    25
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    26
MaxBytes[localhost_2]: 125000000
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    27
d956aa0a2f2f 22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 5732
diff changeset
    28
5732
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    29
$ set -x; for i in 1 2 3 4 5 6 ; do env LANG=C /usr/bin/mrtg /var/tmp/mrtg.cfg; sleep 600; done
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    30
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    31
After 30 minutes display the generated html in /var/tmp/mrtg. You should see
8aaddf844fc7 15813089 SUNBT7195032 mrtg 2.16.2 from Solaris repository is too old and does not work
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    32
some data.