I've only implemented that from the CLI so far. Would you like an option to shut/no shut separate from the vlan change, or do you want to do a shut/no shut when changing a vlan?
Sorry I kind of dropped the ball on this. I never liked my idea for implementation, but I finally completed this feature.
If you run an svn update in /opt/netdb/ as the netdb user, it should pull down all the latest code. Depending on your version, you may have to copy over netdb.cgi.pl to /usr/cgi-bin/netdb.pl and copy the updated contents of /opt/netdb/extra/depends/ to your webserver, usually in /var/www/depends/. Then as long as you allow someone vlan_change access to a switch via /etc/netdb-cgi.conf, a power_off icon should show up next to the port status to allow you to shut, no shut and shut/no shut a port. The vlanchange.pl now supports all three actions but only for cisco devices at the moment.
Let me know if you run in to trouble, and again sorry for the super long delay.
Jonathan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The power_off.png should be in /opt/netdb/extra/depends/power_off.png. Try copying that over to your /var/www/depends/ directory or where the depends/ directory is on your webserver.
Ah cheers, got it now. 1 more issue, when I shut or no shut a port, it gives me an error "Status Change Failed" when actually it has worked, any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From the web interface I get "Status Change Failed" but its actually carrying out the shut or no shut command successfully. So Im confused as to why it is throwing an error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is odd. Could you try running vlan_change.pl manually on the same switchport from the CLI and paste back the contents you receive? Can you verify that your /etc/netdb-cgi.conf is definitely pointing at this same vlan_change.pl version?
From the web interface I get "Status Change Failed" but its actually carrying out the shut or no shut command successfully. So Im confused as to why it is throwing an error.
I noticed the new NetDB vlanchange.pl has a new feature for shutting / no shutting ports. How do I set this up to work for the web interface?
Many Thanks.
Basty,
I've only implemented that from the CLI so far. Would you like an option to shut/no shut separate from the vlan change, or do you want to do a shut/no shut when changing a vlan?
Jonathan
On Nov 11, 2013, at 1:11 PM, Basty bastypasty@users.sf.net wrote:
I would prefer the shut / no shut separate from the Vlan change.
Sounds good I'll see if I can add a knob for that to 1.12.
On Nov 11, 2013, at 1:19 PM, "Basty" bastypasty@users.sf.net wrote:
Thank you very much :) Love the software.
Just a quick question - how long will it take for this feature to be implemented? Cheers.
I'll see if I can get it done next week, between work and the list of bug fixes its been busy lately.
Jonathan
On Nov 15, 2013, at 4:51 AM, Basty bastypasty@users.sf.net wrote:
Basty,
Sorry I kind of dropped the ball on this. I never liked my idea for implementation, but I finally completed this feature.
If you run an svn update in /opt/netdb/ as the netdb user, it should pull down all the latest code. Depending on your version, you may have to copy over netdb.cgi.pl to /usr/cgi-bin/netdb.pl and copy the updated contents of /opt/netdb/extra/depends/ to your webserver, usually in /var/www/depends/. Then as long as you allow someone vlan_change access to a switch via /etc/netdb-cgi.conf, a power_off icon should show up next to the port status to allow you to shut, no shut and shut/no shut a port. The vlanchange.pl now supports all three actions but only for cisco devices at the moment.
Let me know if you run in to trouble, and again sorry for the super long delay.
Jonathan
Hey,
Thank you for implementing thi. I've got it working no problem but no where can I find power_off.png?
Many Thanks
Seb
Hey,
The power_off.png should be in /opt/netdb/extra/depends/power_off.png. Try copying that over to your /var/www/depends/ directory or where the depends/ directory is on your webserver.
cp /opt/netdb/extra/depends/power_off.png /var/www/depends/
Jonathan
Ah cheers, got it now. 1 more issue, when I shut or no shut a port, it gives me an error "Status Change Failed" when actually it has worked, any ideas?
Hey I just realized I didn't backport the power_off.png image to 1.12. Try another svn update and the file should be there to copy over now.
Jonathan
Cool thanks. What about the error that occurs when shut or no shutting a port even though it does it successfully?
Hey,
I'm not seeing an error on my side, could you paste the contents here? Did you get the latest vlanchange.pl?
Thanks
What contents did you want to see? I've got the latest vlanchange.pl
Whatever the specific error message you're getting is. I'm not seeing it on my side.
Thanks
From the web interface I get "Status Change Failed" but its actually carrying out the shut or no shut command successfully. So Im confused as to why it is throwing an error.
That is odd. Could you try running vlan_change.pl manually on the same switchport from the CLI and paste back the contents you receive? Can you verify that your /etc/netdb-cgi.conf is definitely pointing at this same vlan_change.pl version?
/opt/netdb/vlan_change.pl -sns switch,port,shutnoshut
Thanks
On Mar 4, 2014, at 3:13 PM, Basty bastypasty@users.sf.net wrote:
Okay it seems the issue was with the wrong permissions on the vlanchange.log file. www-data didnt have access to it.