Session Query by IP
Verification
This test verifies the ability of the third party system to execute a directed query regarding a specific IP address via pxGrid and return the contextual information from the user.
Definition
The Session Query by IP script obtains the authenticated user's session information by IP address.
Example
This example obtains the end user session information by entering the IP address of the end user, which is 192.168.1.100.
Run the session_query_by_ip script.
Run session_query_by_ip script
./session_query_by_ip.sh -a 192.168.1.23 -u SIM01 -k alpha.jks -p cisco123 -t alpha_root.jks -q cisco123
Results
------- properties -------
version=1.0.2-30-SNAPSHOT
hostnames=192.168.1.23
username=SIM01
group=Session
description=null
keystoreFilename=alpha.jks
keystorePassword=cisco123
truststoreFilename=alpha_root.jks
truststorePassword=cisco123
--------------------------
12:30:45.610 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Started
Connecting...
Connected
12:30:46.935 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Connected
IP address (or <enter> to disconnect): 192.168.1.100
Session={ip=[192.168.1.100], Audit Session Id=1001, User Name=user1, AD User DNS Domain=null, AD Host DNS Domain=null, AD User NetBIOS Name=null, AD Host NETBIOS Name=null, Calling station id=11:11:11:11:11:11, Session state=STARTED, ANCstatus=null, Security Group=null, Endpoint Profile=Unknown, NAS IP=192.168.1.37, RADIUSAVPairs=[ Acct-Session-Id=2001], Posture Status=null, Posture Timestamp=, Session Last Update Time=Sun Aug 02 12:30:44 EDT 2015}
IP address (or <enter> to disconnect):