OK ...
I am still not getting anywhere with this.
I'm not sure what else to edit or add or look at.
If I run the manual snmp command, I can download the configs from all of
my Foundry Load Balancers all day long.
Using the same OID's and set Requests in jffnms and I get nothing.
I can provide tcpdump logs to show that snmp communication does work.
I can also prove that running the snmpset command from the cli does
work.
So why doesn't it work in JFFNMS?
I have looked at this other project (now abandoned) called Pancho ...
its all perl based and according to the Foundry.pm file that came with
that package, I am doing it right.
It appears that JFFNMS assumes that it can create these temporary ,dat
files for all configs of all devices.
For whatever reason, the Foundry will not write to a file unless it is
already there and writable.
At this point, I would be willing to pay for someone to just write this
code for me and be done with it.
I know JFFNMS is opensource, eg. free ... but if it is ever going to be
truly useful then it has to work with more than just two types of
hardware out-of-box.
To be honest, I really do not understand the structure of JFFNMS well
enough to understand how it does the things it does.
If I want jffnms to capture and inject my Foundry configs as I do the
cisco configs then it appears that a complete and separate structure for
just Foundry will be required.
Here is the script I am trying to make work .... According to Craig,
Jffnms is supposed to create these temporary files for the configs to
dump into ... but only the cisco COPY-CONFIG-MIB function works with
this method. If I modify the script to create a temporary file using
tempnam() I get a bunch of empty files created in the tftpd folder under
jffnms, but no data is written.
#################
<?
/* This file is part of JFFNMS
* Copyright (C) <2002-2005> Javier Szyszlican <[EMAIL PROTECTED]>
* This program is licensed under the GNU GPL, full terms in the LICENSE
file
*/
// FOUNDRY-SN-AGENT-MIB Configuration Downloader Implementation
// successful (1), processing (18), timeout (6), bad access (11),
file-not-found (10)
function config_fdry_cc_get ($ip, $rwcommunity, $server, $filename)
{
chmod("/usr/local/share/jffnms/tftpd", 0777);
if ($ip && $rwcommunity && $server && $filename) {
$result = true; // Must be forced for the Foundry's - I
do not know why!
if ($result==true) {
snmp_set($ip,
$rwcommunity,".1.3.6.1.4.1.1991.1.1.2.1.5.0","a", "$server");
snmp_set($ip,
$rwcommunity,".1.3.6.1.4.1.1991.1.1.2.1.8.0","s", "$filename");
snmp_set($ip,
$rwcommunity,".1.3.6.1.4.1.1991.1.1.2.1.9.0","i","22");
sleep (2);
$result = snmp_walk($ip,
$rwcommunity,".1.3.6.1.4.1.1991.1.1.2.1.9.0");
if ($result == 1);
return true;
}
}
return false;
}
function config_fdry_cc_wait ($ip, $rwcommunity, $server, $filename)
{
$i = 0;
do {
$result = snmp_walk($ip,
$rwcommunity,".1.3.6.1.4.1.1991.1.1.2.1.9.0");
if ($result == 1) return true;
sleep (2);
}
while ($result == 18 && $i++ < 30);
return false;
}
?>
########################
Here is the results ... from running the process from cli:
[EMAIL PROTECTED] /usr/local/share/jffnms/engine]$ php
tftp_get_host_config.php
14:58:29 : H 10 : 192.168.19.19 : fdry_cc : Error Waiting transfer to
finish (4114.85 msec)
14:58:29 TIMES : Total Time 4124.19 msec.
[EMAIL PROTECTED] /usr/local/share/jffnms/engine]$ ls -l ../tftpd/
total 0
########################
-------------------------------------------------------------------------
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