Afernoon All,
I hope someone could help me in regards to a small tftp problem i am having.
I am connecting to a network element (radio) via its ip address and then tftp'ing the file to a local folder.
I know the tftp works, as i can open the files. The trouble is my understanding of the mode of transfer part of the code.
If i leave all options of defining the mode the files i require are downloaded; ie; file 1 is a log file and file 2 is a pm file (performance). I can read file 1 no problems, all in plain english as a text file. The pm file asks you to choose the format to view, i pick notepad for instance and it is just a jumble of heirogliphics.
To me it is a transfer problem, but i may be putting that command in wrong, any ideas of what i may be doing wrong and where to put the correct command (no sick suggestions please)!!!
Here is some example code:
sub tftpne {
$tftp = new TFTP ($ipaddress);
$tftp ->mode (binary); #this line, (left in or out)makes no difference to the output to local folder???
$tftp ->get ("/pmon/weekly-total.pm");
$tftp ->get ("/log/debug.log");
$tftp ->quit;
}
This subroutine is called when a specific ne is found. The options for transfer are netascii, ascii, octet and binary.
Ok, please throw some suggestions into the pot for me
Regards
mhb
I hope someone could help me in regards to a small tftp problem i am having.
I am connecting to a network element (radio) via its ip address and then tftp'ing the file to a local folder.
I know the tftp works, as i can open the files. The trouble is my understanding of the mode of transfer part of the code.
If i leave all options of defining the mode the files i require are downloaded; ie; file 1 is a log file and file 2 is a pm file (performance). I can read file 1 no problems, all in plain english as a text file. The pm file asks you to choose the format to view, i pick notepad for instance and it is just a jumble of heirogliphics.
To me it is a transfer problem, but i may be putting that command in wrong, any ideas of what i may be doing wrong and where to put the correct command (no sick suggestions please)!!!
Here is some example code:
sub tftpne {
$tftp = new TFTP ($ipaddress);
$tftp ->mode (binary); #this line, (left in or out)makes no difference to the output to local folder???
$tftp ->get ("/pmon/weekly-total.pm");
$tftp ->get ("/log/debug.log");
$tftp ->quit;
}
This subroutine is called when a specific ne is found. The options for transfer are netascii, ascii, octet and binary.
Ok, please throw some suggestions into the pot for me
Regards
mhb