omshell in a Script
glenn.satchell at uniq.com.au
Sun Nov 3 11:08:51 UTC 2013
You could try the Perl Expect module, it works just like TCL Expect. Opens
a two way connection to the omshell process so you get the output too in a
way where you can search for different responses. If you've used TCP
Expect then the concepts are very similar in Perl.
There's also Perl modules: Net-ISC-DHCPd-0.14
but I've never used this so don't know what it's like.
On Sat, November 2, 2013 3:56 am, Martin McCormick wrote:
> I have written a perl script that uses omshell to adjust
> the data bases on a couple of DHCP servers and it makes the
> changes beautifully and as fast as lightning. The bad news is
> that the normal omshell output never echos the command being
> executed. This would allow a routine to translate omshell output
> in to messages to a caller stating that we added xyz to Server 1
> or that abc couldn't be found for deletion on Server2. As it is,
> successful additions or deletions do produce enough output to
> use, but unsuccessful operations don't echo enough to turn in to
> a meaningful message.
> Has anyone figured out how to get omshell to echo text
> or to echo the command it is currently executing? That would
> make it possible to gather needed data for clear messages to the
> My thanks for any constructive ideas.
> Martin McCormick WB5AGZ Stillwater, OK
> Systems Engineer
> OSU Information Technology Department Telecommunications Services Group
> dhcp-users mailing list
> dhcp-users at lists.isc.org
More information about the dhcp-users