Tuesday, April 10, 2012

The klish-1.5.4 is out

It's a portability release. Now it can be build on Linux, FreeBSD, OpenBSD, Solaris, QNX6. QNX6 has some problems with konf, konfd.

Much of legacy unused code was removed. Remove some unnecessary library dependencies.

Bugfix.

Wednesday, January 25, 2012

The klish-1.5.3 is out

The idle timeout command line option was added. Use -t <sec> or --timeout=<sec> to set it.
The klish command can be executed using klish -c "<command>".
The konfd daemon is case sensitive now.
Implement _PROMPT_PREFIX, _PROMPT_SUFFIX vars for system wide prompt prefix and suffix.
Bugfix.

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.