omshell Script for partner-down mode
Martin McCormick
martin at dc.cis.okstate.edu
Mon Apr 18 15:59:53 UTC 2011
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.
More information about the dhcp-users
mailing list