Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
ce27e57c
Commit
ce27e57c
authored
Aug 15, 2001
by
Mac Newbold
Browse files
Make snmpit accept -cycle instead of just -cyc.
parent
0756ad57
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit.in
View file @
ce27e57c
...
...
@@ -281,7 +281,7 @@ sub ParseArgs {
elsif
(
/^-h(.*)/
)
{
$help
=
2
;}
elsif
(
/^-off(.*)/
)
{
$powerop
=
"
off
";}
elsif
(
/^-on(.*)/
)
{
$powerop
=
"
on
";}
elsif
(
/^-cyc(.*)/
)
{
$powerop
=
"
cyc
";}
elsif
(
/^-cyc(.*)/
)
{
$powerop
=
"
cyc
le
";}
elsif
(
/^-a(.*)/
)
{
$a
=
"
enable
";}
elsif
(
/^-dup(.*)/
)
{
$dup
=
(
$
1
?
$
1
:
shift
(
@CMDS
));}
elsif
(
/^-spd(.*)/
)
{
$spd
=
(
$
1
?
$
1
:
shift
(
@CMDS
));}
...
...
@@ -340,7 +340,7 @@ sub ParseArgs {
"
\t
[+b|-b] [+c|-c] [-g] [-s] [-p <port> <port x>..<port y> ... ]
\n
",
"
\t
[-d|-e] [-a] [-spd<speed>] [-dup<duplex>] [-n<vlan #>]
\n
";
# Hidden Power control functionality
# "\t[ [-on|-off|-cyc] | [-<n>] ]\n";
# "\t[ [-on|-off|-cyc
le
] | [-<n>] ]\n";
}
if
(
$help
>
1
)
{
print
...
...
@@ -372,7 +372,7 @@ sub ParseArgs {
# Hidden Power control functionality
# " -on Turn on outlets\n",
# " -off Turn off outlets\n",
# " -cyc Power Cycle outlets\n",
# " -cyc
le
Power Cycle outlets\n",
# " -(n) Outlet #(n) (n=1-8)\n";
}
#Unused letters of the alphabet:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment