[rancid] rancid not working with partitions v11.x tmsh F5 LTM

Annie Lee lsy.annie at gmail.com
Mon Feb 9 21:46:02 UTC 2015


Just checked the diff (with the added partition configs) and it seems to
have all unnecessary 'default configs' as well.
Is that normal ?

On Tue, Feb 10, 2015 at 8:43 AM, Annie Lee <lsy.annie at gmail.com> wrote:

> Hi Shaun,
>
> Managed to get the bash script running, missed the double quote on the
> script.
>
>
>
> *#! /bin/bashtmsh -q -c "cd /;list recursive"*
> Thank you very much...
>
> On Tue, Feb 10, 2015 at 8:29 AM, Annie Lee <lsy.annie at gmail.com> wrote:
>
>> Hi Shaun,
>>
>> I've wrote a script with the below content to run from the F5, but error
>> out..(hence it wont be successful from rancid)
>>
>> #!/bin/bash
>>  tmsh -q -c cd / ;list recursive
>>
>> Thanks
>>
>> On Mon, Feb 9, 2015 at 7:15 PM, Shaun Krok <krok at krok.za.net> wrote:
>>
>>> On 2015-02-08 23:16, Annie Lee wrote:
>>>
>>>> Hi Shaun,
>>>>
>>>> Sorry. im new to this scripting and hope you dont mind me asking more
>>>> on the bash thingy.
>>>>
>>>> 1) create a file under root privilege with the below contents : (root
>>>> for the F5 or the rancid box) ? on the F5
>>>>
>>>>  #!/bin/bash
>>>>  tmsh -q -c cd / ;list recursive
>>>>
>>>> 2) how do i call that via rancid ?
>>>>
>>>>  _{TMSH -Q LIST => WRITETERMTMSH},_
>>>>
>>>
>>> SNIP from the f5rancid script
>>>
>>> # Main
>>> # bigpipe commands, BIGIP v9 and v10
>>> @bigpipe_commandtable = (
>>> {'bigpipe version' => 'ShowVersion'},
>>> {'bigpipe platform' => 'ShowPlatform'},
>>> {'cat /config/bigip.license' => 'ShowLicense'},
>>> {'bigpipe monitor list all' => 'ShowMonitor'},
>>> {'bigpipe profile list' => 'ShowProfile'},
>>> {'bigpipe base list' => 'ShowBaseRun'},
>>> {'bigpipe db show' => 'ShowDb'},
>>> {'bigpipe route static show' => 'ShowRouteStatic'},
>>> #{'ls --full-time --color=never /config/ssl/ssl.crt' => 'ShowSslCrt'},
>>> #{'ls --full-time --color=never /config/ssl/ssl.key' => 'ShowSslKey'},
>>> {'bigpipe list' => 'WriteTermBIGPIPE'}
>>> );
>>> # tmsh commands, BIGIP v11
>>> @tmsh_commandtable = (
>>> {'tmsh show /sys version' => 'ShowVersion'},
>>> {'tmsh show /sys hardware' => 'ShowHardware'},
>>> {'tmsh show /sys license' => 'ShowLicense'},
>>> #{'cat /config/ZebOS.conf' => 'ShowZebOSconf'},
>>> #{'lsof -i :179' => 'ShowZebOSsockets'},
>>> {'tmsh show /net route static' => 'ShowRouteStatic'},
>>> #{'ls --full-time --color=never /config/ssl/ssl.crt' => 'ShowSslCrt'},
>>> #{'ls --full-time --color=never /config/ssl/ssl.key' => 'ShowSslKey'},
>>> #{'tmsh -q list' => 'WriteTermTMSH'},
>>> #{'tmsh -q -c /"cd /;list recursive"/' => 'WriteTermTMSH'},
>>> {'./f5part' => 'WriteTermTMSH'},
>>>
>>>>
>>>> Yes, my rancid is working good with the common partitions..
>>>>
>>>> Thanks
>>>>
>>>> On Sat, Feb 7, 2015 at 5:51 AM, Shaun Krok <Shaun.Krok at 888holdings.com
>>>> [20]> wrote:
>>>>
>>>>  Thanks John --- this worked
>>>>>
>>>>>
>>>>>
>>>>> Much appreciated
>>>>>
>>>>>
>>>>>
>>>>> Shaun
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> FROM: John Kougoulos [mailto:john.kougoulos at gmail.com [15]]
>>>>> SENT: Wednesday, February 04, 2015 12:57 PM
>>>>> TO: Shaun Krok
>>>>>
>>>>> CC: rancid-discuss at shrubbery.net [16]
>>>>> SUBJECT: Re: [rancid] rancid not working with partitions v11.x tmsh
>>>>> F5 LTM
>>>>>
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I had a similar problem with the width of the terminal, so when the
>>>>> device was out of sync, the prompt was becoming longer and some of
>>>>> the commands failed to be parsed.
>>>>>
>>>>> I had to change in f5rancid the line:
>>>>> $ENV{TERM} = "vt100";
>>>>>
>>>>> to:
>>>>> $ENV{TERM} = "vt100-w";
>>>>>
>>>>> Regards,
>>>>> John
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Feb 4, 2015 at 8:33 AM, Shaun Krok
>>>>> <Shaun.Krok at 888holdings.com [17]> wrote:
>>>>>
>>>>>  Hi there
>>>>>>
>>>>>> I was hoping someone had come across this issue.
>>>>>>
>>>>>> We are using Rancid to collect diffs from our  BIG-IP clusters
>>>>>> (as per bash script below)
>>>>>> It works really well but are now facing an issue for reason
>>>>>> unknown that when the cluster is not synced the rancid fails and
>>>>>> reports fetcher issues.
>>>>>> If I run the bash script below manually on each device it works
>>>>>> without issue.
>>>>>> As soon the cluster is synced it works fine ..
>>>>>>
>>>>>> It appears that TMSH is not allowing the script to work but it
>>>>>> works fine if I run it manually on the BIG-IP
>>>>>>
>>>>>> What could be the problem ?
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>> Shaun
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net
>>>>>> [1]] On Behalf Of Shaun Krok
>>>>>> Sent: Monday, October 13, 2014 8:13 AM
>>>>>> To: Mick ORourke
>>>>>> Cc: rancid-discuss at shrubbery.net [2]
>>>>>> Subject: Re: [rancid] rancid not working with partitions v11.x
>>>>>> tmsh F5 LTM
>>>>>>
>>>>>> Thank your for the reply ---
>>>>>>
>>>>>> i have created a bash script on the F5 and it works creating a
>>>>>> test.file with all the config
>>>>>> the file is in /root/f5part
>>>>>>
>>>>>> #!/bin/bash
>>>>>> tmsh -q -c cd / ;list recursive
>>>>>>
>>>>>> how do i call from f5rancid or do i have this all wrong ?
>>>>>>
>>>>>> {tmsh -q list => WriteTermTMSH},
>>>>>> #{tmsh -q -c /"cd /;list recursive"/ => WriteTermTMSH},
>>>>>>
>>>>>> On 2014-10-13 06:13, Mick ORourke wrote:
>>>>>> > We found easiestquickest way to modify rancid-f5 - post 11.x
>>>>>> version
>>>>>> > checkdetect, call a bash script under /root/bin which runs
>>>>>> "tmsh -q
>>>>>> > -c
>>>>>> > cd / ;list recursive" working around the rancid
>>>>>> limitationerrors that
>>>>>> > resulted when  cd / ;list recursive was added to rancid-f5
>>>>>> itself.
>>>>>> >
>>>>>> > On 12 October 2014 15:27, Shaun Krok <krok at krok.za.net [3] [4]>
>>>>>> wrote:
>>>>>> >
>>>>>> >> Hi
>>>>>> >>
>>>>>> >> I am busy to integrate Rancid into our network and have an
>>>>>> issue
>>>>>> >> with partitions on BIG IP LTM v11.x
>>>>>> >> All  works fine but Rancid does not backup all partitions …
>>>>>> >> I am using the script from GIT with TMSH commands
>>>>>> >>
>>>>>> >> This command work from bash : tmsh -q -c "cd /; list
>>>>>> recursive" but
>>>>>> >> does not from the script ..
>>>>>> >>
>>>>>> >> This is a snip from the forum where the issue was identified
>>>>>> but is
>>>>>> >> anyone aware if there is a fix :
>>>>>> >>
>>>>>> >> Thanks
>>>>>> >>
>>>>>> >> Shaun
>>>>>> >>
>>>>>> >> here is a working tmsh version in the rancid git repo.
>>>>>> >>
>>>>>> >> The only thing that doesnt work when adjusting the script to
>>>>>> list
>>>>>> >> all
>>>>>> >> partition co config is a tmsh -q -c "cd /; list recursive" -
>>>>>> it
>>>>>> >> errors out
>>>>>> >> due to extra double quotes required by the -c option.
>>>>>> >> On Dec 6, 2012 8:57 PM, "Darius Seroka" <dariusjs at gmail.com
>>>>>> [4] [1]>
>>>>>> >> wrote:
>>>>>> >>
>>>>>> >> Shaun Krok
>>>>>> >> Network Team
>>>>>> >>
>>>>>> >> --
>>>>>> >> Shaun Krok
>>>>>> >> Tel: 050 2424 381
>>>>>> >> _______________________________________________
>>>>>> >> Rancid-discuss mailing list
>>>>>> >> Rancid-discuss at shrubbery.net [5] [2]
>>>>>> >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss [6]
>>>>>> [3]
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > Links:
>>>>>> > ------
>>>>>> > [1] http://gmail.com [7]
>>>>>> > [2] mailto:Rancid-discuss at shrubbery.net [8]
>>>>>> > [3] http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>>>>>> [9]
>>>>>> > [4] mailto:krok at krok.za.net [10]
>>>>>>
>>>>>> --
>>>>>> Shaun Krok
>>>>>> Tel: 050 2424 381
>>>>>> _______________________________________________
>>>>>> Rancid-discuss mailing list
>>>>>> Rancid-discuss at shrubbery.net [11]
>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss [12]
>>>>>>
>>>>>> This email message and its attachments are for the sole use of the
>>>>>> intended recipient(s) and may not be shared with any other party.
>>>>>> They may contain confidential information of 888 Holdings plc or
>>>>>> its direct and indirect subsidiaries (together, the “888
>>>>>> Group”) and are to be regarded as confidential information under
>>>>>> any non-disclosure agreement. Any review, use, disclosure or
>>>>>> distribution by persons or entities other than the intended
>>>>>> recipient(s) is prohibited. Nothing in this message is capable of
>>>>>> or intended to create any legally binding obligation. The 888
>>>>>> Group will only ever assume a legally binding obligation where
>>>>>> recorded in a written agreement duly executed by the authorized
>>>>>> signatories of the relevant 888 Group company. The 888 Group
>>>>>> accepts no liability for any personal views expressed in this
>>>>>> message. If you are not the intended recipient, please contact the
>>>>>> sender by return and destroy all copies of the original message
>>>>>> and its attachments. Thank you
>>>>>>
>>>>>> _______________________________________________
>>>>>> Rancid-discuss mailing list
>>>>>> Rancid-discuss at shrubbery.net [13]
>>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss [14]
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> This email message and its attachments are for the sole use of the
>>>>> intended recipient(s) and may not be shared with any other party.
>>>>> They may contain confidential information of 888 Holdings plc or its
>>>>> direct and indirect subsidiaries (together, the “888 Group”) and
>>>>> are to be regarded as confidential information under any
>>>>> non-disclosure agreement. Any review, use, disclosure or
>>>>> distribution by persons or entities other than the intended
>>>>> recipient(s) is prohibited. Nothing in this message is capable of or
>>>>> intended to create any legally binding obligation. The 888 Group
>>>>> will only ever assume a legally binding obligation where recorded in
>>>>> a written agreement duly executed by the authorized signatories of
>>>>> the relevant 888 Group company. The 888 Group accepts no liability
>>>>> for any personal views expressed in this message. If you are not the
>>>>> intended recipient, please contact the sender by return and destroy
>>>>> all copies of the original message and its attachments. Thank you
>>>>> _______________________________________________
>>>>> Rancid-discuss mailing list
>>>>> Rancid-discuss at shrubbery.net [18]
>>>>> http://www.shrubbery.net/mailman/listinfo/rancid-discuss [19]
>>>>>
>>>>
>>>>
>>>>
>>>> Links:
>>>> ------
>>>> [1] mailto:rancid-discuss-bounces at shrubbery.net
>>>> [2] mailto:rancid-discuss at shrubbery.net
>>>> [3] mailto:krok at krok.za.net
>>>> [4] http://gmail.com
>>>> [5] mailto:Rancid-discuss at shrubbery.net
>>>> [6] http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>>>> [7] http://gmail.com
>>>> [8] mailto:Rancid-discuss at shrubbery.net
>>>> [9] http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>>>> [10] mailto:krok at krok.za.net
>>>> [11] mailto:Rancid-discuss at shrubbery.net
>>>> [12] http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>>>> [13] mailto:Rancid-discuss at shrubbery.net
>>>> [14] http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>>>> [15] mailto:john.kougoulos at gmail.com
>>>> [16] mailto:rancid-discuss at shrubbery.net
>>>> [17] mailto:Shaun.Krok at 888holdings.com
>>>> [18] mailto:Rancid-discuss at shrubbery.net
>>>> [19] http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>>>> [20] mailto:Shaun.Krok at 888holdings.com
>>>>
>>>
>>> --
>>> Shaun Krok
>>> Tel: 050 2424 381
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150210/10b36e26/attachment.html>


More information about the Rancid-discuss mailing list