DX IM - UIM - What commands are run by rsp for Windows or UNIX/Linux?


Article ID: 227172


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM)


What commands are run by rsp for Windows or UNIX/Linux?


Any rsp release


What commands are run by rsp for Windows or UNIX/Linux?
A:Command line details for the rsp probe are listed below but note that most calls are made via the probe interface, not via command line:
NOTE: For Windows, instead of using WMI_Provider.exe we are using a library. Exact WMI queries are given below.
You can also use the built in wbemtest in windows discussed in KB article:

For Unix, Plink is not used anymore, however the commands given against pLink hold true. They are fired using yhr OpenSSH library.
Get OS:
wmi_provider.exe -s mehfa01-vm7300 -u Administrator -g os
select FreePhysicalMemory, TotalVisibleMemorySize, FreeSpaceInPagingFiles, SizeStoredInPagingFiles, Caption, Version, CSDVersion, OSLanguage, Locale  from Win32_OperatingSystem
Get CPUs:
wmi_provider.exe -s mehfa01-vm7300 -u Administrator -g cpu
select Name, AddressWidth, Architecture, DeviceID, LoadPercentage from Win32_Processor
Get Disks:
wmi_provider.exe -s mehfa01-vm7300 -u Administrator -g disk
select DriveType, Name, Capacity, FreeSpace from Win32_Volume where DriveType=3
Get Services:
wmi_provider.exe -s mehfa01-vm7300 -u Administrator -g services
select Caption, State, StartMode, StartName from Win32_Service
Get Paging:
wmi_provider.exe -s mehfa01-vm7300 -u Administrator -g paging'
select SystemType from Win32_ComputerSystem

Get Process Table:
wmi_provider.exe -s mehfa01-vm7300 -u Administrator -g processes
select __PATH,Name,ProcessID,ParentProcessId,ThreadCount,Priority,ExecutablePath,KernelModeTime,UserModeTime,CommandLine from win32_process
Get Memory:
wmi_provider.exe -s mehfa01-vm7300 -u Administrator -g memory
select AllocatedBaseSize, CurrentUsage, Name from Win32_PageFileUsage
Get Load:
wmi_provider.exe -s mehfa01-vm7300 -u Administrator -g load
select AllocatedBaseSize, CurrentUsage, Name from Win32_PageFileUsage

Get OS Detail:
plink.exe -ssh [email protected] /bin/uname -s -v -r -m
Get Disks Stats:
plink.exe -ssh [email protected] /bin/df -P -k -l
Get System Uptime:
plink.exe -ssh [email protected] /usr/bin/uptime
Get System Snapshot Since Reboot:
plink.exe -ssh [email protected] /bin/cat /proc/stat
Get Memory Info:
plink.exe -ssh [email protected] /bin/cat /proc/meminfo
Get vmstats:
plink.exe -ssh [email protected] /bin/cat /proc/vmstat
Get Process Table:
plink.exe -ssh [email protected] /bin/ps -eLo
Get Page size:
plink.exe -ssh [email protected] /usr/bin/getconf PAGE_SIZE
Usage: plink [options] [[email protected]]host [command]
("host" can also be a PuTTY saved session name)
-v show verbose messages
-load sessname Load settings from saved session
-ssh -telnet -rlogin -raw
     force use of a particular protocol (default SSH)
-P port connect to specified port
-l user connect with specified username
-m file read remote command(s) from file
-batch disable all interactive prompts
The following options only apply to SSH connections:
-pw passw login with specified password
-L listen-port:host:port Forward local port to remote address
-R listen-port:host:port Forward remote port to local address
-X -x enable / disable X11 forwarding
-A -a enable / disable agent forwarding
-t -T enable / disable pty allocation
-1 -2 force use of particular protocol version
-C enable compression
-i key private key file for authentication 
plink -ssh –l [user name] -pw [password] -v [[email protected]]host [command]

plink -ssh –l root -pw passs123 -v [email protected] /bin/uname -s -v -r -m