Search found 60 matches

by grady
Fri Jun 25, 2010 11:29 am
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Alternatively a MUCH easier solution here is to use the above sql to create a row for ASA device type that looks like this: | 4 | ASA | sername: | assword: | write net | sh ver | y | 1 | Then, hop out to your ASA and add the following to the config: tftp-server inside x.x.x.x <device name> Then rout...
by grady
Wed Jun 23, 2010 2:28 pm
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Hi diesel, sorry -- ive been out for a while. Youve got a couple of options there. The easiest of course would be to allow hairpinning on the ASA, though there's likely security issues that you'd need to address if you decided to take that route. The other would be to add a device type to the plugin...
by grady
Wed May 05, 2010 11:56 am
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Sounds good.
by grady
Wed May 05, 2010 10:26 am
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

OK, was just wondering about the different accounts as I'm using different accounts here. If you want to skip checking for > you'd want to comment out the following lines: (lines 469 - 501 in my functions file) if ($enablepw != '') { # Get > to show we are at the command prompt and ready to input th...
by grady
Wed May 05, 2010 9:48 am
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Sorry for the delayed response here. Things have been hectic @ the office lately and I haven't had a moment to spare. So at this point you've upgraded php and things are working other than cisco device backups? Heres my php ver: PHP 5.1.6 (cli) (built: Jan 13 2010 17:13:05) Copyright (c) 1997-2006 T...
by grady
Tue Apr 27, 2010 9:57 am
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Strange, I dont see that echo in your output. It looks like the select is what's breaking. (select being the if $value == "HP" line) For some reason it looks like it's not executing that if block. Underneath the if $value == HP line add in a echo "are we here?"; and rerun it. Let's see if that shows...
by grady
Mon Apr 26, 2010 12:59 pm
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Right below this comment (//If non-cisco use PHPTelnetHP class vs standard ) is a select statement that's then run through a foreach and if block. Let's add the following to it: (underneath the foreach and then its opening brace) echo "value is $value"; Then run it again and post the output. I just ...
by grady
Mon Apr 26, 2010 9:18 am
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

It almost looks like theres a syntax error in functions that while not severe enough to cause it to not run, has made it unaware of the enablepw variable. Back that file up and try this one out of the box from the command line again and post the results if you would.
by grady
Fri Apr 23, 2010 1:02 pm
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Yeah, I'd run it from cli using php /cactipath/plugins/routerconfigs/router-download.php and watch it til it completes. Ive removed some of the echo stuff from the script (cause I didnt need it) and as such the debug information isnt always useful. When it finishes it'll either say failed or success...
by grady
Fri Apr 23, 2010 12:23 pm
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Youre still running it from the command line? If so does it eventually error out or just hang forever or what? It ought to work fine. I have updated code if you'd like to try it. (I've now extended it to work with HP and Foundry devices)
by grady
Fri Apr 16, 2010 1:37 pm
Forum: Plugin General
Topic: Routerconfigs where are thou?
Replies: 1
Views: 809

You need to make sure that the user youre logging in as has rights to do so. Go through user management to realm permissions and make sure that routerconfigs is checked.
by grady
Thu Apr 15, 2010 2:17 pm
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

A little ways up you should see: $telnet = new PHPTelnet(); Near the bottom of the file is that PHPTelnet class. Do you have the code after the # Get > to show we are at the command prompt and ready to input the en command comment in that class that looks for the different cisco prompts?
by grady
Thu Apr 15, 2010 2:08 pm
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

What do you mean it doesnt follow?
by grady
Tue Apr 13, 2010 8:11 am
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

That's very strange. It ought to work with enable as well. When the device type is pulled from that table there's an if statement that says if name = HP use telnetHP. -- If you page down near the bottom of the functions file you'll see both of those classes defined. Note that the telnethp class does...
by grady
Fri Apr 09, 2010 11:51 am
Forum: Plugin Development
Topic: Routerconfigs plugin / how it works?
Replies: 101
Views: 51920

Yeah, so what should happen based on the below code is this. $devicetypeHP is a mysql select NAME from the plugin_routerconfigs_devicetypes table where blah isn't null. That returns a variable of type array, so we use php's foreach to evaluate what's returned and assign that string to $value. If $va...