Netcare Agent Readme
1.1 Supported Architectures:
1.2 Supported Operating Systems:
- Windows Server 2003 SP1(x86 and x64)
- Windows Server 2003 SP2(x86 and x64)
- Windows Server 2003 R2 (x86 and x64)
- Windows Server 2008 SP1(x86 and x64)
- Windows Server 2008 SP2(x86 and x64)
- Windows Server 2008 R2 (x86 and x64)
- Linux Ubuntu (x86 and x64)
- Linux SUSE/OPENSUSE (x86 and x64)
- Linux Fedora (x86 and x64)
- Linux RedHat (x86 and x64)
- Linux RedFlag (x86 and x64)
1.3 Hardware Requirements:
- Computer that has a 1.6 GHz or faster processor
- RAM
- 256 MB RAM for x86
- 512 MB RAM for x64
- 20 MB of available hard-disk space
- 5400 RPM hard disk
- 1 Ethernet Card
windows下测试了32位的windows server 2003和64位的windows server 2008,均正常安装。
安装方法请参见用户手册安装部分
linux下可在32位的Ubuntu,RedHat,Redflag,OpenSUSE,Fedora和64位的Ubuntu,OpenSUSE,SUSE安装,防火墙默认的是iptables,如果选用其他防火墙则需要client端自行开启端口,如SuSEfirewall2,目前client端用户只能用root登陆安装。
安装方法请参见用户手册安装部分
- GetAgentinfo
- 获取netcare-agent版本信息
- 传入参数:无
- 返回:string
- GetProcesses
- 获取所有进程信息
- 传入参数:无
- 返回:class ProcessInfo { int ProcessId,string ImageName,
string FullPath,
long NonpagedSystemMemorySize64,
long PagedMemorySize64,
long PeakPagedMemorySize64,
long PeakVirtualMemorySize64,
long PrivateMemorySize64 }
- GetSystemInfo
- 获取所有进程信息
- 传入参数:无
- 返回:class SystemInfo {
string OperatingSystem,
string Product,
string Manufactory,
string Version,
string ComputerName,
string Architecture, }
- KillProcess
- 根据进程号删除指定的进程
- 传入参数:int pid
- 返回:bool
- RestartService
- 根据服务名称重启服务
- 传入参数:string SerivceName
- 返回:bool
- RestartOS
- MemoryRelease
- 内存整理
- 传入参数:int Commend
- 返回:int
- DiskRelease
- 磁盘碎片整理
- 传入参数:enum RunType:Run执行磁盘整理,Check检查磁盘整理运行状况
- 返回:enum ReturnValue:WRONG运行错误,RUNNING正在运行,FREE空闲或运行完毕
- EnumServices
- 重启系统
- 传入参数:无
- 返回:class ServiceInfo
{
public int PID { get; set; }
public ServiceStatus Status { get; set; }
public string ShortName { get; set; }
public string DisplayName { get; set; }
}
其中
enum ServiceStatus
{
SERVICE_STOPPED,
SERVICE_STOP_PENDING,
SERVICE_START_PENDING,
SERVICE_RUNNING,
SERVICE_PAUSED,
SERVICE_PAUSE_PENDING,
SERVICE_CONTINUE_PENDING,
SERVICE_UNKNOW
}
© 2010 Wicresoft Corporation. All rights reserved.