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:
/usr/local/omk/bin/opnode_admin.exe act=show node=<node_name>
Posting the command output will help us better understand why it's not working.
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.remote_connection_name=SSH to Node
This is really great data. The first thing we look for is the activation status. In this case we notice:
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:
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
Dear Christopher Gatlin,
You are a master, thanks for the support, make the change you indicated to me in IOS_DAILY, IOS_HOURLY, IOS_TS_BGP, IOS_CPU_ROUTER and IOS_TOP_FLOW_TALKERS. Successful test results.
[root @ cc4 command_sets.d] # perl -c ios.nmis
ios.nmis syntax OK
[Tue Jun 19 00:08:47 2018] [debug] opConfig: run_and_store_commands node = CC_TYT_GT_CENTRAL_TETRACENTER END
The only thing that caused me doubt is that with the last command that executes "opconfig-cli.exe act = run_command_sets". As you notice not only the node "CC_TYT_GT_CENTRAL_TETRACENTER" discovered, but all the others that were on that server, is this normal?
Thank you in advance for your support.
On my test system I execute the following command:
/usr/local/omk/bin/opconfig-cli.exe act=run_command_sets node=r2 debug=9 > /tmp/debug.txt 2>&1
Then I look for 'run_command_sets' in the debug output.
grep 'run_and_store_commands' /tmp/debug.txt
[Tue Jun 19 06:17:37 2018] [debug] run_and_store_commands is done, parent now waiting for children to finish
[Tue Jun 19 06:17:37 2018] [debug] worker run_and_store_commands PID=28462 node=r2 commands=show ip flow top-talkers,show version,show running-config,show cdp neighbors detail,show startup-config,show inventory,show diag,show flash,show interfaces,show ip interface,show ip route summary,show ip route,show ip interface brief,show interfaces stats,show processes cpu sorted ,show ip flow top-talkers,show ip bgp,show ip bgp summary,show ip route summary debug=9
If things are working normally commands sets should only be ran for the specified node.
Powered by a free Atlassian Confluence Open Source Project License granted to Opmantek. Evaluate Confluence today.