07-12-2012 02:43 AM - edited 03-10-2019 07:17 PM
Hi all,
I hope you guys can help me. I configured tacas+ (tac_plus version F4.0.4.25) on a centOS server.
In my config file i have the following :
accounting file = /var/log/tacas_acc.log
When i log in to a switch that authenticate's against the tacacs server, i see in my log file the following :
Jul 12 09:39:50 10.80.2.67 c.lenting tty6 192.168.1.188 start
So it works! that's great
The only problem is, the time is incorrect
The date on the server is correct, the date on the switch is correct.
date switch :
#sh clock
11:39:52.581 CDT Thu Jul 12 2012
date server :
]# date
Thu Jul 12 11:40:22 CEST 2012
I allready put tacas in debug mode, only i cant find something usefull that puts me in the right direction.
So i hope somebody here can help me.
Greetz,
Carlo Lenting
07-12-2012 02:51 AM
Carlo Lenting wrote:
Hi all,
I hope you guys can help me. I configured tacas+ (tac_plus version F4.0.4.25) on a centOS server.
In my config file i have the following :
accounting file = /var/log/tacas_acc.log
When i log in to a switch that authenticate's against the tacacs server, i see in my log file the following :
Jul 12 09:39:50 10.80.2.67 c.lenting tty6 192.168.1.188 start
So it works! that's great
The only problem is, the time is incorrect
The date on the server is correct, the date on the switch is correct.
date switch :
#sh clock
11:39:52.581 CDT Thu Jul 12 2012
date server :
]# date
Thu Jul 12 11:40:22 CEST 2012
I allready put tacas in debug mode, only i cant find something usefull that puts me in the right direction.
So i hope somebody here can help me.
Greetz,
Carlo Lenting
Hello Carlo,
Have you checked the date and time in centOS server.
Hope to Help !!
Ganesh
07-12-2012 02:57 AM
Hi Ganesh,
Yes thats the first 2 things i checked. Time on the centOS server and the time on de switch.
Both are correct.
Can it be that the switch in an other time zone ? (CDT)
thanks for responding here
greetz carlo
07-12-2012 03:04 AM
Carlo Lenting wrote:
Hi Ganesh,
Yes thats the first 2 things i checked. Time on the centOS server and the time on de switch.
Both are correct.
Can it be that the switch in an other time zone ? (CDT)
thanks for responding here
greetz carlo
Hello Carlo,
Normally as best practice even when ever we configure any loggin with server and network devices, the date and time zone format shoudl be same in orde to avoid confusion.
Try changing the date and time zone format and let me know how things works..
Cheers
Ganesh
rate if it helps ...
07-12-2012 03:21 AM
Aaah it doesn't help. The switch has :
clock timezone CET 1
clock summer-time CDT recurring
so that's correct.
The server as well is correct.
I am confused... :$
07-12-2012 07:17 AM
Carlo,
After you finished the install did you try to restarting the tac_plus services? Also try rebooting the box to see if that fixes it.
07-12-2012 07:31 AM
Hi tarik,
no i didn't reboot anything. I found something.
there is a possibility In the init-script to turn debuggin on.
I can see in de debug log :
Thu Jul 12 11:17:49 2012 [10016]: c.lenting
Thu Jul 12 11:17:49 2012 [10016]: port:
Thu Jul 12 11:17:49 2012 [10016]: tty6
Thu Jul 12 11:17:49 2012 [10016]: rem_addr:
Thu Jul 12 11:17:49 2012 [10016]: 192.168.1.188
Thu Jul 12 11:17:49 2012 [10016]: arg[0]: size=10
Thu Jul 12 11:17:49 2012 [10016]: task_id=65
Thu Jul 12 11:17:49 2012 [10016]: arg[1]: size=12
Thu Jul 12 11:17:49 2012 [10016]: timezone=CDT
so is it possible to set a timezone in tac_plus.conf ?
tnxs for reading and helping
greetz carlo
07-12-2012 07:36 AM
See if this can provide any help:
time zone = time-zone
By default, the daemon uses your local system time zone to convert the internal system time to calendar time. This option sets the TZ environment variable to the time-zone argument. See your local tzset man page for details.
http://www.pro-bono-publico.de/projects/tac_plus.html
Thanks,
Tarik Admani
07-12-2012 07:38 AM
hi tarik,
i have the feeling we are close
only tacacs wont start
/etc/init.d/tac_plus start
Starting TACACS+ : Error: Unrecognised token time on line 3
07-12-2012 07:50 AM
ok guys, i found (i think the solution )
At http://www.shrubbery.net/tac_plus/CHANGES i see i need a higher version
(F4.0.4.26)
tnxs for reading/shouting/writing
I upgraded to tacacs+-4.0.4.26 and then it worked!!
greetz carlo
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide