Hello,
I'd like to use dispatcher module with Berkeley DB. How can I manipulate the dispatcher table, I mean, insert or delete gateways? kamctl seems not to work:
[root@vnsiprtest ~]# kamctl dispatcher addgw 1 '1.2.3.4' 1 'test' /usr/local/sbin/kamctl: line 1458: insert into dispatcher ( setid, destination, flags, description ) VALUES (1,'1.2.3.4',1,'test');: command not found ERROR: dispatcher - SQL Error
Thank you. Santiago
On Tuesday 26 January 2010, Santiago Soares wrote:
I'd like to use dispatcher module with Berkeley DB. How can I manipulate the dispatcher table, I mean, insert or delete gateways? kamctl seems not to work:
[root@vnsiprtest ~]# kamctl dispatcher addgw 1 '1.2.3.4' 1 'test' /usr/local/sbin/kamctl: line 1458: insert into dispatcher ( setid, destination, flags, description ) VALUES (1,'1.2.3.4',1,'test');: command not found ERROR: dispatcher - SQL Error
Hi Santiago,
i think you could use for example the db_load utility: http://www.oracle.com/technology/documentation/berkeley- db/db/api_reference/C/db_load.html
according the docs it can parse text files and could be configured to several formats.
Cheers,
Henning