Menu

NetDb 1.12 - Shut / No Shut Feature

Help
Basty
2013-11-11
2014-03-04
  • Basty

    Basty - 2013-11-11

    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.

     
    • Jonathan Yantis

      Jonathan Yantis - 2013-11-11

      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 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.

      NetDb 1.12 - Shut / No Shut Feature

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/netdbtracking/discussion/939989/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Basty

    Basty - 2013-11-11

    I would prefer the shut / no shut separate from the Vlan change.

     
  • Basty

    Basty - 2013-11-11

    Thank you very much :) Love the software.

     
  • Basty

    Basty - 2013-11-15

    Just a quick question - how long will it take for this feature to be implemented? Cheers.

     
    • Jonathan Yantis

      Jonathan Yantis - 2013-11-15

      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:

      Just a quick question - how long will it take for this feature to be implemented? Cheers.

      NetDb 1.12 - Shut / No Shut Feature

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/netdbtracking/discussion/939989/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Jonathan Yantis

    Jonathan Yantis - 2014-02-28

    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

     
    • Basty

      Basty - 2014-03-03

      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

       
  • Jonathan Yantis

    Jonathan Yantis - 2014-03-04

    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

     
    • Basty

      Basty - 2014-03-04

      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?

       
  • Jonathan Yantis

    Jonathan Yantis - 2014-03-04

    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

     
  • Basty

    Basty - 2014-03-04

    Cool thanks. What about the error that occurs when shut or no shutting a port even though it does it successfully?

     
  • Jonathan Yantis

    Jonathan Yantis - 2014-03-04

    Hey,

    I'm not seeing an error on my side, could you paste the contents here? Did you get the latest vlanchange.pl?

    Thanks

     
  • Basty

    Basty - 2014-03-04

    What contents did you want to see? I've got the latest vlanchange.pl

     
  • Jonathan Yantis

    Jonathan Yantis - 2014-03-04

    Whatever the specific error message you're getting is. I'm not seeing it on my side.

    Thanks

     
  • Basty

    Basty - 2014-03-04

    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.

     
    • Jonathan Yantis

      Jonathan Yantis - 2014-03-04

      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:

      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.

      NetDb 1.12 - Shut / No Shut Feature

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/netdbtracking/discussion/939989/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Basty

    Basty - 2014-03-04

    Okay it seems the issue was with the wrong permissions on the vlanchange.log file. www-data didnt have access to it.

     

Log in to post a comment.