cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1628
Views
0
Helpful
4
Replies

Using the AuthList without knowing the timezone

orp
Level 1
Level 1

I want to write code able to get all active monitoring sessions an hour back (using the

Session/ActiveList API endpoint), without hardcoding the timezone. Is there any way to get the configured timezone from the API to make this a generic code?
4 Replies 4

Alexander Stevenson
Cisco Employee
Cisco Employee

 

Can you please clarify which Cisco product and API(s) you are using?

I'm using the ISE monitoring API. I want to get all the active sessions from the last hour, but don't know the ISE's configured timezone. I tried always using UTC, but find it's often configured to local time which causes me to actually query a future time and never get results.

Alexander Stevenson
Cisco Employee
Cisco Employee

I see. Well, we need the API to give up a timestamp. I know the ISE API set has something called the Authentication Status API Call (about 1/3 of the way down the page here). This will return this parameter (among others):

 

name=”acs_timestamp”

Time stamp that is associated with the Cisco ISE authentication request

 

So you can use the ISE API to get the timestamp and work with it that way.

But then I would need a certain MAC to give the API call, no? And I don't know what the last sessions to be authenticated are.