Beispiel #1
0
 def commit(self):
     # FIXME snmp plugin needs to be placed somewhere else (in src)
     # pylint: disable-msg=E0611
     from ovirt_config_setup import snmp  # @UnresolvedImport
     # pylint: enable-msg=E0611
     if password:
         snmp.enable_snmpd(password)
     else:
         snmp.disable_snmpd()
#!/usr/bin/python
# snmp_autoinstall.py - Copyright (C) 2012 Red Hat, Inc.
# Written by Joey Boggs <*****@*****.**>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA  02110-1301, USA.  A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.

from ovirt_config_setup.snmp import enable_snmpd
import ovirtnode.ovirtfunctions as _functions

args = _functions.get_cmdline_args()
if "snmp_password" in args:
        enable_snmpd(args["snmp_password"])
Beispiel #3
0
#!/usr/bin/python
# snmp_autoinstall.py - Copyright (C) 2012 Red Hat, Inc.
# Written by Joey Boggs <*****@*****.**>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA  02110-1301, USA.  A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.

from ovirt_config_setup.snmp import enable_snmpd
import ovirtnode.ovirtfunctions as _functions

args = _functions.get_cmdline_args()
if "snmp_password" in args:
    enable_snmpd(args["snmp_password"])