Changeset 11729 in genesis
- Timestamp:
- Feb 13, 2013, 8:13:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/check-batch-cmd
r11727 r11729 15 15 import sys 16 16 import time 17 import logging 18 19 logging.basicConfig(level=logging.INFO) 20 logger = logging.getLogger(__name__) 21 logging.getLogger("paramiko").setLevel(logging.WARNING) 17 22 18 23 SSHPASS = None … … 54 59 var_list = netsnmp.VarList( 55 60 *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'])) 57 62 58 63 sess = netsnmp.Session(Version=1, DestHost=host, Community='public', Timeout=2 * 100000, Retries=1) … … 100 105 try: 101 106 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']) 103 108 datadump['wl_release'] = int(wl_release.replace('"','')) 104 109 except subprocess.CalledProcessError, ValueError:
Note:
See TracChangeset
for help on using the changeset viewer.