Hi folks,
I'm testing out NCM (v6.1) and so far everything is going well. I have it linked to NPM. I imported all the nodes from the NPM database and haven't had any problems so far...until...
I'm trying to run the script listed below. I've run it against several Cisco 3750 switch stacks with no problems. However, one switch stack returns a result of "no entities" under the interface list. I've reviewed the config and SNMP is setup correctly. It is using the same IOS as other stacks that are working, and the config matches our standard config. NPM is able to poll the interfaces and if I go into NCM and tell it to show me the interfaces for that node then it pulls them up correctly.
This is the only switch stack that I've found so far that does not have interfaces listed. Any thoughts?
Here is the script:
/*
.CHANGE_TEMPLATE_DESCRIPTION
This template turns off link and trunk status logging on selected interfaces.
.CHANGE_TEMPLATE_TAGS
Cisco, interface, properties
.PLATFORM_DESCRIPTION
Cisco IOS
.PARAMETER_LABEL @ContextNode
NCM node
.PARAMETER_DESCRIPTION @ContextNode
The node the template will operate on. All templates require this by default. The target node is selected during the first part of the wizard so it will not be available for selection when defining values of variables.
.PARAMETER_LABEL @TargetPorts
Select Port(s)
.PARAMETER_DESCRIPTION @TargetPorts
Select the port(s) you would like to make changes on.
*/
script ConfigureInterfaceCustomCommands (
NCM.Nodes @ContextNode,
NCM.Interfaces[] @TargetPorts
)
{
// Enter configuration mode
CLI
{
configure terminal
}
// Loop through list of interfaces
foreach (@portItem in @TargetPorts)
{
CLI
{
interface @portItem.InterfaceDescription
no logging event link-status
no logging event trunk-status
exit
}
}
CLI
{
exit
}
}
In the above screenshot F12-Bottom and -Top are virtually identical. Same IOS, same # of switches in the stack, virtually the same config, SNMP configured the same, etc. Yet one has the interfaces listed and the other does not.
Thanks