omshell Script for partner-down mode

Brad Bendily Brad.Bendily at LA.GOV
Mon Apr 18 16:09:17 UTC 2011


Is there a one liner type command that can be used instead of
using omshell?

 

> -----Original Message-----
> From: dhcp-users-bounces+brad.bendily=la.gov at lists.isc.org 
> [mailto:dhcp-users-bounces+brad.bendily=la.gov at lists.isc.org] 
> On Behalf Of Martin McCormick
> Sent: Monday, April 18, 2011 11:00 AM
> To: Users of ISC DHCP
> Subject: omshell Script for partner-down mode
> 
> 	While trying to create an omshell script to put a 
> still-living dhcp server in to partner-down mode, I received 
> a "not implimented" error which actually tells me I am 
> probably doing something wrong as the failover-state object 
> is listed as supported. This uses what is called a here 
> script  The script is as follows:
> 
> #!/bin/sh
> omshell << EOF
> port 7911
> key keyname "SH They're listening out there"
> connect
> new failover-state
> set local-state = "00:00:00:0 1"
> open
> update
> EOF
> 
> The output is as follows:
> 
> > > > obj: <null>
> > obj: failover-state
> > obj: failover-state
> local-state = "00:00:00:0 1"
> > can't open object: not implemented
> obj: failover-state
> local-state = "00:00:00:0 1"
> > can't update object: not found
> obj: failover-state
> local-state = "00:00:00:0 1"
> 
> Obviously not what I was looking for.
> 
> 	Any suggestions are appreciated.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
> 


More information about the dhcp-users mailing list