Differences
This shows you the differences between two versions of the page.
| |
| wiki:tower_networking_inc:commands:always [2025/09/23 14:56] – created poco | wiki:tower_networking_inc:commands:always [2025/09/23 15:02] (current) – removed poco |
|---|
| ====== ALWAYS ====== | |
| |
| always (Netsh Routine) | |
| |
| default debugger specification | |
| |
| always routine | |
| |
| The <color blue> always routine</color> is a routine on <color blue>netsh</color>. Its manual can be accessed by inputting <code>man always</code> It is used to specify defaults on the shell to reduce the length of commands that you need to type. | |
| |
| <code>always using <address-of-debugger></code> This command sets a <color blue>default debugger address</color> for the using keyword for all netsh routines. | |
| |
| Consider the following effects with the intent of using the debugger <color red>4567</color> for the commands: Without default debugger address, commands that interact with device/users always need to be followed with the <color blue>using</color> keyword to specify which debugger are we running it from: <code>net show on 123 using 4567</code> <code>scan firewalls using 4567</code> With default debugger address (after doing \<code>always using 4567</code>), commands may now be shorter and easier to input: <code>net show on 123</code> <code>scan firewalls</code> | |
| |
| Note that even with a default debugger set with the <color blue>always using</color> command, you can still specify a different debugger (i.e., override the default) with the <code>using</code> keyword. For example, after doing \<code>always using 4567</code> and running a <color red>net show</color> command, you want to use the another debugger <color red>89123</color> for just one command to scan devices: <code>net show on 123</code> <code>scan devices using 89123</code> The first command is performed on debugger <color red>4567</color> while the second is performed on debugger <color red>89123</color>. This may sometimes be necessary if you have debuggers on different part of the networks that cannot <color blue>reach</color> the target devices. | |
| |
| Additionally, the <code>using</code> keyword accepts both <color blue>hardware address</color> and <color blue>network address</color>. This means that you can also do <color red>always using @mydebug</color> to set a default debugger with network addresses instead (if the debugger has been assigned the network address <color red>@mydebug</color>). | |
| |