Tuesday, August 26, 2014
[+/-] |
Block ROOT Login in UNIX SOLARIS !!! |
Edit below line #
[+/-] |
Windows Server/PC Force Shutdown or Restart from Command Line |
Shutdown
Normal ShutdownTo perform a normal Shutdown, open Run (Start >> Run) and type in Shutdown –s . Your PC will shutdown just as it would when you click Shutdown from the Start menu
Force Shutdown
To perform a Force Shutdown, type in Shutdown –s –f. Notice a new parameter –f? This parameter is responsible for Fore Shutdown.
Force Shutdown with Time
To perform a Timed Force Shutdown, type in Shutdown –s –f –t 00. This will Force Shutdown your PC in 00 seconds (waiting time). Setting it to 05 will shutdown your PC after 05 seconds i.e after waiting for 5 seconds.
Restart
To restart, simply replace –s with –r. If you are unsure, proceed reading.Normal Restart
To perform a normal Restart, open Run (Start >> Run) and type in Shutdown –r . Your PC will reboot just as it would when you click Restart from the Start menu
Force Restart
To perform a Force Restart, type in Shutdown –r –f.
Force Restart with Time
To perform a Timed Force Restart, type in Shutdown –r –f –t 00.
GOODLUCK !!!!
Monday, August 25, 2014
Tuesday, June 3, 2014
[+/-] |
Vi EDITOR Command Line for UNIX SOLARIS LINUX |
[+/-] |
NTP windows commands... |
PUT BELOW COMMANDS ON Command prompt...
net time /querysntp
net time /setsntp:172.18.201.1
w32tm /config /manualpeerlist:172.18.201.1,0x8 /syncfromflags:MANUAL
/reliable:yes /update
net start w32time
w32tm /resync
[+/-] |
Few UNIX SOLARIS Diagnostics Commands... |
#echo | format
#cat /var/adm/messages
#prtdiag -v
#dmesg
#echo |format
#iostat -en
#iostat -En
#df -h
#cat /etc/vfstab
#metastat
#metastat -p
#metadb -i
#uname -a
#uname -X
#cat /etc/release
#psrinfo -v
#fmadm faulty
#Prtpicl
[+/-] |
Find serial Number Windows 2003 & Linux RHEL |
To find the serial number, open command prompt (cmd) and type the following command.
c:\>wmic bios get serialnumber
This will give you your machine’s serial number by pulling the information from BIOS
In Linux RHEL Type in #dmidecode | egrep -i "product name|serial number"
[+/-] |
WINDOWS XP + WINDOWS 2000 + WINDOWS 2003 TELNET SERVER SETUP |
WINDOWS XP + WINDOWS 2003 TELNET SERVER - SETUP(How to enable Telnet in WINDOWS XP + WINDOWS 2000 + WINDOWS 2003)
-----------------------------------------------
Windows 2003 comes with a telnet server that gives you a way to
access a DOS prompt from remote machines via telnet.
The following shows how to configure the windows telnet server
to work with any telnet client (even unix), and to be enabled
so that it comes up automatically after reboots.
Run these commands as administrator from DOS:
sc config TlntSvr start= auto
sc start TlntSvr
tlntadmn config sec=-NTLM
tlntadmn config mode=stream
Enable Secondary logon service in services.msc
That's it.
You should now be able to telnet to this machine from any windows or
unix machine, and login to get a DOS prompt. If you need to login
as a domain user, use the "domain\username" syntax when logging in, eg:
Welcome to Microsoft Telnet Service
login: mydomain\john
password:
WINDOWS 2000 TELNET SERVER - SETUP
----------------------------------
Windows 2000 (Professional, etc) also comes with a telnet server.
The following shows how to configure the windows telnet server
to work with any telnet client (even unix), and to be enabled
so that it comes up automatically after reboots:
0) Login as administrator
1) Go into Control Panel -> Administrative Tools -> Telnet Server
2) In the DOS window that pops up, run these options, hitting
return after each:
3 <-- change="" choose="" option="" p="" registry="" settings="" to=""> 7 <-- change="" choose="" ntlm="" option="" p="" stuff="" the="" to=""> y <-- p="" please="" yes=""> 0 <-- 0="" change="" p="" the="" to="" value=""> y <-- p="" please="" yes=""> 0 <-- menu="" p="" previous="" return="" to=""> 0 <-- exit="" p="">
3) Go into Control Panel -> Administrative Tools -> Services -> Telnet
3a) Set the "Startup Type" to be "Automatic"
3b) Start the service by hitting "Start".
(If it's already running, stop it first, then restart it)
That's it.
You should now be able to telnet to this machine from any windows or
unix machine, and login to get a DOS prompt. If you need to login
as a domain user, use the "domain\username" syntax when logging in, eg:
Welcome to Microsoft Telnet Service
login: mydomain\john
password:
-->-->-->-->-->-->-->