Hi, I think that a better way is to get the switch information with SNMP in PHP directly and for get the PF api or maybe a combination?
[http://www.dezb.nl/content/dam/zeeland/zeeuwse/bestanden/logo-zb-email.jpg] [cid:[email protected]] Martijn Langendoen netwerkbeheerder [email protected]<mailto:[email protected]> [cid:[email protected]] 0118 654307 [http://www.dezb.nl/content/dam/zeeland/zeeuwse/icoontjes-social-media/facebook.jpg]<https://www.facebook.com/dezbnl>[http://www.dezb.nl/content/dam/zeeland/zeeuwse/icoontjes-social-media/twitter.jpg]<https://www.twitter.com/dezbnl>[http://www.dezb.nl/content/dam/zeeland/zeeuwse/icoontjes-social-media/linkedin.jpg]<https://www.linkedin.com/company/dezbnl>[http://www.dezb.nl/content/dam/zeeland/zeeuwse/icoontjes-social-media/instagram.jpg]<https://www.instagram.com/dezbnl>/dezbnl www.dezb.nl<http://www.dezb.nl/> [cid:[email protected]] Kousteensedijk 7 4331 JE Middelburg Postbus 8004 4330 EA Middelburg Van: Aniek Vos via PacketFence-users <[email protected]> Verzonden: 14 March 2024 10:50 Aan: [email protected] CC: Aniek Vos <[email protected]> Onderwerp: [PacketFence-users] Retrieving switchport information through the API Opgelet: Deze e-mail is afkomstig van buiten de organisatie. Klik niet op links of open geen bijlagen tenzij je de afzender kent en weet dat de inhoud veilig is. Hi team, I'm currently working on integrating the PacketFence API into a PHP script to control switchports. I've made progress in retrieving the switch IP address based on the switch group and description. However, I'm facing challenges in the following areas: 1. Retrieving switch information using either the switch group and/or description 2. Retrieving port information on a specific switch 3. Filtering ports based on their descriptions I would appreciate any guidance, suggestions, or ideas on how to tackle these challenges effectively. If anyone has experience or insights to share, I would be extremely grateful. Kind regards / Met vriendelijke groet, Aniek Vos Resource Manager [cid:[email protected]] Fellenoord 23 Telefoon: 085 004 9110 5612 AA Eindhoven E-mail: [email protected]<mailto:[email protected]> Nederland www.quconsult.nl<http://www.quconsult.nl/> Werkzame dagen Maandag, dinsdag en woensdag
_______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
