06-22-2013 12:10 PM - edited 03-16-2019 06:01 PM
Hi,
I am trying to configure the SNMP contact and location setting on a CUCM 8.6 server.
This can be done from the CLI using the command utils snmp config mib2 add
This works fine when a single word is entered when a single word is entered - e.g. James and Cheltenahm
admin:utils snmp config mib2 add
ctrl-c: To quit the input.
Enter the sysContact information:: James
Enter the SysLocation information:: Cheltenham
Service Manager is running
SNMP Master Agent[STOPPING]
SNMP Master Agent[STOPPING]
Commanded Out of Service
SNMP Master Agent[NOTRUNNING]
Service Manager is running
SNMP Master Agent[STARTING]
SNMP Master Agent[STARTING]
SNMP Master Agent[STARTED]
However when I try to enter multiple words it fails.
admin:utils snmp config mib2 add
ctrl-c: To quit the input.
Enter the sysContact information:: James Hawkins
Enter the SysLocation information:: Cheltenham, United Kingdom
incorrect parameters
Syntax: /usr/local/platform/cli_scripts/snmpv3Commands.sh add_system <sysLocation> <sysContact>
Note: to delete, leave <sysLocation> and <sysContact> blank
Cannot execute the command
I have also tried enclosing the strings in single quotes
admin:utils snmp config mib2 add
ctrl-c: To quit the input.
Enter the sysContact information:: 'James Hawkins x245'
Enter the SysLocation information:: 'Home Lab, Cheltenham, United Kingdom'
incorrect parameters
Syntax: /usr/local/platform/cli_scripts/snmpv3Commands.sh add_system <sysLocation> <sysContact>
Note: to delete, leave <sysLocation> and <sysContact> blank
Cannot execute the command
and also double quotes
admin:utils snmp config mib2 add
ctrl-c: To quit the input.
Enter the sysContact information:: "James Hawkins x2459"
Enter the SysLocation information:: "Home Lab, Cheltenham, United Kingdom"
System Contact cannot have double quotes. Please correct the entry
I have also tried enclosing the info within < >
admin:utils snmp config mib2 add
ctrl-c: To quit the input.
Enter the sysContact information:: <James Hawkins x2459>
Enter the SysLocation information:: <Home Lab, Cheltenham, United Kingdom>
incorrect parameters
Syntax: /usr/local/platform/cli_scripts/snmpv3Commands.sh add_system <sysLocation> <sysContact>
Note: to delete, leave <sysLocation> and <sysContact> blank
Cannot execute the command
Does anyone know how to enter a string with spaces using this command?
Solved! Go to Solution.
06-22-2013 09:47 PM
There's a feature request for this being tracked under CSCti13478. You should talk to your Cisco account team to get more visibility on this if you need this functionality.
06-22-2013 09:47 PM
There's a feature request for this being tracked under CSCti13478. You should talk to your Cisco account team to get more visibility on this if you need this functionality.
06-23-2013 01:00 AM
Brian,
Thank you for your response. Hopefully it will be fixed soon!
01-23-2019 05:58 PM
01-23-2019 06:49 PM
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