Looking for a script to set the ntp server value to the local router on a Cisco switch. What I know.
There is a MIB "RMON2-MIB", OID Name "netDefaultGateway.0", Value (When MIB executed returns "10.111.95.254")
I want to insert this value in the following command-line script:
config terminal
ntp server (insert here "netDefaultGateway") prefer version 2
end
Anyone know how to capture this value to replace "netDefaultGateway" with the real gateway address?