chase pettet wrote:
I am trying to write a script to work our LVS implementation. I want to be
able to have user do something like this "./script SITE SERVER" and have
the script look up the ip value of the site on that server and issue the
command to pull the status from LVS. I am almost ther
Hmmm.. First of all..
In the non working code:
a = LVS_Site()
z = sys.argv[2]
b = b["%s" % (sys.argv[1])]
c = a.show(b)
.
Did you really mean
b = b["%s" % (sys.argv[1])]
or perhaps
b = z["%s" % (sys.argv[1])]
Also, I can't see why your doing the string formatting in there:
b = z[sys.a
On Thu, Aug 6, 2009 at 3:42 PM, vince spicer wrote:
>
>
> On Thu, Aug 6, 2009 at 3:18 PM, chase pettet wrote:
>
>> I am trying to write a script to work our LVS implementation. I want to
>> be able to have user do something like this "./script SITE SERVER" and have
>> the script look up the ip
On Thu, Aug 6, 2009 at 3:18 PM, chase pettet wrote:
> I am trying to write a script to work our LVS implementation. I want to be
> able to have user do something like this "./script SITE SERVER" and have
> the script look up the ip value of the site on that server and issue the
> command to pul
I am trying to write a script to work our LVS implementation. I want to be
able to have user do something like this "./script SITE SERVER" and have
the script look up the ip value of the site on that server and issue the
command to pull the status from LVS. I am almost there but for some reason