I have traditionally used the following formula in scripting to determine if today's date is a specific date for things such as holidays. I use this formula in an IF node.
Every time I tested it was returning a False value. In order to see what was actually being returned for both functions, I set a variable equal to the results from both and ran call tracer. What I found out was that they were returning values just 1 digit apart. I went to the routers to ensure that the date was set correctly on both machines. Anyone else ran into this? If someone is running 7.1 would you mind running this test? Of course, be sure to change the value of the date to represent the date on which you are testing.
Note... I have always used this formula in a release 6 environment with no issue.
Thanks Luis. My only problem with that is I'm still not sure if it's the NOW function or DATE function that is returning the incorrect value. If it's the DATE function than this formula leaves me in no better position. I'll give it a shot this afternoon though. At least I can then narrow it down to which function is correct. Thanks!
I have a system using 7.1.5 that I just tried the following command on and it returned false also: now()=date(2007,07,31). Try using date()=date(2007,07,31) instead of now(). That is working successfully for me and what I have typically used.
Returns the current system date or the date portion of a given date-time value. The given date can be a floating point value (as returned by the now function), a string of the form mm/dd/yy, or three integers: yyyy, mm, dd. date (with no arguments)returns the current date. = date(2001, 7, 15) tests whether the current date is July 15,2001.
You have reached the Cisco Logistics Support Center.. To Check Status of
your RMA, visit Product Returns & Replacements (RMA). Need help? Contact
us by Phone or Email. North Americas Phone: 1800 553 2447 Option 4
Email: firstname.lastname@example.org Europe Phone: +3...
The short answer is that you don't.... That isn't entirely true while at
the same time it kind of is, but for the most part you don't configure
the softkeys. You enable or disable them via TCL. Here is the long
answer. Be sure to read the whole thing or e...
Topology: IP Phone > Switches > Microsoft NPS setup to forward 802.1x
proxy to > ISE 2.1 patch 3 Authentication: EAP-TLS using Cisco MIC SANs
Phone Models 802.1X support? 802.1x flavor Addtl Comment EAP-MD5 EAP-TLS
Cisco 3905 Y Y N Cisco 6911 Y Y N Cisco ...