Changeset 11729 in genesis


Ignore:
Timestamp:
Feb 13, 2013, 8:13:25 PM (12 years ago)
Author:
rick
Message:
  • Less logging
  • extra ID for model
  • fqdn connect by default
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/check-batch-cmd

    r11727 r11729  
    1515import sys
    1616import time
     17import logging
     18
     19logging.basicConfig(level=logging.INFO)
     20logger = logging.getLogger(__name__)
     21logging.getLogger("paramiko").setLevel(logging.WARNING)
    1722
    1823SSHPASS = None
     
    5459  var_list = netsnmp.VarList(
    5560   *map(lambda x: netsnmp.Varbind(x),
    56     ['.1.2.840.10036.3.1.2.1.3.6', '.1.2.840.10036.3.1.2.1.3.7']))
     61    ['.1.2.840.10036.3.1.2.1.3.5', '.1.2.840.10036.3.1.2.1.3.6', '.1.2.840.10036.3.1.2.1.3.7']))
    5762 
    5863  sess = netsnmp.Session(Version=1, DestHost=host, Community='public', Timeout=2 * 100000, Retries=1)
     
    100105  try:
    101106    wl_release = subprocess.check_output(['snmpget', '-Oq', '-Ov',  '-c', 'public', '-v2c',
    102       host, 'UCD-SNMP-MIB::ucdavis.84.4.1.2.6.119.108.45.118.101.114.1'])
     107      datadump['autogen_fqdn'], 'UCD-SNMP-MIB::ucdavis.84.4.1.2.6.119.108.45.118.101.114.1'])
    103108    datadump['wl_release'] = int(wl_release.replace('"',''))
    104109  except subprocess.CalledProcessError, ValueError:
Note: See TracChangeset for help on using the changeset viewer.