Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. hanzonizer

    SQL-question in netdisco

    I got help from another forum, but thanks for all the tips anyway! /Jimmy
  2. hanzonizer

    SQL-question in netdisco

    Hmm.. tried to alter the code to see what happend, and the error message disappeared, but I get another one instead: dbh() - db_Pg not found in config info. The code now looks like this: #! /usr/bin/perl # # Usage: # Fetch IP-adresses from routers that the script # show_mac_ip needs to be...
  3. hanzonizer

    SQL-question in netdisco

    Hmm, I think it´s something of a path problem. My netdisco installation is in /usr/local/netdisco folder, although my DB.pm is not in the netdisco folder it is located in /usr/share/perl/5.8.7 (like most of all the other .pm-files) I have tried adding the last mentioned directory to @INC with...
  4. hanzonizer

    SQL-question in netdisco

    Unfortunately that didn´t work. The lib pragma does it´s job, and the directory I added does contain DB.pm but the error message still tells me that it can´t locate DB.pm despite the fact that @INC now contains the directory where it is located. Can there be any other problems with the code...
  5. hanzonizer

    SQL-question in netdisco

    Forgot to mention this, but the reason I´m posting this question here is that the mailing list and documentation of netdiscos system and management isn´t that good. Mailing list posts at most one message a week, so I´m hoping for a quicker answer here...
  6. hanzonizer

    SQL-question in netdisco

    Hi! I don´t know if anyone has worked with netdisco (open source webbased networkdatabase), but I´m having problem writing a code that can ask a SQL-question (Postgre SQL) and retrieve the answer to a file. So far I have written this code: #! /usr/bin/perl -w # # Usage: # Fetch IP-adresses...
  7. hanzonizer

    No output from telnet->cmd(´show mac´)

    Aha, you´re using Telnet::Cisco! I don´t, unfortunately. (working with a prewritten code that was intended for cisco pix firewall) On the other hand, I came up with a other solution that does work, but involved printing the data (in scalar format) to a file, and from there reading it into a...
  8. hanzonizer

    No output from telnet->cmd(´show mac´)

    Yes, I get output when I type the command from the console. Unfortunatly the "return" didn´t do the trick. When I add it it doesn´t even recognize the command, so it must already be sending that in the end. I have tried to have an telnet->waitfor(prompt) after the telnet->cmd and that did...
  9. hanzonizer

    No output from telnet->cmd(´show mac´)

    Maybe I was a little bit unclear in my explanation. The cisco 2610 router has a built in switch-port. That´s wy I need to use show mac instead of show arp. You can´t poll the mac-adresses from it via SMNP because of that fact. Anyhow, the telnet->cmd doesn´t output any data no matter if you run...
  10. hanzonizer

    No output from telnet->cmd(´show mac´)

    I´m trying to make a script that reads the mac-adress-table from a cisco 2610 router and then writes the data to a netdisco database. The problem is that I don´t get the command : my @mac = $telnet->cmd(´show mac dynamic | begin 0´) to work. The output thats supposed to be generated by the...

Part and Inventory Search

Back
Top