(Created page with "= Summary = We manage a bunch of cisco switches which make the network backbone within the space = Details = The following switches are active: * core-sw C2960X-UNIVERSALK9-M * poe-sw C2960S-UNIVERSALK9-M * zaal1-sw C2960X-UNIVERSALK9-M * rack-sw C2960X-UNIVERSALK9-M = Management = On the librenms machine, rancid is installed which creates backups of the switch configurations and mails changes to the BOFH team. Rancid can also be used to automate functionality on the...") |
No edit summary |
||
Line 21: | Line 21: | ||
clogin -c 'show version' core-sw | clogin -c 'show version' core-sw | ||
= PoE = | |||
To control the PoE devices, there is the 'poectl' command on librenms. Every minute, a cronjob calls rancid to fetch power and lldp status and this gets stored under /etc/poe. Next, the poectl is able to work on this data. The following commands are available: | |||
root@librenms:/tmp# poectl status | |||
Port Watts Device | |||
Gi1/0/1 5.0 Polycom VVX 410 | |||
Gi1/0/3 23.8 zaal3-ap | |||
Gi1/0/4 5.0 Polycom VVX 410 | |||
Gi1/0/5 5.0 Polycom VVX 410 | |||
Gi1/0/6 23.8 zaal1-ap | |||
Gi1/0/7 23.8 bar-ap | |||
Gi1/0/8 15.4 Unknown (no lldp talker) | |||
== Phone control == | |||
You can enable or disable the phones using the commands below: | |||
poectl disable_phones | |||
poectl enable_phones |
Latest revision as of 17:38, 15 December 2023
Summary
We manage a bunch of cisco switches which make the network backbone within the space
Details
The following switches are active:
- core-sw C2960X-UNIVERSALK9-M
- poe-sw C2960S-UNIVERSALK9-M
- zaal1-sw C2960X-UNIVERSALK9-M
- rack-sw C2960X-UNIVERSALK9-M
Management
On the librenms machine, rancid is installed which creates backups of the switch configurations and mails changes to the BOFH team. Rancid can also be used to automate functionality on the switches
Using rancid
First, become the rancid user, on the librenms machine
su - rancid
Next, run the command you want to execute via the 'clogin' command:
clogin -c 'show version' core-sw
PoE
To control the PoE devices, there is the 'poectl' command on librenms. Every minute, a cronjob calls rancid to fetch power and lldp status and this gets stored under /etc/poe. Next, the poectl is able to work on this data. The following commands are available:
root@librenms:/tmp# poectl status Port Watts Device Gi1/0/1 5.0 Polycom VVX 410 Gi1/0/3 23.8 zaal3-ap Gi1/0/4 5.0 Polycom VVX 410 Gi1/0/5 5.0 Polycom VVX 410 Gi1/0/6 23.8 zaal1-ap Gi1/0/7 23.8 bar-ap Gi1/0/8 15.4 Unknown (no lldp talker)
Phone control
You can enable or disable the phones using the commands below:
poectl disable_phones
poectl enable_phones