Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESS EPICS Environment
wrappers
e3-require
Commits
167f7504
Commit
167f7504
authored
13 years ago
by
lutz_h
Browse files
Options
Downloads
Patches
Plain Diff
SoftiocBootInformation included correctly
parent
72976ac3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Submodule merge
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
App/scripts/iocBootNotify.sh
+21
-14
21 additions, 14 deletions
App/scripts/iocBootNotify.sh
with
21 additions
and
14 deletions
App/scripts/iocBootNotify.sh
+
21
−
14
View file @
167f7504
...
...
@@ -4,14 +4,14 @@
# The startup script should have the following line:
# bootNotify SLSBASE,"sls/bin/iocBootNotify.sh"
PATH
=
/bin:/usr/bin
PATH
=
$PATH
:
/bin:/usr/bin
.
/etc/profile
if
[
"
$1
"
=
"-v"
]
then
echo
'$Source: /cvs/G/DRV/misc/App/scripts/iocBootNotify.sh,v $'
echo
'$Author:
portmann
$'
echo
'$Date: 201
0/11/30 15:26:00
$'
echo
'$Author:
lutz_h
$'
echo
'$Date: 201
1/05/19 12:31:26
$'
exit
fi
...
...
@@ -35,13 +35,13 @@ fi
SYSTEM
=
$1
IPADDR
=
${
2
/-/
$(
hostname
-i
)
}
PROCNUM
=
$
3
DEVICE
=
$
4
PROCNUM
=
$
{
3
#*
:
}
DEVICE
=
$
{
4
/-/eth0
}
BOOTFILE
=
$5
SCRIPT
=
$6
VXWORKSVER
=
${
7
#VxWorks
}
EPICSVER
=
${
8
#R
}
ETHADDR
=
$
9
ETHADDR
=
$
{
9
/-/
$(
/sbin/ifconfig eth0 |
awk
'/HWaddr/ {print $5}'
)
}
if
[
$#
-lt
9
]
then
...
...
@@ -75,8 +75,7 @@ case $SYSTEM in
(
*
-PC
*
)
;;
(
*
-CP
*
)
;;
(
*
)
echo
"ERROR:
$SYSTEM
is not an acceptable system name."
echo
"VME IOCs must match *-VME* (SLS) or *-CV* (FEL)."
echo
"PC IOCs must match *-PC* (SLS) or *-CP* (FEL)."
echo
"Rename your system and 'target name' to match *-VME* or *-CV*."
exit
1
;;
esac
link
=
$(
readlink
/ioc/
$SYSTEM
)
...
...
@@ -95,6 +94,15 @@ else
VXWORKS
=
$BOOTFILE
fi
if
[
"
$7
"
=
"-"
]
then
VXWORKSVER
=
NULL
VXWORKS
=
NULL
else
VXWORKSVER
=
"'
$VXWORKSVER
'"
VXWORKS
=
"'
$VXWORKS
'"
fi
echo
"I will put the following values to the database:"
echo
"SYSTEM=
$SYSTEM
"
echo
"IPADDR=
$IPADDR
"
...
...
@@ -113,19 +121,18 @@ if [ -z "$ORACLE_HOME" ] ; then
echo
"ORACLE_HOME not defined"
>
&2
exit
1
fi
#if procnum is pc:procnum use procnum, only
PROCNUM
=
${
PROCNUM
##*
:
}
sqlplus
-s
gfa_public/pub01@GFAPRD
<<
EOF
&
INSERT INTO HOSTS.IOC_BOOTLOG
(SYSTEM, IPADDR, PROCNUM, DEVICE, BOOTPC,
SLSBASE, BOOTFILE, SCRIPT, VXWORKS, EPICSVER,
VXWORKSVER, ETHADDR)
VALUES ('
$SYSTEM
', '
$IPADDR
', '
$PROCNUM
', '
$DEVICE
', '
$BOOTPC
',
'
$SLSBASE
', '
$BOOTFILE
', '
$SCRIPT
',
'
$VXWORKS
'
, '
$EPICSVER
',
'
$VXWORKSVER
'
, '
$ETHADDR
');
'
$SLSBASE
', '
$BOOTFILE
', '
$SCRIPT
',
$VXWORKS
, '
$EPICSVER
',
$VXWORKSVER
, '
$ETHADDR
');
EXIT
EOF
# $Name: $
# $Id: iocBootNotify.sh,v 1.
19
201
0/11/30 15:26:00 portmann
Exp $
# $Id: iocBootNotify.sh,v 1.
20
201
1/05/19 12:31:26 lutz_h
Exp $
# $Source: /cvs/G/DRV/misc/App/scripts/iocBootNotify.sh,v $
# $Revision: 1.
19
$
# $Revision: 1.
20
$
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment