How to test identd function for Serviceguard

Use 'idlookup' to test identd. Note that only established ports can
be tested.
The man page states:
idlookup - identify the user of a particular TCP connection
usage: idlookup {host-or-ip-number} {foreign-port} {local-port}

# netstat -a | grep hacl-cfg

tcp 0 0 localhost.hacl-cfg localhost.60712 ESTABLISHED

# idlookup 127.0.0.1 60712 5302
Identifier: root
Opsys: UNIX

Another way:
1) Choose a connection from netstat -an output
# netstat -an | more
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
[..]
tcp 0 0 127.0.0.1.60934 127.0.0.1.5304 ESTABLISHED
----- ----
hacl-local port

# telnet localhost 113 (identd port)
Trying...
Connected to localhost.
Escape character is '^]'.
60934, 5304 <---- enter port numbers here
60934 , 5304 : USERID : UNIX :root <----- identd's reply
Connection closed by foreign host.