Exemplo n.º 1
0
 def buildOptions(self):
     CyclingDaemon.buildOptions(self)
     self.parser.add_option('--device',
                            dest='rDevice',
                            type='string',
                            default='',
                            help='Run Rancid for a single device')
     self.parser.add_option(
         '--rcssys',
         dest='rancid_rcssys',
         type='string',
         default="svn",
         help=
         'Rancid repository, use either SVN or CVS - default SVN (not yet supported)'
     )
     self.parser.add_option(
         '--starttime',
         dest='starttime',
         type='string',
         default="02:00",
         help='Rancid start time. Format = HH:MM (default 02:00)')
     self.parser.add_option(
         '--repeat',
         dest='repeat',
         type='int',
         default=86400,
         help=
         'Rancid cycle time in seconds, run only once a day by default. (default 86400)'
     )
Exemplo n.º 2
0
    def buildOptions(self):
        CyclingDaemon.buildOptions(self)

        self.parser.add_option('--numSlots',
                               dest='numSlots',
                               type='int',
                               help='Number of slots in chassis',
                               default=0)
        self.parser.add_option('--maxPorts',
                               dest='maxPorts',
                               type='int',
                               help='Number of ports in chassis',
                               default=0)
        self.parser.add_option('--chassisName',
                               dest='chassisName',
                               type='string',
                               help='Number of slots in chassis',
                               default="1900")
        self.parser.add_option('--slot0_IP',
                               dest='slot0_IP',
                               type='string',
                               help='IP Address of Slot0')
        self.parser.add_option('--slot1_IP',
                               dest='slot1_IP',
                               type='string',
                               help='IP Address of Slot1')
        self.parser.add_option('--slot2_IP',
                               dest='slot2_IP',
                               type='string',
                               help='IP Address of Slot2')
        self.parser.add_option('--slot3_IP',
                               dest='slot3_IP',
                               type='string',
                               help='IP Address of Slot3')
        self.parser.add_option('--slot4_IP',
                               dest='slot4_IP',
                               type='string',
                               help='IP Address of Slot4')
        self.parser.add_option('--slot5_IP',
                               dest='slot5_IP',
                               type='string',
                               help='IP Address of Slot5')
Exemplo n.º 3
0
 def buildOptions(self):
     CyclingDaemon.buildOptions(self)
     self.parser.add_option('--duration', dest='duration', type='int', default=60, help='Duration of evaluation period')
Exemplo n.º 4
0
 def buildOptions(self):
     CyclingDaemon.buildOptions(self)
     self.parser.add_option( '--device', dest='rDevice', type='string', default='', help='Run Rancid for a single device')
     self.parser.add_option( '--rcssys', dest='rancid_rcssys', type='string', default="svn", help='Rancid repository, use either SVN or CVS - default SVN (not yet supported)')
     self.parser.add_option( '--starttime', dest='starttime', type='string', default="02:00", help='Rancid start time. Format = HH:MM (default 02:00)')
     self.parser.add_option( '--repeat', dest='repeat', type='int', default=86400, help='Rancid cycle time in seconds, run only once a day by default. (default 86400)')