Re: [foxboro] Getting logical name in a shell script
- From: "Ricardo Abech" <abech@xxxxxxxxxxxx>
- To: <foxboro@xxxxxxxxxxxxx>
- Date: Thu, 15 Jan 2009 09:41:47 -0200
Dear Ignacio,
You can build a script that reads the /usr/fox/sp/IIF.prm (this file
contains all station NAMES and Logical NAMES on it) and look for the 4th
column = "MSGLN". Then the 1st Column will be the machine NAME (uname) and
the 6th column will be the Logical NAME (LN). Then you can rmount the
station (or use Shared folders \\STATION_NAME\IA\... If windows) to check
each station for AAtab and AApan files and create a report.
If PERL is an option of programming language for you, I can help you to
build something. Drop me an email off-list then.
Best Regards,
Ricardo P. Abech
Chief Software Architect
LimeWare Company, Inc.
[USA phone]: (408) 786 5140
[phone]: +55 51 3388 8270
[mobile]: +55 51 8192 9723
[email]: abech@xxxxxxxxxxxxxxxxxxx
[http://]: www.limewarecompany.com
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of QUEIROLO OLIVERA, IGNACIO ESTEBAN
Sent: Thursday, January 15, 2009 9:28 AM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] Getting logical name in a shell script
My apologies, here is the detail.
What I need to get is the name of the pan file in /usr/fox/alarms because I
have to know if the local station (51 series) has or not has alarm panels.
The name of this file is the logical name plus AApan in WP's stations but in
AW's boxes the logical name is not the letterbug of the station (at least in
my system).
For example, I have one AW box with two alarm panels and the name of the pan
file is 00WA02AApan where 00AW02 is his letterbug.
Regards,
YPF Ignacio Queirolo
Control Avanzado
Complejo Industrial Ensenada
tel.: 54 221 429-8400 ext. 26481
-----Mensaje original-----
De: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] En
nombre de Johnson, Alex P (IPS)
Enviado el: Miércoles, 14 de Enero de 2009 17:30
Para: foxboro@xxxxxxxxxxxxx
Asunto: Re: [foxboro] Getting logical name in a shell script
The logical name of what?
You can pass the logical name of the DM/FV launching a program - $DMNAME
- as an argument when using the applic or run commands.
You can use:
MY_NAME=`uname -n`
To get the station litterbug of the machine you are using. This is a
logical name for some purposes.
You can use this name to find certain related logical names by 'grep'ing
/usr/fox/sp/sldb.
Hope this helps.
Regards,
Alex Johnson
Invensys Process Systems
10900 Equity Drive
Houston, TX 77041
713 329 8472 (desk)
713 329 1600 (operator)
713 329 1944 (SSC Fax)
713 329 1700 (Central Fax)
alex.johnson@xxxxxxxxxxxxxxxx
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of QUEIROLO OLIVERA, IGNACIO ESTEBAN
Sent: Wednesday, January 14, 2009 11:27 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Getting logical name in a shell script
Hi list,
I need to obtain the logical name in a shell script. This is what I get
after tried several things. Is there somebody with a simplest solution?
#!/bin/sh
LOCALHOST=3D`hostname`
LOGICALNAME=3D`grep "MSGLN" /usr/fox/sp/IIF.prm | grep "$LOCALHOST" | =
awk
'{print $6}'`
echo "$LOGICALNAME"
YPF Ignacio Queirolo
Control Avanzado
Complejo Industrial Ensenada
tel.: 54 221 429-8400 ext. 26481=20
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
* Confidentiality Notice:
This e-mail and any associated files are intended solely for the individual
or entity to whom they are addressed. Please do not copy it or use it for
any purposes, or disclose its contents to any other person. Further, this
e-mail and any associated files may be confidential and further may be
legally privileged. This email is from the Invensys Process Systems business
unit of Invensys plc which is a company registered in England and Wales with
its registered office at Portland House, Bressenden Place, London, SW1E 5BF
(Registered number 166023). For a list of European legal entities within
the Invensys Process Systems business group, please click here
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77
.
If you have received this e-mail in error, you are on notice of its status.
Please notify us immediately by reply e-mail and then delete this message
from your system. Thank you for your co-operation. You may contact our
Helpdesk on +44 (0)20 7821 3859 / 2105 or email
inet.hqhelpdesk@xxxxxxxxxxxxx This e-mail and any attachments thereto may be
subject to the terms of any agreements between Invensys (and/or its
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and
affiliates).
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
Other related posts: