]> git.sesse.net Git - nms/blobdiff - web/smanagement.pl
Put Zyxel password in config.pm.
[nms] / web / smanagement.pl
index e6474586eb467bc45b3a248e352e0b260074f887..57fa1fc7a880dc829419dfee2ba42b4b8762016b 100755 (executable)
@@ -1,11 +1,6 @@
 #!/usr/bin/perl
 use lib '../include';
 use nms;
-#
-#
-
-my $username = '';
-my $password = 'removed';
 
 # Seconds to wait for connection
 my $timeout = 15;
@@ -65,7 +60,7 @@ sub switch_connect($) {
        #$conn->login(  Prompt => '/password[: ]*$/i',
        #               Name => $password,
        #               Password => $password);
-       $conn->cmd($password);
+       $conn->cmd($nms::config::zyxel_password);
        # Get rid of banner
        $conn->get;
        return ($conn);