[rancid] F5 backups are only working for some hosts via cron, but always manually
Stephan Seitz
stse+rancid at fsing.rootsland.net
Thu Dec 5 15:22:36 UTC 2013
On Wed, Dec 04, 2013 at 10:05:51PM +0200, Alan McKinnon wrote:
>This is a common problem with cron and has little to do with the program
>being run and everything to do with the environment. Cron does not run
Well, I can say after several tests that I have probably found the
problem, but I don’t understand it.
The command:
clogin -t 90 -c"bigpipe version;bigpipe platform;cat /config/bigip.license;bigpipe monitor list all;bigpipe profile list;bigpipe base list;bigpipe db show;bigpipe route static show;ls --full-time --color=never /config/ssl/ssl.crt;ls --full-time --color=never /config/ssl/ssl.key;bigpipe list" bigip2b
a) called directly from the rancid user shell
b) called from the root shell via „su - rancid -c <command>”
Looking at the different outputs of the problematic lines I can see the
following:
a)
[root at bigip2b:Standby] config # ls --full-time --color=never /config/ssl/ssl.crt^M
<output>
[root at bigip2b:Standby] config # ls --full-time --color=never /config/ssl/ssl.key^M
<output>
[root at bigip2b:Standby] config # bigpipe list^M
<output>
b)
[root at bigip2b:Standby] config # ls --full-time --color=never /config/ssl/ssl.crt ^M^[[A[root at bigip2b:Standby] config # ls --full-time --color=never /config/ssl/ssl.cr^[[Kt^M
<output>
ls --full-time --color=never /config/ssl/ssl.key^M
[root at bigip2b:Standby] config # ls --full-time --color=never /config/ssl/ssl.key ^M^[[A[root at bigip2b:Standby] config #total 64^M
<output>
e[root at bigip2b:Standby] config # bigpipe list^M
<output>
So besides the CR characters the second output shows some other control
characters which probably confuses the parser in the end.
Is this the right conclusion? But why do I get these additional control
characters in the second case?
Shade and sweet water!
Stephan
--
| Stephan Seitz E-Mail: stse at fsing.rootsland.net |
| Public Keys: http://fsing.rootsland.net/~stse/keys.html |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3621 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20131205/2b6a011f/attachment.bin>
More information about the Rancid-discuss
mailing list