]> git.sesse.net Git - nms/blobdiff - web/tempfetch.pl
Put Zyxel password in config.pm.
[nms] / web / tempfetch.pl
index 3a5c84dfbc49bcb92da7e386099c0063b05eb16a..76966e6f0525f8e54567303292e27685b7da8c3f 100644 (file)
@@ -9,10 +9,8 @@ use lib '../include';
 use nms;
 use strict;
 use warnings;
-#require 'SNMP_Session.pm';
 
 # Tweak timeouit og sjekk med :support||:net hva passord vil bli
-my $password = 'removed';
 my $timeout = 25;
 my $location = 'skipet';
 
@@ -125,7 +123,7 @@ sub switch_connect {
        #$conn->login(  Prompt => '/password[: ]*$/i',
        #               Name => $password,
        #               Password => $password);
-       my @data = $conn->cmd($password);
+       my @data = $conn->cmd($nms::config::zyxel_password);
        # Get rid of banner
        $conn->get;
        return ($conn);