I am new with Perl and mechanize,
I have follow output From Webinterface of common switch, the Switch have no Commandline,
so I have 60 Switches and I will automaticly save the Config to an TFTP Server,

 mech-dump --forms http://172.16.x.x/en/config_transfer.htm
GET http://172.16.x.x/en/config_transfer.htm [genForm]
  WINDWEB_URL=/fs/doc/protected/en/config_transfer.htm (hidden readonly)
  resetPageVars=0                (hidden readonly)
  applyChanges=0                 (hidden readonly)
  commitClientIp=         (hidden readonly)
  manualLogout=1                 (hidden readonly)
  commitPassword=password        (hidden readonly)
  scriptFaultDetected=0          (hidden readonly)
  flagReboot=1                   (hidden readonly)
  FlMSwitch_flWorkFWCtrlConfStatus=1 (hidden readonly)
  FlMSwitch_flWorkFWConfigTftpIPAddr=172.16.x.x (text)
  FlMSwitch_flWorkFWConfigTftpFile=Glattfelden1.cfg (text)
  FlMSwitch_flWorkFWConfigExecute=<UNDEF> (radio)    [3/device to host|2/host to device]
  password=                      (password)
  Apply=Apply                    (button)
  saveChanges=0                  (hidden readonly)

Now I must write
the Module for that, How I am going to use the data from mechdump --forms
into my for Example

use WWW::Mechanize;
my $m = WWW::Mechanize->new();

$m = WWW::Mechanize->new();

$url = 'http://172.16.x.x/en/config_transfer.htm';
$m->get($url); ??

How I complete the Code so that Mechanize puts automaticli the Passwort in
give always a new Ip for the tftp Server and submits the form?

I just need a running example
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

michapdmAuthor Commented:
Problem is fixed I use Wireshark, und I logged the transmission to the server, then all Values i put in the mechanizer with adjustment.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
michapdmAuthor Commented:
fixed by my self
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.