Forum Discussion
assistance in migrating css to f5
I am trying to migrate a old css to a new ltm running version 11.1
I have no experience of the css's and have been "volunteered" to migrate them.
I found the migration scripts on dev central.
I got an error when I first ran the script. That error was that it could not find the file switch.pm
So i moved the css-config file to the same directory that switch.pm resides in.
c:\perl64\lib\cgi
I re-ran the file and now I get a whole load more errors.
C:\Perl64\lib\CGI>css2f5-v11.pl css-a-config.txt > ltm-1.conf
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 44,
near "case "255.255.255.0""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 45,
near "case "255.255.0.0""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 46,
near "case "0.0.0.0""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 47,
near "case "255.255.255.255""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 48,
near "case "255.255.255.128""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 49,
near "case "255.255.255.192""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 50,
near "case "255.255.255.224""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 51,
near "case "255.255.255.240""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 52,
near "case "255.255.255.252""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 53,
near "case "255.255.255.248""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 99,
near "case "username""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 106
, near "case "circuit""
(Do you need to predeclare case?)
String found where operator expected at C:\Perl64\lib\CGI\css2f5-v11.pl line 122
, near "case "ip""
(Do you need to predeclare case?)
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 43, near ") {"
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 45, near "case "255.255.0.0
""
Can't use global @_ in "my" at C:\Perl64\lib\CGI\css2f5-v11.pl line 59, near "=@
_"
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 65, near "}"
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 70, near "exit }"
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 97, near ") {"
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 102, near "} else"
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 120, near "}"
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 126, near "}"
syntax error at C:\Perl64\lib\CGI\css2f5-v11.pl line 130, near "}"
C:\Perl64\lib\CGI\css2f5-v11.pl has too many errors.
C:\Perl64\lib\CGI>
Can anyone assist me in getting the script to work.
Many Thanks in advance
Andrew
- John_Alam_45640Historic F5 AccountAndrew,
- John_Alam_45640Historic F5 AccountSorry, i meant: some versions of perl to not use the switch any more.
- jgranieriNimbostratusI performed two successful migrations from CSS to F5 and I also used the F5 conversion script, beware as it doesnt convert everything.
- jgranieriNimbostratusAndrew if you have any questions let me know I can help out if needed
- John_Alam_45640Historic F5 AccountI just uploaded the new version:
- Nick_T_68319NimbostratusHow many VIP's are on the CSS? If there aren't thousands, I would recommend doing it by hand. Not everything transfers over 1:1. I just took my CSS running-config on one screen and re-built everything on the F5. That way you can make sure everything is moved over perfectly.
- polevoymNimbostratus
Hi
I'm running activeperl version 5.14.2 on windows 7 64bit.
I'm getting the below errors while running the script:
C:\Downloads\F5>css2f5-tmsh.pl css2.txt
C:\Downloads\F5\css2f5-tmsh.pl has too many errors.
I edit the script with the below changes in order to overcome the "swich" errors:
I comment the line "use Switch 'Perl6';" and added the line "use 5.14.2;" instead.
I added the "(" for all the when line like - when ("255.255.255.0") { return "24"}
Will you be able to help with the script?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com