Hi Murali,
On 01/29/2014 03:32 PM, Shankar, Murali wrote:
> If I start up multiple IOC’s on the same linux server, the IOC’s that
> start up later use a dynamically assigned TCP port.
>
>>>> cas warning: Configured TCP port was unavailable.
>>>> cas warning: Using dynamically assigned TCP port 33470,
>
> Just curious, is there an EPICS IOC shell command that prints
> out/displays this port?
I started to reply that you can see it in the output from 'casr 2' but
that gives the UDP port and any client-specific TCP ports, not the TCP
one that you want:
Starting iocInit
############################################################################
## EPICS R3.14.12.4-DEV $$Date$$
## EPICS Base built Jan 8 2014
############################################################################
cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 37054,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)
iocRun: All initialization complete
epics> casr 2
Channel Access Server V4.13
Connected circuits:
TCP 164.54.9.24:50571(tux.aps.anl.gov): User="anj", V4.13, 1 Channels,
Priority=0
Task Id=0x7f8cc0009830, Socket FD=7
Secs since last send 3.37, Secs since last receive 3.37
Unprocessed request bytes=0, Undelivered response bytes=0
State=up
656 bytes allocated
anj2:exit(1rw)
UDP Server:
UDP 164.54.8.188:49991(): User="", V4.13, 0 Channels, Priority=0
Task Id=0x7f8cc4000970, Socket FD=6
Secs since last send 3.37, Secs since last receive 1.41
Unprocessed request bytes=0, Undelivered response bytes=16
State=up
272 bytes allocated
There are currently 333208 bytes on the server's free list
6 client(s), 511 channel(s), 511 event(s) (monitors) 0 putNotify(s)
14 small buffers (16384 bytes ea), and 0 jumbo buffers (2500024 bytes ea)
The server's resource id conversion table:
Bucket entries in use = 1 bytes in use = 32832
Bucket entries/hash id - mean = 0.000244 std dev = 0.015623 max = 1
The server's array size limit is 2500024 bytes max
Channel Access Address List
164.54.11.255:5065
If you can connect to a PV on that server a CA client can see it, but
that's probably not much help to you:
tux% cainfo anj2:exit
anj2:exit
State: connected
Host: tux.aps.anl.gov:45089
Access: read, write
Native data type: DBF_DOUBLE
Request type: DBR_DOUBLE
Element count: 1
I think the answer is that there is no such command, although IMHO this
information should be available through casr.
- Andrew
--
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock
- References:
- Command to print out dynamically assigned TCP port Shankar, Murali
- Navigate by Date:
- Prev:
Command to print out dynamically assigned TCP port Shankar, Murali
- Next:
Re: epicsTime::strftime Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Command to print out dynamically assigned TCP port Shankar, Murali
- Next:
RE: Command to print out dynamically assigned TCP port Emmanuel Mayssat
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|