Security

 View Only
  • 1.  Port description through Clearpass

    Posted Aug 01, 2025 05:33 AM

    Hi all,

    We are using Clearpass to dynamically put a device in a VLAN based on (for example) its mac-address. However, all these ports are labeled access-ports. Would it be possible to label a port which has a printer connected "Printer", a port connected to an iphone "IP-Phone" and so on and so on. This would make life a little easier when doing a show int descriptions :)
    We are using Juniper switches..

    Kind regards

    EDG341



    -------------------------------------------


  • 2.  RE: Port description through Clearpass

    Posted Aug 01, 2025 06:44 AM

    Hi

    Short answer is: Probably no.

    The longer answer is that as far as I know the description can't be sent as a generic RADIUS attribute. If Juniper have a specific VSA for this it will be possible. But I'm not familiar with Juniper VSA.

    But you can implement a CLI enforcement to do configuration of the description. This will have some things to consider. First ClearPass must be able to access all switches over SSH and have an account to perform SSH authentication. This account must have the correct permissions to configure description on ports. As this command will only be executed when a device authenticates on a port, the port will keep the description even though the device has disconnected.

    To implement this from ClearPass perspective you have to enable CLI Access on the Network Device

    Also you need to create an enforcement profile with the CLI command you need to run

    In the Command row you specify the command to execute.

    Assign the enforcement profile in the enforcement policy in addition to your current VLAN profiles etc.

    I have only tested similar functions in lab environment.  Make sure to test and verify in lab before rolling out in production.



    ------------------------------
    Best Regards
    Jonas Hammarbäck
    MVP Guru, ACEX, ACDX #1600, ACCX #1335, ACX-Network Security
    Aranya AB
    If you find my answer useful, consider giving kudos and/or mark as solution
    ------------------------------



  • 3.  RE: Port description through Clearpass

    Posted Aug 01, 2025 08:38 AM

    Like Jonas said, it's not possible. Other option is to send back an username via RADIUS. I believe you can use the command: show dot1x interface brief on Junos to show the authenticated users and usernames. 



    ------------------------------
    Willem Bargeman
    Systems Engineer Aruba
    ACEX #125
    ------------------------------



  • 4.  RE: Port description through Clearpass

    Posted Aug 01, 2025 10:05 AM

    Thanks!

    -------------------------------------------



  • 5.  RE: Port description through Clearpass

    Posted Aug 01, 2025 10:04 AM
    Edited by EDG341 Aug 01, 2025 10:04 AM

    Thank you for your answers!

    -------------------------------------------



  • 6.  RE: Port description through Clearpass

    Posted Aug 03, 2025 08:52 AM

    Hi.

    You should be able to change the port name via SNMP, CLI or HTTP enforcement profile. But I see no point in changing the port name as you can provide username for session as was already mentioned.

    Best, Gorazd



    ------------------------------
    Gorazd Kikelj
    MVP Guru 2025
    ------------------------------