Craig,
But do Alteos use some of the Cisco Config Transfer systems?
Because if they do you could add the preg_replace there.
If they don't, and its only a modification of the Cisco CC or something, I'll add it to the main program, as it should only match Alteons.
Javier
Craig Small wrote:
While I remember this Javier I have a wishlist for the TFTP transfer
code. Once JFFNMS gets and validates the config, can it then run a
find/replace over the file? The problem is with Alteons they timestamp
their configs, which means every day is a new config! Oh, it re-hashes
the admin password too.
I'm sure there are other devices that do something like this too.
Line 82 in tftp_get_host_config.php
$config_data = str_replace ("'","\'",$config_data); //escape ' /* For Alteons */ $config_data = preg_replace(array('/\/\* Configuration dump taken \d+:\d+:\d+ \S+ \S+ \d+, \d+\n/','/\s+admpw\s+"[a-z0-9]+"/'), array('',''), $config_data);
$aux = current(hosts_config_list (NULL,$config["host_id"],NULL,1)); //get the old config from DB
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Javier Szyszlican, Project Leader, JFFNMS [EMAIL PROTECTED]
I hope JFFNMS or I were helpful to you, if you can, please donate at http://jffnms.org/donate
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jffnms-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jffnms-users
