Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > be484111ffa2dc3bfb0cdd0f7622f055 > files > 1

ovirt-node-plugin-snmp-3.0.0-5.0.fc18.noarch.rpm

#!/usr/bin/python
# snmp_autoinstall.py - Copyright (C) 2012 Red Hat, Inc.
# Written by Joey Boggs <jboggs@redhat.com>
#
# 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"])