author | osayama <osamu.sayama@oracle.com> |
Fri, 16 Sep 2016 08:38:07 +0900 | |
changeset 6914 | 0c9c2d460328 |
parent 5598 | fc2da58ba249 |
permissions | -rw-r--r-- |
5297
e9b84fd24a41
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: |
e9b84fd24a41
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 |
e9b84fd24a41
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 |
|
e9b84fd24a41
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: |
e9b84fd24a41
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 |
e9b84fd24a41
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 |
|
e9b84fd24a41
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: |
e9b84fd24a41
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 |
e9b84fd24a41
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 |
|
e9b84fd24a41
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: |
e9b84fd24a41
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 & |
e9b84fd24a41
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 |
|
e9b84fd24a41
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: |
e9b84fd24a41
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 |
e9b84fd24a41
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 |
5598
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
16 |
|
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
17 |
|
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
18 |
Open /var/tmp/mrtg.cfg and make sure that the configuration is not all |
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
19 |
commented out. There may for example be: |
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
20 |
|
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
21 |
### The following interface is commented out because: |
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
22 |
### * has no ifSpeed property |
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
23 |
|
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
24 |
In such case one has to uncomment whole interface config and modify the line like |
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
25 |
|
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
26 |
MaxBytes[localhost_2]: 125000000 |
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
27 |
|
fc2da58ba249
22909224 The TESTING script should list additional instructions
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
5297
diff
changeset
|
28 |
|
5297
e9b84fd24a41
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 |
e9b84fd24a41
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 |
|
e9b84fd24a41
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 |
e9b84fd24a41
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. |