Hi All I need to send about 22 attribute parameter to radclient but it is not working in this way : echo "Service-Type=Framed-User,Framed-Protocol=PPP,NAS-Port=11115644,NAS-Port-Type=Ethernet,User-Name=test1,Calling-Station-Id=D8:5D:4C:BC:C7:6B,NAS-Port-Id=ADSL-PARSIAN(906),Acct-Session-Id=81a57fe5,Framed-IP-Address=2.184.215.124,Acct-Session-Time =777,Acct-Input-Octets=999999,Acct-Input-Gigawords=0,Acct-Output-Octets=999,Acct-Output-Gigawords=0,Acct-Status-Type=Interim-Update,NAS-IP-Address=127.0.0.1" | radclient -x 127.0.0.1:1813 acct ''test'' I get this error : radclient:: Expected end of line or comma radclient: Nothing to send. I need to send parameter in file or something like that I can not find any document or sample . Any one can help me ? Best regards.
On 7 Sep 2014, at 12:14, Mehdi Ravanbakhsh <babakco@gmail.com> wrote:
Hi All
I need to send about 22 attribute parameter to radclient but it is not working in this way :
echo "Service-Type=Framed-User,Framed-Protocol=PPP,NAS-Port=11115644,NAS-Port-Type=Ethernet,User-Name=test1,Calling-Station-Id=D8:5D:4C:BC:C7:6B,NAS-Port-Id=ADSL-PARSIAN(906),Acct-Session-Id=81a57fe5,Framed-IP-Address=2.184.215.124,Acct-Session-Time =777,Acct-Input-Octets=999999,Acct-Input-Gigawords=0,Acct-Output-Octets=999,Acct-Output-Gigawords=0,Acct-Status-Type=Interim-Update,NAS-IP-Address=127.0.0.1" | radclient -x 127.0.0.1:1813 acct ''test''
I get this error :
radclient:: Expected end of line or comma radclient: Nothing to send.
I need to send parameter in file or something like that
I can not find any document or sample .
Just put each AVP on a new line, with a new line at the end of the document Service-Type=Framed-User Framed-Protocol=PPP Then pass the file name with -f. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
You need to add quotes to the following string: NAS-Port-Id='ADSL-PARSIAN(906)' De : freeradius-users-bounces+nicolas.chaigneau=capgemini.com@lists.freeradius.org [mailto:freeradius-users-bounces+nicolas.chaigneau=capgemini.com@lists.freeradius.org] De la part de Mehdi Ravanbakhsh Envoyé : dimanche 7 septembre 2014 18:14 À : FreeRadius users mailing list Objet : send parameter to radclient Hi All I need to send about 22 attribute parameter to radclient but it is not working in this way : echo "Service-Type=Framed-User,Framed-Protocol=PPP,NAS-Port=11115644,NAS-Port-Type=Ethernet,User-Name=test1,Calling-Station-Id=D8:5D:4C:BC:C7:6B,NAS-Port-Id=ADSL-PARSIAN(906),Acct-Session-Id=81a57fe5,Framed-IP-Address=2.184.215.124,Acct-Session-Time =777,Acct-Input-Octets=999999,Acct-Input-Gigawords=0,Acct-Output-Octets=999,Acct-Output-Gigawords=0,Acct-Status-Type=Interim-Update,NAS-IP-Address=127.0.0.1" | radclient -x 127.0.0.1:1813<http://127.0.0.1:1813> acct ''test'' I get this error : radclient:: Expected end of line or comma radclient: Nothing to send. I need to send parameter in file or something like that I can not find any document or sample . Any one can help me ? Best regards. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
participants (3)
-
Arran Cudbard-Bell -
Chaigneau, Nicolas -
Mehdi Ravanbakhsh