I've set up netdb, got vlan changing working but I was wondering how do I set up changing of port descriptions? I added desc_change to the list of allowed features. The pencil appears on the web interface but when I try and change I get a script error. I assume I need to point to some script but am unsure what to do.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looks like I had a glitch in the error reporting. If you're on v1.12 and do an SVN update it should clear up that error but otherwise sounds like everything is working correctly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sounds good, I just pushed out 1.12 this week so let me know if you run in to any issues with the instructions or anything. There's a few other people on it already though and the changes weren't too major, though be aware you'll need to install a new Ubuntu package and run the database upgrade script.
Jonathan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Upgrading is not really in the best interest for me as I've modded it quite a bit. Are you able to tell me when code you changed to fix the description report error and I can just update that code please?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've set up netdb, got vlan changing working but I was wondering how do I set up changing of port descriptions? I added desc_change to the list of allowed features. The pencil appears on the web interface but when I try and change I get a script error. I assume I need to point to some script but am unsure what to do.
Thanks
Hey,
In your /etc/netdb-cgi.conf make sure this is uncommented:
desc_script = /opt/netdb/vlanchange.pl -ds
Then if you're still having problems, try running the script from the command line like this and post back the results:
/opt/netdb/vlanchange.pl -ds switch,port,"description" -v
Jonathan
That wasn't in the config file, so I added. When I change the description via the webinterface it works but this is the message it gives back:
Description Change Failed
Successfully changed lal-sw-d-79 Gi1/0/1 description to TESTING.
Why is it saying it failed when it hasn't?
Looks like I had a glitch in the error reporting. If you're on v1.12 and do an SVN update it should clear up that error but otherwise sounds like everything is working correctly.
Ah great. I'm currently running NetDB v1.11 ill see if I can upgrade.
Sounds good, I just pushed out 1.12 this week so let me know if you run in to any issues with the instructions or anything. There's a few other people on it already though and the changes weren't too major, though be aware you'll need to install a new Ubuntu package and run the database upgrade script.
Jonathan
Upgrading is not really in the best interest for me as I've modded it quite a bit. Are you able to tell me when code you changed to fix the description report error and I can just update that code please?
Sure,
In netdb.cgi.pl under the changeDesc sub, change:
to
if ( $line =~ /Successfully/ ) {
That should do it.
Also if you have any good mods you think should be rolled back in to the mainline code send them over.
Jonathan
I am on 1.12.3 and still get failed description change even though it is successful...
Thanks I thought it was fixed but I'll have to try and reproduce it on my end with the script.