Hi,
I would need a script that would change one word in the comment, which is always the same, while the other words should remain unchanged.
like this
Roterboard now
set [ find default-name=sfp1 ] comment=lalalal_WORDBEFORE_lalalal name=Gi0/1
set [ find default-name=sfp2 ] comment=vavavav_WORDBEFORE_vavavav name=Gi0/2
set [ find default-name=sfp3 ] comment=dvdvdvd_WORDBEFORE_dvdvdvd name=Gi0/3
Roterboard after script
set [ find default-name=sfp1 ] comment=lalalal_WORDAFTER_lalalal name=Gi0/1
set [ find default-name=sfp2 ] comment=vavavav_WORDAFTER_vavavav name=Gi0/2
set [ find default-name=sfp3 ] comment=dvdvdvd_WORDAFTER_dvdvdvd name=Gi0/3
The script should search for the interface with the keyword "WORDBEFORE" in the comment and change it to "WORDAFTER"
Thanks for your help