in reply to Help with variables

What error are you getting ? I have some code which gets a switches MAC address table via SNMP. /msg me with your e-mail, if interested.

Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.

Replies are listed 'Best First'.
Re: Re: Help with variables
by Anonymous Monk on Jun 02, 2004 at 16:23 UTC
    Nope, haven't done a debug net. Those aren't the real passwords :-) I thought about that, but would rather hard-code it...i know its insecure. It is not a routed network, I'm trying to find this in a distributed core switch.
      I am getting an error bad username at line 137
        OK - It looks like you have misunderstood the parameters for the "login" method.
        $ok = $obj->login($username, $password);
        You seem to be passing in 'login' for the username.
        $device_object->login( 'login', "$PASSWORD" ) # Change 'login' to $USERNAME , which you need to pre-populate. # No need for quotes around "$PASSWORD".

        Offense, like beauty, is in the eye of the beholder, and a fantasy.
        By guaranteeing freedom of expression, the First Amendment also guarntees offense.