cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1439
Views
0
Helpful
4
Replies

Setting SNMP Contact and Location on CUCM 8.x

James Hawkins
Level 8
Level 8

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?

1 Accepted Solution

Accepted Solutions

brmeade
Level 4
Level 4

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.

View solution in original post

4 Replies 4

brmeade
Level 4
Level 4

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.

Brian,

Thank you for your response. Hopefully it will be fixed soon!

Hello. I know this is an old thread, but I'm trying to understand how this is considered 'Solved' when the BugID referenced clearly states "No release planned to fix this bug". Was asked to help solve for this at a client site recently ... so these are still out there in production. -Chris

This bug 🐛 is still there in cucm. It is not yet fixed.