Changeset 92
- Timestamp:
- Mar 30, 2011, 3:52:57 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r86 r92 25 25 26 26 my $KLASK_VAR = '/var/cache/klask'; 27 my $KLASK_CFG_FILE = '/etc/klask .conf';27 my $KLASK_CFG_FILE = '/etc/klask/klask.conf'; 28 28 my $KLASK_DB_FILE = "$KLASK_VAR/klaskdb"; 29 29 my $KLASK_SW_FILE = "$KLASK_VAR/switchdb"; … … 1834 1834 =head2 updatedb 1835 1835 1836 This command will scan networks and update a database. To know which are the cmputer scan, you have to configure the file /etc/klask .conf This file is easy to read and write because klask use YAML format and not XML.1836 This command will scan networks and update a database. To know which are the cmputer scan, you have to configure the file /etc/klask/klask.conf This file is easy to read and write because klask use YAML format and not XML. 1837 1837 1838 1838 … … 1844 1844 =head2 updatesw 1845 1845 1846 This command build a map of your manageable switch on your network. The list of the switch must be given in the file /etc/klask .conf.1846 This command build a map of your manageable switch on your network. The list of the switch must be given in the file /etc/klask/klask.conf. 1847 1847 1848 1848 … … 1858 1858 =head1 CONFIGURATION 1859 1859 1860 Because klask need many parameters, it's not possible actually to use command line parameters. The configuration is done in a /etc/klask .conf YAML file. This format have many advantage over XML, it's easier to read and to write !1860 Because klask need many parameters, it's not possible actually to use command line parameters. The configuration is done in a /etc/klask/klask.conf YAML file. This format have many advantage over XML, it's easier to read and to write ! 1861 1861 1862 1862 Here an example, be aware with indent, it's important in YAML, do not use tabulation ! … … 1899 1899 =head1 FILES 1900 1900 1901 /etc/klask .conf1901 /etc/klask/klask.conf 1902 1902 /var/cache/klask/klaskdb 1903 1903 /var/cache/klask/switchdb -
trunk/klask-wrapper
r89 r92 5 5 6 6 check_conf() { 7 if [ ! -r /etc/klask .conf ]7 if [ ! -r /etc/klask/klask.conf ] 8 8 then 9 9 echo "No config file for klask /etc/klask.conf"
Note: See TracChangeset
for help on using the changeset viewer.