AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-85333

Mr. Lost IT Guy's questions

Martin Hope
Mr. Lost IT Guy
Asked: 2013-10-15 11:21:13 +0800 CST

ESXi 5.1 多个管理连接

  • 1

我很难找到具体的证据表明 ESXi (5.1) 不支持我正在尝试做的事情。也许我的 google-fu 今天不工作了。

我有一个连接到 2 个 VLAN 的 ESXi 主机,我希望每个 VLAN 都能够使用 vSphere Client 管理服务器。我无法将交换机配置为允许与服务器通信。当我添加第二个 vmkernel 端口时,它会断开我与桌面上的 vSphere 客户端的连接,我必须物理访问服务器并重新配置管理网络。

是否不可能在两个不同 (V)LAN 的 vSwitch 上安装 VMkernel?

基本绘图链接:http: //imgur.com/deP61qV

vmware-esxi
  • 2 个回答
  • 6674 Views
Martin Hope
Mr. Lost IT Guy
Asked: 2013-01-12 06:48:38 +0800 CST

通过 VBScript 导出 SCCM 2007 查询结果

  • 0

我想知道是否可以通过 VBScript 导出 SCCM 2007 查询的结果。如果有任何建议,将不胜感激。

我知道我可以通过 VBScript 通过 SCCM 导出报告,方法是使用报告的 Web 视图并伪造 export=yes 并提交表单。查询可能会发生这样的事情吗?

我最终得到的作为 VBScript 函数的工作代码:

'sccmQueryAsArray
'Returns: results in an array built based on the columns specified in the call of the function
'   parseInto: an array provided by the calling function that will be filled with the SCCM query results
'   sccmSiteServerName: a string representing the sccm site server we are connecting to
'   sccmSiteCode: a string representing the sccm site code we are connecting to
'   columns: a one dimensional array containing the names of the columns you want to the function to create an array for
'   query: the actual full length query that will be passed to WMI object
'       example call: sccmQueryAsArray data,"server1","sit",array("Name","UsergroupName"),"select Name, UsergroupName, WindowsNTDomain from sms_r_usergroup where AgentName = 'SMS_AD_SECURITY_GROUP_DISCOVERY_AGENT'"
'       results in an array "data" being modified to 2 columns and as many rows as is returned by the query the array would look like:
'           (0)(x) where 0 = the first element in the columns row or Name
'           (1)(x) where 1 = the second element in the columns row or UsergroupName
function sccmQueryAsArray( ByRef parseInto, ByVal sccmSiteServerName, ByVal sccmSiteCode, ByVal columns, ByVal query )

redim preserve parseInto(ubound(columns),0) 'the array that the query information will be parsed into and then returned

dim objWMIService: set objWMIService = getObject("winmgmts://" & sccmSiteServerName & "\root\sms\site_" & sccmSiteCode) 'set up the connection string
dim colGroups: set colGroups = objWMIService.ExecQuery(query) 'execute the query and put the results into colGroups

dim z: z = 0
dim objGroup: for each objGroup in colGroups
    dim y: for y = 0 to ubound(columns) step 1
        dim x: x = "objGroup." & columns(y)
        parseInto(y,z) = eval(x)
    next
redim preserve parseInto(ubound(parseInto,1),ubound(parseInto,2)+1): z = z + 1
next

sccmQueryAsArray = parseInto

end function
vbscript
  • 2 个回答
  • 2111 Views
Martin Hope
Mr. Lost IT Guy
Asked: 2012-10-24 09:39:40 +0800 CST

VMWare ESXi 将完整 VMFS 上的 VMDK 克隆到空 VMFS 以强制删除快照

  • 1

我的情况:

VMWare ESXi 5.0 SSH 访问

我的一个 VMFS 卷完全满了。VMFS 卷有 1 个厚置备(惰性零)磁盘,上面有 1 个快照。

在我的其他 VMFS 卷之一上,我有足够的空间容纳该磁盘,但前提是我要对它进行精简配置。

VM 关闭并将保持关闭状态,直到修复有问题的磁盘。

我的解决方案:

我想使用 vmkfstools 将磁盘(删除过程中的快照)克隆到 VMFS 卷。

vmkfstools -i "/vmfs/volumes/Datastore1/myvm/myvm-0001.vmdk" "/vmfs/volumes/Datastore2/myvm/myvm.vmdk" -d thin

然后,我将从 vm 中删除带有快照的当前磁盘,并使用相同的 SCSI 连接器连接新创建的精简磁盘。

我的问题是它在删除快照时是否会创建辅助快照?如果是,它会将其放置在源磁盘还是目标磁盘上?

vmware-esxi
  • 2 个回答
  • 824 Views
Martin Hope
Mr. Lost IT Guy
Asked: 2012-06-13 09:54:34 +0800 CST

Server 2003奇怪的AD域名

  • 1

我在一个域名奇怪的网站上工作,我认为这可能是我无法建立信任的原因。

域命名如下 (2003 DC):

  • NETBIOS域名:CITY
  • DNS 域名:CITY.COMPANYNAME

此域功能级别为 2000 Native,林功能级别为 2000。

我正在尝试与托管域的 2008 R2 DC 建立信任,如下所示:

  • NETBIOS 域名:COMPANYNAME
  • DNS 域名:COMPANYNAME.local

此域功能级别为 2008R2,林功能级别为 2008R2。

我的问题分为两部分。将第一个域 (CITY.COMPANYNAME) 提升到 2003 域和林功能级别是否可以使用它的奇怪名称?奇怪的命名可能是导致我在创建信托时遇到困难的原因吗?

windows-server-2008 windows-server-2003 active-directory
  • 2 个回答
  • 91 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve