Networker

[Networker] admin program

2004-12-08 02:28:37
Subject: [Networker] admin program
From: Gerrit Sere <gerrit.sere AT COO.VLAANDEREN DOT BE>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 8 Dec 2004 08:29:28 +0100
Hi all,

I made a little python program for having a nice and quick overview of
what my backup server is doing .
I made it in my language but if somebody like it, I  sent it and try to
translate it in English.

It looks something like :

[email protected] # leginfo -h
Already need help ?, for the moment we have :

command                  : leginfo [-B dd/mm/jjjj days] [-C] [-G] [-S]
[-X] [-g group] date [-s schedule]
-B dd/mm/jjjj days     :  list backup a from a day and the following days
-C                      : list clients
-G                      : list all groups and the starting hour
-S                      : list all shedules
-X                      : list clients who don't have a schedule or group
-g group [dd/mm/jjjj]   : list clients in this group and de schedule
for this day or asked day
-s schedule              : give info about this schedule

a few examples :

#leginfo -B 12/8/2004 4

[email protected] # leginfo -B 12/8/2004 4
server                                       12/ 8 13/ 8 14/ 8 15/ 8
--------------------------------------------------------------------
azfd01.azf.vlaanderen.be            incr  incr  skip  skip
azfd02.azf.vlaanderen.be            incr  incr  skip  skip
azfd03.azf.vlaanderen.be            incr  incr  skip  skip
azfd04.azf.vlaanderen.be            incr  full  skip  skip
azfd05.azf.vlaanderen.be            incr  incr  skip  skip
bru000center01m.vlaanderen.be       incr  incr  skip  skip
...

#[email protected] # leginfo -C
server                                  groep
shedule             save set
----------------------------------------------------------------------------------------------------
azfd01.azf.vlaanderen.be                Windows
FullVrEvenWeek      All
azfd02.azf.vlaanderen.be                Windows
FullVrEvenWeek      All
azfd03.azf.vlaanderen.be                Windows
FullVrEvenWeek      All
mvg6369-bu.vlaanderen.be                NIHIL
FullDiOnevenWeek    All
mvgsrv01.vlaanderen.be                  Windows
FullVrEvenWeek      All
ondwp.ond.vlaanderen.be                 DBA-Servers
FullVrOnevenWeek    /; /usr; /transfer
ong2mf.ond.vlaanderen.be                Windows
FullVrEvenWeek      All
...

#[email protected] # leginfo -G
Groep                         Start groep
--------------------------------------------------
BeveiligdSegment              23:59
Boudewijn                     22:30
DBA-Servers                   23:59
Ferraris                      19:00
FullInDeWeek                  18:30
Local                         6:55
Mailcluster                   19:00
Portal1                       19:00
Portal2                       23:59
Windows                       22:00

#[email protected] # leginfo -S
shedule                        Zo   Ma   Di   Wo   Do   Vr   Za
----------------------------------------------------------------------------------------------------
Default                       full incr incr incr incr incr incr

shedule                        Zo   Ma   Di   Wo   Do   Vr   Za
----------------------------------------------------------------------------------------------------
FullDiEvenWeek                skip incr full incr incr incr skip
    date           level     date           level     date
level     date           level
----------------------------------------------------------------------------------------------------
    12/22/2009     5          08/05/2008     5          03/20/2007
5          11/01/2005     5
    12/08/2009     5          07/22/2008     5          03/06/2007
5          10/18/2005     5
    11/24/2009     5          07/08/2008     5          02/20/2007
5          10/04/2005     5
    11/10/2009     5          06/24/2008     5          02/06/2007
5          09/20/2005     5
...
shedule                        Zo   Ma   Di   Wo   Do   Vr   Za
----------------------------------------------------------------------------------------------------
FullDiOnevenWeek              skip incr full incr incr incr skip
    date           level     date           level     date
level     date           level
----------------------------------------------------------------------------------------------------
    12/29/2009     5          08/12/2008     5          03/27/2007
5          11/08/2005     5
    12/15/2009     5          07/29/2008     5          03/13/2007
5          10/25/2005     5
    12/01/2009     5          07/15/2008     5          02/27/2007
5          10/11/2005     5
    11/17/2009     5          07/01/2008     5          02/13/2007
5          09/27/2005     5
    11/03/2009     5          06/17/2008     5          01/30/2007
5          09/13/2005     5
    10/20/2009     5          06/03/2008     5          01/16/2007
5          08/30/2005     5
...

[email protected] # leginfo -X
server                                  groep
shedule             save set
----------------------------------------------------------------------------------------------------
bru000sbs03m                            NIHIL
FullVrEvenWeek      All
bru000sbs05m.sbs.vlaanderen.be          NIHIL
FullVrEvenWeek      All
mvg6369-bu.vlaanderen.be                NIHIL
FullDiOnevenWeek    All
...

#[email protected] # leginfo -g Windows
Groep (Wed 08 Dec 2004)       Start groep         Week
----------------------------------------------------------------------
Windows                       22:00               50
  server                                  shedule             level
----------------------------------------------------------------------
  azfd01.azf.vlaanderen.be                FullVrEvenWeek      incr
  azfd02.azf.vlaanderen.be                FullVrEvenWeek      incr
  azfd03.azf.vlaanderen.be                FullVrEvenWeek      incr
  azfd04.azf.vlaanderen.be                FullVrEvenWeek      incr
  azfd05.azf.vlaanderen.be                FullVrEvenWeek      incr
.....

#[email protected] # leginfo -g Windows 17/12/2004
Groep (Fri 17 Dec 2004)       Start groep         Week
----------------------------------------------------------------------
Windows                       22:00               51
  server                                  shedule             level
----------------------------------------------------------------------
  azfd01.azf.vlaanderen.be                FullVrEvenWeek      5
  azfd02.azf.vlaanderen.be                FullVrEvenWeek      5
  azfd03.azf.vlaanderen.be                FullVrEvenWeek      5
  azfd04.azf.vlaanderen.be                FullVrEvenWeek      5
....

#[email protected] # leginfo -s FullVrEvenWeek
shedule                        Zo   Ma   Di   Wo   Do   Vr   Za
----------------------------------------------------------------------------------------------------
FullVrEvenWeek                skip incr incr incr incr full skip
    date           level     date           level     date
level     date           level
----------------------------------------------------------------------------------------------------
    12/25/2009     5          08/08/2008     5          03/23/2007
5          11/04/2005     5
    12/11/2009     5          07/25/2008     5          03/09/2007
5          10/21/2005     5
    11/27/2009     5          07/11/2008     5          02/23/2007
5          10/07/2005     5
    11/13/2009     5          06/27/2008     5          02/09/2007
5          09/23/2005     5
    10/30/2009     5          06/13/2008     5          01/26/2007
5          09/09/2005     5
    10/16/2009     5          05/30/2008     5          01/12/2007
5          08/26/2005     5
    10/02/2009     5          05/16/2008     5          12/29/2006
5          08/12/2005     5
...
    09/05/2008     5          04/20/2007     5          12/02/2005
5          08/13/2004     5
    08/22/2008     5          04/06/2007     5          11/18/2005     5

 server (week : 50)                 groep
server                             groep

----------------------------------------------------------------------------------------------------
 azfd01.azf.vlaanderen.be           Windows
ong2mf.ond.vlaanderen.be           Windows
 azfd02.azf.vlaanderen.be           Windows
onprod01d.ond.vlaanderen.be        Windows
 azfd03.azf.vlaanderen.be           Windows
onproxy.ond.vlaanderen.be          Windows
 azfd04.azf.vlaanderen.be           Windows
onras.ond.vlaanderen.be            Windows
 azfd05.azf.vlaanderen.be           Windows
s001111-bu.vlaanderen.be           Boudewijn
 bru000center01m.vlaanderen.be      Windows
s001116-bu.vlaanderen.be           Boudewijn
...


Regards,
Gerrit

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>
  • [Networker] admin program, Gerrit Sere <=