Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

time incorrect in the tacacs log

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

Everyone's tags (2)
9 REPLIES

time incorrect in the tacacs log

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

Community Member

time incorrect in the tacacs log

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

time incorrect in the tacacs log

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 ...

Community Member

time incorrect in the tacacs log

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... :$

time incorrect in the tacacs log

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.

Tarik Admani *Please rate helpful posts*
Community Member

time incorrect in the tacacs log

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

time incorrect in the tacacs log

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

Tarik Admani *Please rate helpful posts*
Community Member

Re: time incorrect in the tacacs log

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

Community Member

Re: time incorrect in the tacacs log

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

971
Views
11
Helpful
9
Replies
CreatePlease to create content