11-14-2012 07:06 PM
Greetings (from a newbie),
Not sure if this is the right forum. Apologies if it's not.
I have created a workbook to generate router (and switch) configs that takes the description from the loopback interface (configured as <site code>, <site name>, address) and places it in the snmp-server location string. There appears to be a number of characters limitation (different from the interface description).
Can anyone tell me how many characters are allowed in this string ?
Also, is there a way (if there is a limitation) of using multiple lines ?
Thanks in advance.
Reece B
Solved! Go to Solution.
11-14-2012 07:21 PM
There's nothing in the config guide about a character limitation. I just tested and this worked OK for me. How many characters is yours?
HUB(config)# snmp-server location zxcvbnmasdfghjklqwertyuiop1234567890zxcvbnmasdfghjklqwertyuiop123456789zxcvbnmasdfghjklqwertyuiop1234567890zxcvbnmasdfghjklqwertyuiop123456789zxcvbnmasdfghjklqwertyuiop1234567890zxcvbnmasdfghjklqwertyuiop123456789zxcvbnmasdfghjklqwe
HUB(config)#
Edit: Some of the characters got stripped off during the post. My location string is 185 characters.
11-14-2012 07:21 PM
There's nothing in the config guide about a character limitation. I just tested and this worked OK for me. How many characters is yours?
HUB(config)# snmp-server location zxcvbnmasdfghjklqwertyuiop1234567890zxcvbnmasdfghjklqwertyuiop123456789zxcvbnmasdfghjklqwertyuiop1234567890zxcvbnmasdfghjklqwertyuiop123456789zxcvbnmasdfghjklqwertyuiop1234567890zxcvbnmasdfghjklqwertyuiop123456789zxcvbnmasdfghjklqwe
HUB(config)#
Edit: Some of the characters got stripped off during the post. My location string is 185 characters.
11-14-2012 07:40 PM
Thanks for the quick reply.
In replying to your post I found the problem. The person who ran the config workbook must of added some CRLF's to it. When I posted it highlighted the issue.
The things that catch us out, especially when trying to make things foolproof.
Appreciate the effort taken.
Reece...
08-26-2016 07:05 AM
Hello Reece,
I wanted to use the snmp-server location string to provide descriptions (site name, floor, site address) to our switches and I was wondering about the character limitation as well. You mentioned that you "created a workbook to generate router (and switch) configs that takes the description from the loopback interface (configured as <site code>, <site name>, address) and places it in the snmp-server location string." Would you mind showing me how to do that?
Thanks,
Chuck
11-14-2016 01:53 AM
11-14-2016 04:52 AM
Thank you Reece. I couldn't edit the worksheet.
11-14-2016 11:19 AM
Chuck,
Unprotect the individual worksheets. No password applied.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide