The "right way" to use telnet client !!??
Run CMD as Local Admin
type
telnet <IP address or hostname or fqdn> <port>
shortcuts in telnet
To disconnect from remote server, type:
close servername port
c server001 8080
cowieit
Tuesday, 30 September 2014
device manager - hidden devices
device manager:
from cmd:
set devmgr_show_nonpresent_devices=1
devmgmt.msc
from gui:
show hidden devices
from cmd:
set devmgr_show_nonpresent_devices=1
devmgmt.msc
from gui:
show hidden devices
install uninstall Telnet client on W2008 / Win 7
install Telnet client on W2008 / Win 7
start run cmd
dism /online /Enable-Feature /FeatureName:TelnetClient
uninstall the Telnet client using command line
dism /online /Disable-Feature /FeatureName:TelnetClient
server will ask for a reboot
legacy command - package manager is now deprecated
pkgmgr /iu:"TelnetClient"
uninstall the Telnet client using command line
start run cmd
dism /online /Enable-Feature /FeatureName:TelnetClient
uninstall the Telnet client using command line
dism /online /Disable-Feature /FeatureName:TelnetClient
server will ask for a reboot
legacy command - package manager is now deprecated
pkgmgr /iu:"TelnetClient"
uninstall the Telnet client using command line
pkgmgr
/up:”TelnetClient”
SCCM info
SCCM
Manuel start of Contorl Panel ConfigMgr Client
"C:\Windows\CCM\SMSCFGRC.cpl"
Missing Software Center shortcut run it from
C:\Windows\ccm\SCClient.exe
To make SCCM look for packages to download
Control Panel > Config Mgr
Call for "Machine Policy & Eval Cycle"
Wait a minute
Open software center.
SCCM Log
C:\Windows\Debug\SCCMInstallMonitor.log
Look in Control Panel for Config Mgrv.5 = SCCM 2012
v.4 = SCCM 2007
Regedit key to uninstall software
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Information for uninstall
MsiExec.exe /X{C2A5E62E-F1C9-491C-8C3A-F8F2CBBF1EF0}
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Manuel start of Contorl Panel ConfigMgr Client
"C:\Windows\CCM\SMSCFGRC.cpl"
Missing Software Center shortcut run it from
C:\Windows\ccm\SCClient.exe
To make SCCM look for packages to download
Control Panel > Config Mgr
Call for "Machine Policy & Eval Cycle"
Wait a minute
Open software center.
SCCM Log
C:\Windows\Debug\SCCMInstallMonitor.log
Look in Control Panel for Config Mgrv.5 = SCCM 2012
v.4 = SCCM 2007
Regedit key to uninstall software
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Information for uninstall
MsiExec.exe /X{C2A5E62E-F1C9-491C-8C3A-F8F2CBBF1EF0}
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
set a manual MAC address for a virtual network adapter 00:50:56:00:00:00 - 00:50:56:3F:FF:FF
For static MAC addresses in a vCenter you can use a MAC addresses in this range
My friend Bjorn found a bash command on the net and modified it for my needs:
for x in {0..63};do for y in {0..255};do for z in {0..255};do printf “00:50:56:%02X:%02X:%02X,” $x $y $z;done;done;done >> GuysMacs.txt
if it doesnt work try this one ( %02X; instead of %02X, )
for x in {0..63};do for y in {0..255};do for z in {0..255};do printf “00:50:56:%02X:%02X:%02X;” $x $y $z;done;done;done >> GuysMacs.txt
It generates a text file called GuysMacs.txt with all of the mac addresses in scope.
it’s a 74 Megabyte textfile. roughly 4,2 million mac-addresses
If you want a copy of this file get in contact with me...
You can open this file in Excel - but only versions that support .xlsx
Thank you Mr Bjorn Fredriksson
find all the static macs on a vCenter with powercli - thanks to someone on internet who i stole this from - sorry can't reference you...forgotten already !
Get-VM | Where-Object {($_ | Get-NetworkAdapter).ExtensionData.AddressType -eq "manual"} | ` Select-Object -Property Name, PowerState, @{"Name"="MAC";"Expression"={($_ | Get-NetworkAdapter).MacAddress}}
From VMware KB219 and this link below:
00:50:56:00:00:00 - 00:50:56:3F:FF:FF
for x in {0..63};do for y in {0..255};do for z in {0..255};do printf “00:50:56:%02X:%02X:%02X,” $x $y $z;done;done;done >> GuysMacs.txt
if it doesnt work try this one ( %02X; instead of %02X, )
for x in {0..63};do for y in {0..255};do for z in {0..255};do printf “00:50:56:%02X:%02X:%02X;” $x $y $z;done;done;done >> GuysMacs.txt
It generates a text file called GuysMacs.txt with all of the mac addresses in scope.
it’s a 74 Megabyte textfile. roughly 4,2 million mac-addresses
If you want a copy of this file get in contact with me...
You can open this file in Excel - but only versions that support .xlsx
Thank you Mr Bjorn Fredriksson
find all the static macs on a vCenter with powercli - thanks to someone on internet who i stole this from - sorry can't reference you...forgotten already !
Get-VM | Where-Object {($_ | Get-NetworkAdapter).ExtensionData.AddressType -eq "manual"} | ` Select-Object -Property Name, PowerState, @{"Name"="MAC";"Expression"={($_ | Get-NetworkAdapter).MacAddress}}
From VMware KB219 and this link below:
You can set a static MAC address using the VMware OUI prefix by adding the following line to a virtual machine‘s configuration file:
ethernet<number>.address = 00:50:56:XX:YY:ZZ
In the example, <number> refers to the number of the Ethernet adapter, XX is a valid hexadecimal number between 00 and 3F, and YY and ZZ are valid hexadecimal numbers between 00 and FF. The value for XX cannot be greater than 3F to avoid conflict with MAC addresses that are generated by the VMware Workstation and VMware Server products. The maximum value for a manually generated MAC address is shown in the sample.
ethernet<number>.address = 00:50:56:3F:FF:FFhttp://pubs.vmware.com/vsphere-51/topic/com.vmware.vsphere.networking.doc/GUID-F9243FED-F081-498F-B4A9-EF950292AF77.html
Mount commands for *nix
AIX syntax:
mount -v nfs3 -o rw,bg,soft,intr server001:/DataMoverNFS /mnt
Linux syntax:
mount -t nfs server001:/DataMoverNFS /mnt
Solaris syntax:
mount -F nfs g/mnt
mount -F nfs server001:/DataMoverNFS /mnt
Thanks to Svend !
mount -v nfs3 -o rw,bg,soft,intr server001:/DataMoverNFS /mnt
Linux syntax:
mount -t nfs server001:/DataMoverNFS /mnt
Solaris syntax:
mount -F nfs g/mnt
mount -F nfs server001:/DataMoverNFS /mnt
Thanks to Svend !
xcopy / robocopy specific files from a folder
use %% in a script or use % if running it interactively fromcommand line
the . at the end is 'copy to the current dir'
for %%g in ("\\servername\file1.txt", "\\servername\file2.bat") do xcopy %%g .
robocopy
Subscribe to:
Posts (Atom)