I have added to NMIS 2 devices of type Cisco-ISR4431 / K9, in which the OpConfig module validates the connection by TELNET or SSH, indicating that the access credentials are correct, but I can not obtain information such as "show running" or "show ip interface brief".
So I would like to know if someone has integrated this type of equipment, if you have given this error, as I solve it.
If you have a valid support contract please open a ticket by emailing email@example.com. If you are using a free demo license then the best place to start is by determining what opConfig thinks this node is by running the following command:
Posting the command output will help us better understand why it's not working.
Christopher, Thank you for your prompt response, I told you that I have other NMIS teams like C1900, C800 or ASR900, those if the OpConfig works well capturing the "show running" or "show ip interface brief". I put the output you gave me when executing the command on the CiscoISR. $ sudo /usr/local/omk/bin/opnode_admin.exe act=show node=CC_TYT_GT_CENTRAL entry.activated.opConfig=1 entry.activated.opEvents=1 entry.active=true entry.addresses.0=10.212.128.39 entry.addresses.1=10.18.54.2 entry.addresses.2=172.16.222.5 entry.addresses.3=10.15.0.1 entry.addresses.4=172.16.222.4 entry.addresses.5=126.96.36.199 entry.addresses.6=188.8.131.52 entry.authprotocol=md5 entry.businessService= entry.calls=false entry.cbqos=none entry.collect=true entry.comments= entry.connection_info.credential_set=gestionip2 entry.connection_info.default_continuation= entry.connection_info.line_endings= entry.connection_info.personality=ios entry.connection_info.privileged_paging=0 entry.connection_info.transport=Telnet entry.country=Guatemala entry.customer=Opmantek entry.depend= entry.group=CC_TYT_VIP entry.host=10.212.128.39 entry.location=Guatemala entry.max_msg_size=1472 entry.max_repetitions=0 entry.model=automatic entry.name=CC_TYT_GT_CENTRAL_TETRACENTER entry.netType=lan entry.notes= entry.os_info.image=X86_64_LINUX_IOSD-UNIVERSALK9-M entry.os_info.major=16.6 entry.os_info.os=IOS entry.os_info.platform=ISR entry.os_info.train=16.6 entry.os_info.version=16.6.2 entry.ping=true entry.port=161 entry.privprotocol=des entry.property=Customer entry.rancid=false entry.remote_connection_name=SSH to Node entry.remote_connection_url=ssh://$host entry.roleType=CPE_C entry.server_priority=10 entry.serviceStatus=Development entry.services= entry.threshold=true entry.timezone=0 entry.uuid=4c5aa571-5d5b-11e8-ad7d-e4229f613e10 entry.version=snmpv2c entry.webserver=false
Juan, This is really great data. The first thing we look for is the activation status. In this case we notice: entry.activated.opConfig=1 We observe that is node is active for opConfig. The next critical attributes are credential_set, personality, and transport. We observe that these are all set. Now we look at the os_info attributes. This is identified as an IOS device, and the major release is 16.6. This is important because these attributes are used to match a specific command set. The command sets are found in /usr/local/omk/conf/command_sets.d. In this directory you'll find a file ios.nmis. Backup this file somewhere safe, then open it with a text editor. This file is in reality a perl hash; be very careful while editing as this must follow strict perl syntax. You will find 'keys' such as IOS_DAILY, IOS_HOURLY, etc. Nested under these keys you'll notice a 'version' key. The version value is a perl regular expression. If you change this to: '/12.2|12.4|15.\d+|16.\d+/' I suspect it may work. After editing this file check it for perl syntax correctness like so: perl -c ios.nmis Any stray comma, brace, bracket, quote, carriage return, etc. will render this fragile file useless. restart the opconfigd service. service opconfigd restart Then try the following to see if it works. /usr/local/omk/bin/opconfig-cli.exe act=run_command_sets node=<node_name> debug=9