HIER 3.93 KB
Newer Older
1
Netmagis standard file hierarchy
2

Pierre DAVID's avatar
Pierre DAVID committed
3 4 5 6 7 8 9 10 11 12
Default directories
--------------------

    Standard OS directories

		FreeBSD					Linux
    BINDIR	/usr/local/bin				/usr/bin
    SBINDIR	/usr/local/sbin				/usr/sbin
    ETCDIR	/usr/local/etc				/usr/etc
    MANDIR	/usr/local/man				/usr/man
13
    RCDIR	/usr/local/etc/rc.d			/etc/init.d
Pierre DAVID's avatar
Pierre DAVID committed
14 15 16 17 18 19 20 21 22 23 24 25

    Netmagis specific directories

		FreeBSD					Linux
    NMDOCDIR	/usr/local/share/doc/netmagis		/usr/share/doc/netmagis
    NMXMPDIR	/usr/local/share/examples/netmagis	/usr/share/examples/netmagis
    NMLIBDIR	/usr/local/lib/netmagis			/usr/lib/netmagis
    NMVARDIR	/usr/local/var/netmagis			/usr/var/netmagis
    NMCGIDIR	/usr/local/www/netmagis			/usr/www/netmagis
    NMWSDIR	/usr/local/www/metro			/usr/www/metro


26 27
Common part for all components
------------------------------
28 29

    This is the standard hierarchy for common files on nearly all
30
    Netmagis servers.
31

Pierre DAVID's avatar
Pierre DAVID committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45
    ETCDIR/
	.../netmagis.conf.sample
    BINDIR/
	.../netmagis-config
    NMLIBDIR/
	.../libnetmagis.tcl
	.../pkgtcl/
	    .../pkgIndex.tcl	[generated by Makefile]
	    .../*.tcl		[package Tcl files]
	    .../*.n		[package manual pages]
	.../msgs/
	    .../en.msg
	    .../fr.msg
	    .../C.msg -> en.msg
46 47 48 49 50


Database server
---------------

Pierre DAVID's avatar
Pierre DAVID committed
51 52 53 54 55 56 57
    NMLIBDIR/
	.../defaults
	    .../crontab.dns	[example crontab]
	.../upgrade/
    SBINDIR/
	.../netmagis-dbcreate
	.../netmagis-dbimport
58
	.../netmagis-dbmaint
Pierre DAVID's avatar
Pierre DAVID committed
59 60 61 62 63 64 65 66 67 68 69
    NMVARDIR/
	.../dbdump/
	    *.dump		[postgresql dump files]
    NMXMPDIR/
	.../crontab.database	[example crontab]
	.../*.txt		[example data for database initialization]
	.../run-all.sh		[example script for database initialization]
	.../zones/
	    *			[example zones]
	.../upgrade/
	    *			[one directory for each Vn-1 -> Vn upgrade]
70 71 72 73

Web server
----------

Pierre DAVID's avatar
Pierre DAVID committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
    NMLIBDIR/
	.../ps2pdf
	.../tmpl/
	    .../fr/
		.../*.html	[all HTML templates files]
		.../*.tex	[all LaTeX templates files]
	    .../en/
		.../*.html	[all HTML templates files]
		.../*.tex	[all LaTeX templates files]
	    .../C -> en/
	.../defaults
	    .../httpd.conf	[example Apache22 configuration file]
	    .../auth-ldap.conf	[example Apache22 configuration file]
	    .../auth-pgsql.conf	[example Apache22 configuration file]
	.../htg/
	    .../models/
	    .../doc/		[obsolete, in french]
    BINDIR/
	.../htg
	.../htg2html
	.../htgtcl
    NMCGIDIR/
	.../*			[all CGI scripts]
	.../css/		[symlink to lib/netmagis/htg/models/defaults/css]
	    .../*		[CSS files]
	    .../images -> NMLIBDIR/htg/models/default/css/images/
100 101 102 103

Utils server
------------

Pierre DAVID's avatar
Pierre DAVID committed
104 105 106 107 108 109 110 111
    BINDIR/
	.../dnsaddalias
	.../dnsaddhost
	.../dnsdelhost
	.../dnsdelip
	.../dnsmodattr
	.../dnsreadprol
	.../dnswriteprol
112 113 114 115

DNS server
----------

Pierre DAVID's avatar
Pierre DAVID committed
116 117 118 119
    NMXMPDIR/
	.../crontab.bind	[example crontab]
    SBINDIR/
	.../mkzones
120 121 122 123

DHCP server
-----------

Pierre DAVID's avatar
Pierre DAVID committed
124 125 126 127
    NMXMPDIR/
	.../crontab.dhcp	[example crontab]
    SBINDIR/
	.../mkdhcp
128 129 130 131

SMTP relay server
-----------------

Pierre DAVID's avatar
Pierre DAVID committed
132 133 134 135 136 137 138
    NMXMPDIR/
	.../crontab.mroute	[example crontab]
	.../crontab.smtpf	[example crontab for unauthenticated smtp filtering]
	.../pf.conf.sample
    SBINDIR/
	.../mkmroute
	.../mksmtpf
139 140 141 142

Topo server
-----------

Pierre DAVID's avatar
Pierre DAVID committed
143 144 145 146 147 148 149 150
    NMLIBDIR/
	.../topo/
	    .../anaconf
	    .../analyze
	    .../parse-cisco.tcl
	    .../buildgraph
	    ...
    RCDIR/
151 152
	.../toposendd
	.../topographd
Pierre DAVID's avatar
Pierre DAVID committed
153 154 155 156 157 158 159
    SBINDIR
	.../toposendd
	.../topographd
    NMVARDIR/
	.../eqgen/
	.../eqvirt/
	.../network.graph	[generated by topo]
160 161 162 163

Syslog server
-------------

Pierre DAVID's avatar
Pierre DAVID committed
164 165 166 167 168 169 170
    SBINDIR/
	.../detectconfmod
    NMXMPDIR/
	.../radius/		[example configuration for radius daemon]
	    .../radiusd.conf
	    .../server.conf
	    .../topo.conf
171 172 173 174

Metrology server
----------------

Pierre DAVID's avatar
Pierre DAVID committed
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
    BINDIR/
	.../metrocreatedb
	.../metropoller
	.../metropoller-run
    NMLIBDIR/
	.../gen-rrdgraph.pl
	.../libgraph.pl
	.../libmetro.pl
	.../plugins/
	.../probes/
    NMXMPDIR/
	.../apache-metro.conf
	.../crontab.metro
    NMWSDIR/
	.../gengraph
190 191 192 193 194 195 196 197 198 199 200 201 202 203

Test system
-----------

    SBINDIR/
	.../netmagis-test

    NMLIBDIR/
	.../tests/
	    .../sc-*.test
    NMVARDIR/
	.../tests/
	    .../sc-*-*.out
	    .../sc-*-*.err