I believe my code comments explained why I forced a true return...the
foundry does not have a destroy action to set as the cisco's do. Foundry's
snmp sequence for downloading configs auto-destroys no matter.

I don't even need that check at the top, since I am putting in the log each
result via the wait function.

It works though. Its the reults I was trying to achieve. I am still cleaning
and commenting the code then I will post it along with the sql changes.

--------------------------
Jeff Singleton, Network System Admin
Secure Computing Corp (Trusted Source)
C: (770)820-2909
NASDAQ: SCUR

----- Original Message -----
From: [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
To: jffnms-users@lists.sourceforge.net <jffnms-users@lists.sourceforge.net>
Sent: Sun Jul 29 17:54:57 2007
Subject: Re: [jffnms-users] Foundry Config Dump [SOLVED]

On Fri, Jul 27, 2007 at 02:31:36PM -0400, Jeffrey Singleton wrote:
> The enable password is hardcoded for now --- I will be releasing a
> complete patch which will draw the password from an encrypted table in
> the database.
I think I got around that by setting some value so I didnt use the
enable password. There definitely is a config line in a foundry
that stops you from having to do that.

I'd be interested to see if the function can work with the normal JFFNMS
SNMP functions.

>           if ($result == 1)  // Complete
>           logger("Config for $ip Downloaded Successfully : Result is
> $result");
>           return true;
Aren't you missing brackets here? If the result is 1 you print the
logger message but don't return.  In fact you return true no matter what
happens :/

 - Craig
-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/                             csmall at : enc.com.au
http://www.debian.org/          Debian GNU/Linux, software should be Free 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to