basically, what would be nice is to have an alert to tell me when switch's dont match the NTP server
we are using some routers as servers, which then update via the internet to a NTP server.
Hi Spiky,
You should try to create a Universal Device Poller on the following OID:
Object | cntpSysSrvStatus |
OID | 1.3.6.1.4.1.9.9.168.1.1.11 |
Type | INTEGER |
Permission | read-only |
Status | current |
Values | 1 : unknown 2 : notRunning 3 : notSynchronized 4 : syncToLocal 5 : syncToRefclock 6 : syncToRemoteServer |
MIB | CISCO-NTP-MIB ; - View Supporting Images javascript:openChildWindow('/ITDIT/MIBS/AdvancedSearch?MibSel=4631','MIBLocator'); |
Description | "Current state of the NTP server with values coded as follows: 1: server status is unknown 2: server is not running 3: server is not synchronized to any time source 4: server is synchronized to its own local clock 5: server is synchronized to a local hardware refclock (e.g. GPS) 6: server is synchronized to a remote NTP server" |
This will return you the status of the clock on your switch. Then you can create an advanced alert which will trigger an action based on the value of that UnDP.
If that OID does not return anything you should browse the Cisco-NTP-MIB for another OID which might more relevant or verify that this MIB is supported on your switch.
To Create the UnDP => Create a Universal Device Poller (UnDP) in the Orion Platform - SolarWinds Worldwide, LLC. Help and Support
To Create the advanced alert, ensure you have the "Type Of Property to monitor" set to Custom Node Poller in the Trigger Condition tab, otherwise you will not have the option to select the UnDP status in the conditions.
Cheers
Yann
Spiky,
You can check which MIB are supported on your IOS/CatOS version there: http://tools.cisco.com/ITDIT/MIBS/servlet/index
The Cisco-NTPMIB is already in the latest Orion MIB Database. You can always update it by downloading it from your customer portal.
Concerning the alert, the conditions you will need to use for a simple one would be:
Poller Name is equal to "Name of your UnDP"
Status is not equal to "X"
To select poller name, go to Custom Node Pollers > Poller Name
and for the Status: Custom Node Pollers > Status
If that MIB is not supported by your Switches/Routers you should have a look at the Traps/Syslog features, you might be able to send a notification to Orion when your equipment cannot synchronize its clock with the NTP Server.
After googling few minutes I found the ntp logging command which might do the trick...
http://www.cisco.com/en/US/docs/ios/12_3/configfun/command/reference/cfr_1g05.html#wp1059331
Let me know if you have the time to test it and if it works.
Did you ever get an answer to this question? Here is a link to a good tutorial below. (although it doesn't look like a link). It really depends on its function. All my network equipment is configured as server clients just to make it simple.
Here is the simplest way that I have found to do it.
hostname> conf t
hostname<config>#ntp server X.X.X.X
hostname<config>#ntp server Y.Y.Y.Y
Where X.X.X.X is your primary server and Y.Y.Y.Y is your secondary server. If you want one of the two to be the preferred server, then type in prefer after the IP. Make sure that your time servers don't require authentication. If they do, then there are a few other steps that you have to go through in order to synchronize to the ntp servers.
Verify that it is configured correctly by running commands such as show ntp status (hopefully it returns a message that shows your network device is synchronized.) You can also run show ntp associations, if synchronized you will see either a * which means that it is the ntp peer it synchronized to or a + which means it is a candidate. Also look for a stratum level which tells you which level the ntp server you synchronized to is at. Hope this helps!
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.