Allied Telesis AT-8700XL Series, Rapier i Series, AT-8600 Series manual if exists agent.circuit-id

Models: AT-8700XL Series AT-8600 Series Rapier i Series

1 26
Download 26 pages 29.76 Kb
Page 26
Image 26
if exists agent.circuit-id

The following configuration (thanks to www.thtech.net/article/10) will record Option 82 information in syslog. This part is ignored if no Option 82 information is passed on. The logfile location is configured in syslog.

if exists agent.circuit-id

{

log ( info, concat( "NEW LEASE - IP: ", binary-to-ascii (10, 8, ".", leased-address),

", PORT: ", binary-to-ascii (10, 8, ":", suffix ( option agent.circuit-id, 2)),

", VLAN: ", binary-to-ascii(10, 16, "", substring( option agent.circuit-id, 2, 2)),

", SWITCH: ", binary-to-ascii(16, 8, ":", substring( option agent.remote-id, 2, 6))));

log ( info, concat( "IP ", binary-to-ascii (10, 8, ".", leased-address),

" raw option-82 info is CID: ", binary-to-ascii (10, 8, ".", option agent.circuit-id), "

AID: ",

binary-to-ascii(16, 8, ".", option agent.remote-id)));

USA Headquarters 19800 North Creek Parkway Suite 200 Bothell WA 98011 USA T: +1 800 424 4284 F: +1 425 481 3895

European Headquarters Via Motta 24 6830 Chiasso Switzerland T: +41 91 69769.00 F: +41 91 69769.11

Asia-Pacific Headquarters 11 Tai Seng Link Singapore 534182 T: +65 6383 3832 F: +65 6383 3830

www.alliedtelesis.com

© 2007 Allied Telesis, Inc. All rights reserved. Information in this document is subject to change without notice. Allied Telesis is a trademark or registered trademark of Allied Telesis, Inc. in the United States and other countries.

All company names, logos, and product designs that are trademarks or registered trademarks are the property of their respective owners.

C613-16086-00 REV B

Page 26
Image 26
Allied Telesis AT-8700XL Series, Rapier i Series, AT-8600 Series manual if exists agent.circuit-id