forked from sflow/host-sflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.SunOS
48 lines (28 loc) · 1.14 KB
/
INSTALL.SunOS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
This software is distributed under the following license:
http://sflow.net/license.html
To compile and install, try this:
root> gmake
root> gmake install
If you are building for Solaris10 on a Solaris11 system, use:
root> gmake SOLARISVERSION=5010
You may find you have to add /usr/ccs/bin and /usr/sfw/bin to
your $PATH before gmake will run, and you may have to run:
root> ln -s /lib/libdlpi.so.1 /usr/lib/libdlpi.so
before it will link the dlpi library sucessfully.
Edit /etc/hsflowd.conf for configuration. The options are
described in the comments there.
To schedule the daemon to start automatically on a reboot, try:
root> gmake schedule
To start the daemon, run:
root> /usr/sbin/svcadm enable hsflowd
and check the syslog for errors.
To build a package, try:
root> gmake pkg
The package will be written to the src/SunOS directory
To run in debug mode, first stop the daemon, then run
hsflowd directly at the command line with -d, -dd or -ddd.
For example:
root> /usr/sbin/svcadm disable hsflowd
root> cd src/SunOS; ./hsflowd -ddd
To run in gdb, remember to use "setargs -d" before
running, because -d will also prevent daemonization.