Im seafile-Verzeichnis mit der Struktur

dccnet
conf
installed
logs
pids
pro-data
seafile-data
seafile-pro-server-6.2.13
seafile-server-latest -> seafile-pro-server-6.2.13
seahub-data

das aktuelle Paket laden und entpacken:

dccnet
conf
installed
logs
pids
pro-data
seafile-data
seafile-pro-server-6.2.13
seafile-pro-server-6.3.9
seafile-server-latest -> seafile-pro-server-6.2.13
seahub-data

Den seafile– und seahub-Server stoppen:

$ seafile-server-latest/seahub.sh stop
$ seafile-server-latest/seafile.sh stop

Das Upgrade-Skript laufen lassen:

$ seafile-server-latest/upgrade/upgrade_6.2_6.3.sh

-------------------------------------------------------------
This script would upgrade your seafile server from 6.2 to 6.3
Press [ENTER] to contiune
-------------------------------------------------------------



Updating seafile/seahub database ...

[INFO] You are using MySQL
[INFO] updating ccnet database...
/path-to/seafile-pro/seafile-pro-server-6.3.9/upgrade/db_update_helper.py:354: Warning: Table 'LDAPConfig' already exists
  cursor.execute(sql)
/path-to/seafile-pro/seafile-pro-server-6.3.9/upgrade/db_update_helper.py:354: Warning: Table 'GroupStructure' already exists
  cursor.execute(sql)

[INFO] updating seafile database...
/path-to/seafile-pro/seafile-pro-server-6.3.9/upgrade/db_update_helper.py:354: Warning: Table 'SeafileConf' already exists
  cursor.execute(sql)
/path-to/seafile-pro/seafile-pro-server-6.3.9/upgrade/db_update_helper.py:354: Warning: Table 'RepoInfo' already exists
  cursor.execute(sql)

[INFO] updating seahub database...
/path-to/seafile-pro/seafile-pro-server-6.3.9/upgrade/db_update_helper.py:354: Warning: Table 'organizations_orgmemberquota' already exists
  cursor.execute(sql)
[WARNING] Failed to execute sql: (1061, "Duplicate key name 'ix_event_timestamp'")
[WARNING] Failed to execute sql: (1061, "Duplicate key name 'ix_FileAudit_timestamp'")
[WARNING] Failed to execute sql: (1061, "Duplicate key name 'ix_FileUpdate_timestamp'")
[WARNING] Failed to execute sql: (1061, "Duplicate key name 'ix_UserTrafficStat_month'")
Done

migrating avatars ...

Done

updating /path-to/seafile-pro/seafile-server-latest symbolic link to /path-to/seafile-pro/seafile-pro-server-6.3.9 ...



-----------------------------------------------------------------
Upgraded your seafile server successfully.
-----------------------------------------------------------------

Starten des Seahub-Servers:

$ seafile-server-latest/seafile.sh start

** Message: seafile-controller.c(1155): loading seafdav config from /path-to/seafile-pro/conf/seafdav.conf

[05/14/19 21:27:18] ../common/session.c(139): using config file /path-to/seafile-pro/conf/ccnet.conf
[05/14/19 21:27:18] ../common/license.c(406): Loading license file /path-to/seafile-pro/seafile-license.txt ..
[05/14/19 21:27:18] ../common/license.c(409): License file /path-to/seafile-pro/seafile-license.txt does not exist, allow at most 3 trial users
License file /path-to/seafile-pro/seafile-license.txt does not exist, allow at most 3 trial users
Starting seafile server, please wait ...
** Message: seafile-controller.c(1155): loading seafdav config from /path-to/seafile-pro/conf/seafdav.conf

Seafile server started

Done.
$ seafile-server-latest/seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...

Seahub is started

Done.

Problem: muss zuerst in das mbox-Format konvertiert werden:

for i in Maildir/cur/*;do formail -I "Status: RO" <"$i" >>~/hambox;done
for i in Maildir/.Spam\ Privat/cur/*;do formail -I "Status: RO" <"$i" >>~/spambox;done

Quelle: nick@cmdln.org ~ $
Danach kann der Bayes-Filter von Spamassassin angelernt werden:

sa-learn --showdots --mbox --spam /home/xxxx/spambox
sa-learn --showdots --mbox --ham /home/xxxx/hambox

Feststellen des MIB-Verzeichnisses:

net-snmp-config --default-mibdirs

Falls net-snmp-config nicht installiert ist, funktioniert es über

# snmptranslate -Dinit_mib .1.3 2>&1 |grep MIBDIR
init_mib: Seen MIBDIRS: Looking in '/root/.snmp/mibs:/usr/share/snmp/mibs' for mib dirs ...

Download der MIB

# cd /usr/share/snmp/mibs/    oder in ein anderes Verzeichnis, das vorher ermittelt wurde
# wget https://www.cisco.com/web/ironport/tools/email/ASYNCOS-MAIL-MIB.txt
--2018-10-22 13:48:29--  https://www.cisco.com/web/ironport/tools/email/ASYNCOS-MAIL-MIB.txt
Resolving www.cisco.com... 104.103.88.32, 2a02:26f0:10e:185::b33, 2a02:26f0:10e:193::b33
Connecting to www.cisco.com|104.103.88.32|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27421 (27K) [text/plain]
Saving to: “ASYNCOS-MAIL-MIB.txt”

100%[==============================================================================>] 27,421      --.-K/s   in 0.001s

2018-10-22 13:48:29 (27.1 MB/s) - “ASYNCOS-MAIL-MIB.txt.1” saved [27421/27421]

Ermitteln der OID

Falls der Node schon bekannt ist, kann man den OID direkt auslesen:

# snmptranslate -IR -On perCentDiskIOUtilization
Unknown object identifier: perCentDiskIOUtilization

Das ist hier nicht der Fall, also muss man die MIB-Datei direkt angeben:

# snmptranslate -m ASYNCOS-MAIL-MIB -IR -On perCentDiskIOUtilization
.1.3.6.1.4.1.15497.1.1.1.3

Quelle: http://net-snmp.sourceforge.net/wiki/index.php/TUT:Using_and_loading_MIBS