Saturday, November 19, 2011

The klish-1.5.2 is out

Changes: The new feature was implemented: the validator of saved config files (like a startup-config). Use -k (--check) option to check input file(s) for syntax errors. Better error reporting.

The parameters from the sequence of optional parameters can be entered in arbitrary order. Sometimes it's not usefull. The "order" field of PARAM tag can make the sequence of optional parameters ordered. It says that all previously declared optional parameters can't be entered later than the current one.

Fix alternative shebang hangup while execution. The VAR can use internal functions as action.

New internal variable ${__isatty}. It indicates if command stream comes from interactive tty or from file or piped stdin.

More secure parameters escaping. Additional modifiers for variables expanding.

Bugfix.

Tuesday, October 25, 2011

Ordered optional parameters

The parameters from the sequence of optional parameters can be entered in arbitrary order. Sometimes it's not usefull. The "order" field of PARAM tag can make the sequence of optional parameters ordered. It says that all previously declared optional parameters can't be entered later than the current one. See the Ordered optional parameters for details.

The feature is available in SVN revision #522 and will be available in future klish-1.5.2 release.

Thursday, September 22, 2011

Check config files

The new feature was implemented: the validator of saved config files (like a startup-config). Use -k (--check) option to check input file(s) for syntax errors.

Example:
$ clish -k -q /etc/startup-config

Friday, August 19, 2011

The klish-1.5.1 is out

It's a bugfix release.
Fix viewid expanding. Fix BSD specific bug with getgr, getpw macroses. Fix namespace completion. Fix completion of commands with prefix. Fix 'test' field within 'switch' PARAMs.

Wednesday, July 13, 2011

The klish-1.5.0 is out

Changes:

The brackets (...) is not mandatory now in select PTYPE. By default the value will be equal to entered string.

Add global variables subsystem. New tag VAR describes variable that can be used within expandable strings (ACTION, test field, etc.). The variable can be static (it will be evaluated once) and dynamic (it will be evaluated on every using).

The completion field of PARAM tag was implemented. It gives possible completions (show on tab key) for current PARAM. The VARs can be used as an argument for completion field.

The -h options for konfd's protocol. It defines the max depth of output for the --dump command.

Multiline input. Terminal resize is possible. Fix del and backspace keys.

Command logging is implemented. All klish commands can be logged into the syslog files.

Idle timeout. The session can be closed after the idle timeout.

Watchdog. You can turn watchdog on. Then all klish commands will be considered as dangerous. And if no key is pressed the klish will execute WATCHDOG's ACTION after watchdog timeout. The ACTION can be reboot for example.

Multiply groups in access field of COMMAND tag. Access fields for the view and namespaces.

Thanks to Michal Turek, Camilo Arboleda, Arun Sharma, Rahul Panwar, Lynn Scott and the others for the contribution and bug reporting.

The API for the builtin functions was changed. It gets full context now.

Bugfix and optimizations.

Wednesday, May 4, 2011

The dynamic variables and completion.

The dynamic variables and arbitrary completion were implemented. Use VAR tag and PARAM's completion field.





cat ${f}








ls

Wednesday, April 27, 2011

The klish-1.4.3 is out

This release is functionally equal to 1.4.2 but it's FreeBSD compatible now. The FreeBSD errors and warnings were fixed.

Wednesday, April 13, 2011

The klish-1.4.2 is out

The main feature of this release is konfd and clish binaries speed-up. It's important for long initialization configs. The konfd become full-blown daemon with pidfile etc. The simple initscript for konfd is implemented. There are many fixes for command completion and help. Bugfix.

Friday, February 25, 2011

The klish-1.4.1 is out

Changes:

* Fix autocompletion critical bug.
* Fix klish shared libraries link dependencies.
* Fix konf utility retval codes.
* Make help output more cisco-like.

Thursday, February 3, 2011

The klish-1.4.0 is out

Changes:

The UTF-8 encoding support. See the http://code.google.com/p/klish/wiki/utf8 for details.

The atomic ACTION scripts. See the http://code.google.com/p/klish/wiki/atomic_action for details.

Optionally disabling of commands echo. The "--quite" clish utility option.

Non-interruptable ACTION script.

The SIGINT and SIGQUIT signals can be blocked while ACTION script execution. So the user can't use Ctrl^C to terminate current process. It's usefull to make some action atomic. The signal blocking is default behaviour. To make action interruptable the COMMAND tag must contain interrupt="true" field.
Implemented since svn revision 347.

Wednesday, February 2, 2011

The UTF-8 support

Since the svn revision 345 the klish supports UTF-8. The clish utility try to autodetect encoding (UTF-8 or 8-bit). The "-u" command line option forces UTF-8. The "-8" option forces 8-bit encoding.

This feature will be available in future version 1.4.0.

Monday, January 17, 2011

Buildroot's contrib files

The klish source tree now contain the contrib files to embed klish into the Buildroot environment. See the http://code.google.com/p/klish/wiki/buildroot for details.