/****************************************************************************** * Copyright 1991-2003 by Quantum, Inc. All rights reserved. * No part of this work may be reproduced or transmitted in any * form or by any means, electronic or mechanical, including * photocopying and recording, or by any information storage * or retrieval system, except as may be expressly permitted by * the 17 U.S.C. section 101, et. seq., or in writing by * Quantum, Inc. *******************************************************************************/ /****************************************************************************** * Name: setupSNMP.htm * Purpose: Setup the SNMP settings * $Id: setupSNMP.htm 1.7 2006/10/31 14:50:37MST Bill Gray (bgray) dev $ *******************************************************************************/ include('common_admin_inc.htm'); class SNMPInfo { var $version1; var $community_name; var $auth_traps_enabled; function SNMPInfo( $enabled, $community, $authTraps) { $this->version1 = $enabled; $this->community_name = $community; $this->auth_traps_enabled = $authTraps; } }; // Handel the progress screen if opened and get the NEW data if ($_SERVER[REQUEST_METHOD] == "POST") { $operationInProgress = true; $status = new ReturnStatus(); error_log("snmp settings = enabled: ".$_POST['enabled']." community: ".$_POST['community_name']." traps enabled: ".$_POST['auth_traps_enabled']); $snmpInfo = new SNMPInfo($_POST['enabled'], $_POST['community_name'], $_POST['auth_traps_enabled']); error_log("Setting SNMP with: ". $_POST['enabled'] .", ". $_POST['community_name'].", ".$_POST['auth_traps_enabled']); set_snmp_settings($user, $snmpInfo ); print $status->out(); return; } else { // Load stuff up for the first time $snmpSettings = get_snmp_settings( $user ); error_log("snmp settings = ". print_r($snmpSettings, true) ); } ?>
Setup - SNMP |
Select enabled to enabled SNMP v1, and V2c,
enter the SNMP community, and select authorization traps for
enabling traps when a snmp authorization failure occurs.
Select the settings you would like to modify: |