Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
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
epics-modules
require
Commits
5930a3fe
Commit
5930a3fe
authored
20 years ago
by
zimoch
Browse files
Options
Downloads
Patches
Plain Diff
options and help fixed
parent
8e9020dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
App/scripts/bootinfo
+9
-33
9 additions, 33 deletions
App/scripts/bootinfo
with
9 additions
and
33 deletions
App/scripts/bootinfo
+
9
−
33
View file @
5930a3fe
...
...
@@ -7,55 +7,31 @@
function
help
()
{
echo
"usage: bootinfo [options] [pattern]"
echo
" Find boot information about %pattern% in database"
echo
" pattern is matched against IOC,IP_ADDRESS,BOOTPC,PORTSV,LOCATION,SWITCH"
echo
"options are:"
echo
" -h, -?, --help : print this help and quit"
echo
" -v, --version : print cvs version info and quit"
echo
" -i : print IP_ADDRESS"
echo
" -l : print LOCATION"
echo
" -b : print BOOTPC and BOOTPC_IP_ADDR"
echo
" -p : print PORTSERVER (server and port)"
echo
" -s : print SAVERESTORE (server and if restore should be used)"
echo
" -n : print network SWITCH"
echo
" -a : print all (= -ilbpsn)"
echo
" -- : treat next word as pattern, even if starting with -"
echo
"default options are: -ibl"
exit
0
}
function
version
()
{
echo
'Author: D. Zimoch'
echo
'$Date: 2004/08/02 09:0
2:38
$'
echo
'$Date: 2004/08/02 09:0
5:46
$'
echo
'$Source: /cvs/G/DRV/misc/App/scripts/bootinfo,v $'
exit
0
}
while
true
do
case
"
$1
"
in
case
"
$1
"
in
-
*
h
*
|
-
*
\?
*
|
--help
)
help
;;
-
*
v
*
|
--version
)
version
;;
--
)
shift
;
break
;;
-
*
)
OPTION
=
$1
while
true
do
OPTION
=
${
OPTION
:1
}
case
"
$OPTION
"
in
i
*
)
SEL
=
"
$SEL
,IP_ADDRESS"
;;
l
*
)
SEL
=
"
$SEL
,LOCATION"
;;
b
*
)
SEL
=
"
$SEL
,BOOTPC,BOOTPC_IP_ADDR"
;;
p
*
)
SEL
=
"
$SEL
,PORTSERVER"
;;
s
*
)
SEL
=
"
$SEL
,SAVERESTORE"
;;
n
*
)
SEL
=
"
$SEL
,SWITCH"
;;
a
*
)
SEL
=
"
$SEL
,IP_ADDRESS,LOCATION,BOOTPC,BOOTPC_IP_ADDR,PORTSERVER,SAVERESTORE,SWITCH"
;;
""
)
break
;;
*
)
echo
"Unknown option -
${
OPTION
:0:1
}
. Try: --help"
exit
1
;;
esac
done
;;
*
)
break
;;
esac
shift
-
*
)
echo
"Unknown option
$1
. Try: --help"
exit
1
;;
*
)
break
;;
esac
shift
done
if
[
-d
/usr/oracle-9.2
]
;
then
...
...
@@ -100,7 +76,7 @@ ORDER BY 1;
EXIT
EOF
# $Name: $
# $Id: bootinfo,v 1.1
0
2004/08/02 09:0
2:38
zimoch Exp $
# $Id: bootinfo,v 1.1
1
2004/08/02 09:0
5:46
zimoch Exp $
# $Source: /cvs/G/DRV/misc/App/scripts/bootinfo,v $
# $Revision: 1.1
0
$
# $Revision: 1.1
1
$
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