How does netsh expand its functions? How can I adapt netsh to support sctp?

Source: Internet
Author: User
Netsh


Description
| Syntax
| Parameters
| Switches
| Related
| Notes
| Examples
| Errorlevels
| Availability

The netshell utility (netsh) is a command-line, scripting
Interface for processing ing and monitoring windows.
Configuration tool provides an Interactive Shell Interface
To the user. The front end is the command shell that accepts
Your commands, andThe back end is a helper that corresponds
To a system component or utility. A helper is a dynamic link
Library file (. dll) that extends the functionality of netsh.
A helper provides configuration and/or monitoring support
For one or more services, utilities, or protocols,
Helpers can also be used to extend other helpers.
Command Shell directs the command to the appropriate helper,
And the Helper carries out the command.

The netsh command allows you to run the netshell Utility
To display or modify the configuration of a currently
Running computer. It also provides a scripting feature that
You can use to run a collection of commands in batch mode
Against a specified computer.

The command shell provides for contexts, which are
Groupings of netsh commands for specific networking
Components. A context is identified by a string that is
Appended to commands. commands entered in a given context
Are passed to an associated helper. The contexts available
Depend on the Windows components installed. For example,
Typing routing at the netsh command changes
The routing context. Typing ras at the netsh command
Changes to the RAS (Remote Access portion of the routing
And Remote Access Service) context.

Subcontexts may exist within each context. For example,
Within the routing context, you can change to the IP address and
IPX subcontexts.


Syntax

Netsh
/?

Netsh
[-
Aliasfile
]
[-C
Context
]
[-R
Remotecomputer
]
[Command
|-F
Scriptfile
]


Parameters


Command
(Nt2000
)
?


Switches


/?
(Ntxp
)
Displays help.

-A aliasfile
(Nt2000
)
?

-C Context
(Nt2000
)
?

-F scriptfile
(Nt2000
)
?

-R remotecomputer
(Nt2000
)
?


Related

None.


Notes

To display a list of subcontexts and commands that can be
Used in a context, at the netsh prompt, type the context name,
Followed by a space and ?. For example, to display a list
Subcontexts and commands that can be used in the routing context,
At the netsh prompt, type:

    netsh>routing ?

Netsh commands:

These additional commands can be used with netsh.
Optional parameters are shown in brackets ([]).
Alternative entries are shown with a pipe (|) between them.

  • ?
    Displays help.
  • Abort
    Discards any changes made in offline mode.
    No effect in online mode.
  • Add helper dll_name
    INSTALLThe helper DLL.
  • Alias [alias_name]
    Displays the equivalent string.
  • Alias [alias_name] [string1] [string2]...
    Sets
    Alias_name to the specified strings.
  • Alias
    Lists All aliases.
  • Bye
    Exits the program.
  • Commit
    Commits any changes made in the offline mode
    The router. No effect in the online mode.
  • Delete helper dll_name
    Removes the Helper DLL.
  • Dump-file_name
    Dumps or appends configuration to
    Text file.
  • Exec script_file_name
    Loads the script file and executes
    Commands from it.
  • Exit
    Exits the program.
  • H
    Displays help.
  • Help
    Displays help.
  • Offline
    Sets the current mode to offline. Any changes
    Made in this mode will be saved, but require a commit or online
    Command to be set in the router.
  • Online
    Sets the current mode to online. Any changes in
    This mode will be immediately reflected in the router.
  • Popd
    Pops a context from the stack.
  • Pushd
    Pushes current context onto the stack.
  • Quit
    Exits the program.
  • Set file [open file_name | append file_name | close]
    Copies the Command Prompt window output to a file.
    Nt2003
  • Set Machine [[// computer_name =] string]
    Sets the current computer on which to perform configuration tasks.
    Nt2003
  • Set mode [mode =] online | offline
    Sets the current
    Mode to online or offline.
  • Show alias
    Lists All defined aliases.
  • Show helper
    Lists all top-level helpers.
  • Show Mode
    Shows the current mode.
  • Unalias alias_name
    Deletes the specified alias.


Examples

None.


Errorlevels

None.


Availability

External
DoS
None
Windows
None
Windows NT
Nt2000
Ntxp
Nt2003

Last Updated: 2003/07/28

Direct corrections or suggestions:
Rick lively

 

From: http://or8.net /~ AJ/windows_total_command/commands/n/netsh. htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.