Discussion:
[rancid] ! character added to start of GetSystem lines
Gavin McCullagh
2011-02-04 11:33:45 UTC
Permalink
Hi,

using fnrancid (for fortinet), I've noticed that the scripts prefix lines
from the GetSystem command with a !.

Is this a rancid-specific notation or is this an effort to make these lines
into comments, so the whole file could be loaded up on a Fortinet unit? As
far as I can see # is the comment character on Fortinet.

Gavin
Iñaki Martínez Díez
2011-02-04 11:47:07 UTC
Permalink
Hello,

You are right, ! Is for comments in Cisco, so in fortigate should change
these lines in fnracid:

183 ProcessHistory("","","","!$_");
214 ProcessHistory("ENC","","","!$1 ENC <removed> $3\n");
289 ProcessHistory("","","","!RANCID-CONTENT-TYPE: fortigate\n\n");

To

183 ProcessHistory("","","","#$_");
214 ProcessHistory("ENC","","","#$1 ENC <removed> $3\n");
289 ProcessHistory("","","","!RANCID-CONTENT-TYPE: fortigate\n\n");
Post by Gavin McCullagh
Hi,
using fnrancid (for fortinet), I've noticed that the scripts prefix lines
from the GetSystem command with a !.
Is this a rancid-specific notation or is this an effort to make these
lines
into comments, so the whole file could be loaded up on a Fortinet unit?
As
far as I can see # is the comment character on Fortinet.
Gavin
________________________________________
Iñaki Martínez Díez
Departamento de redes
acens Technologies S.L.
***@acens.com
Teléfono: 637 772 156

Fax: 911 418 501
Este mensaje puede contener información confidencial dirigida exclusivamente a su destinatario.
No se permite su copia o distribución sin la autorización expresa y por anticipado de acens.
Si recibió este mensaje por error, por favor, comuníquelo al emisor y elimínelo de su ordenador. Gracias.
This message may contain confidential information exclusively addressed to its intended recipient.
The copy or distribution of this message is not permitted without the prior express consent by acens.
If you are not the intended recipient of this message please advise the sender and delete it. Thank you.
Loading...