Trying to create a rule to check for shutdown interfaces on a cisco router.
Anyone have the syntax to create a regular expression to check for shutdown interfaces on a cisco router? Following the documentation with no success
I actually created a report which gives a count of admin down and oper down which you might be able to tweak.
You have to have the Node Goup defined under NCM properties
SELECT
NodeCaption AS [Device Name],
NodeGroup AS [Group],
AgentIP AS [Device IP],
COUNT(
CASE WHEN n.Interfaces.AdminStatus = '1'
THEN 1 ELSE NULL END
)
AS [Admin Up],
CASE WHEN n.Interfaces.OperStatus = '1'
AS [Oper Up],
CASE WHEN n.Interfaces.AdminStatus = '2'
AS [Admin Down],
CASE WHEN n.Interfaces.OperStatus = '2'
AS [Oper Down],
n.Interfaces.AdminStatus
AS [Total]
FROM
NCM.Nodes n
WHERE
n.Interfaces.PhysicalInterface = 'Y'
GROUP BY
NodeCaption, AgentIP,NodeGroup
ORDER BY
NodeCaption
Thanks. Will give it a try.