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-164732

Larsen's questions

Martin Hope
Larsen
Asked: 2024-07-22 21:26:13 +0800 CST

Powershell“New-FsrmFileScreen:0x80070057,参数不正确。”

  • 5

我们正在使用 Windows Server 2019 上的文件服务器资源管理器来监控所有网络共享,以防止勒索软件攻击。最初,我们使用黑名单,但现在我想使用 powershell 命令将其切换为白名单。

这是我用来创建模板的命令(FileGroup 之前已创建):

$ntf_action = New-FsrmAction -Type Command -Command "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe" -CommandParameters "c:\admin-skripte\block-ransomware\block-ransomware.ps1 '[Source Io Owner]' '[Source File Path]' '[Server]'"

New-FsrmFileScreenTemplate -Name "testing" -IncludeGroup "Whitelist" -Notification $ntf_action

失败并显示错误New-FsrmFileScreenTemplate : 0x80070057, The parameter is incorrect.(或0x80070057, Falscher Parameter.德语)

powershell
  • 1 个回答
  • 11 Views
Martin Hope
Larsen
Asked: 2017-04-25 07:29:31 +0800 CST

Saltstack:如何控制 cmd.run 的输出?

  • 1

我只使用 Saltstack 在多个服务器上运行命令,例如检查任何服务器上是否存在特定的 TYPO3 扩展。我想抑制 minions 的空输出(即主机名),并想查看是否无法访问 minion。

目前的示例输出:

serverA:

serverB:

serverC:
    /var/www/vhosts/example.com/httpdocs/typo3conf/ext/news/ext_emconf.php:  'version' => '4.2.1',
serverD:

它应该如何的示例输出(假设 serverX 已关闭):

serverC:
    /var/www/vhosts/example.com/httpdocs/typo3conf/ext/news/ext_emconf.php:  'version' => '4.2.1',
serverX: is down!
saltstack
  • 1 个回答
  • 1912 Views
Martin Hope
Larsen
Asked: 2015-10-20 07:48:11 +0800 CST

Augeas 错误“意外的 LIDENT,期待 UIDENT”

  • 0

我正在尝试基于另一个镜头实现一个新镜头。到目前为止,我所做的只是将镜头复制到 中/usr/share/augeas/lenses/dist,将其文件名和文件本身中的“模块”名称更改为“xxx”。

当我运行时,augtool我收到此错误:

Failed to initialize Augeas
error: Syntax error in lens definition
/usr/share/augeas/lenses/dist/xxx.aug:5.7-.10:syntax error, unexpected LIDENT, expecting UIDENT
/usr/share/augeas/lenses/dist/xxx.aug:syntax error

Debian 杰西,augtool 1.2.0

augeas
  • 1 个回答
  • 444 Views
Martin Hope
Larsen
Asked: 2014-03-15 08:00:40 +0800 CST

Puppet:仅在存在特定包时运行 Augeas

  • 4

我想使用 Augeas 来修改“/etc/inittab”,但这应该只在安装包“sysvinit”时发生。该软件包不受 Puppet 控制(也不应该)。

来自 Augeas 的“onlyif”似乎无法检查除 Augeas 之外的任何内容,id Augeas 无法检查文件是否存在。

有没有办法在不创建自定义事实的情况下实现这一目标?

puppet
  • 2 个回答
  • 749 Views
Martin Hope
Larsen
Asked: 2013-11-23 06:35:05 +0800 CST

Webmin 在哪里存储其防火墙配置?

  • 2

我想将 iptables 的防火墙配置从一台服务器复制到另一台服务器。两台服务器都运行 Debian Squeeze 并安装了 Webmin 1.660,所以我想复制 Webmin 使用的配置。

我在“/var/webmin”、“/etc/iptable*”、“/etc/sysconfig/iptables”或“iptables.up.rules”中找不到它。

“/var/lib/iptables/active”是当前配置,当我编辑它时,这些更改不会显示在 Webmin 中。但是,当我单击“还原配置”时,我的更改会丢失在该文件中并被替换。

我必须复制哪个文件?

iptables
  • 2 个回答
  • 4848 Views
Martin Hope
Larsen
Asked: 2013-04-24 03:02:58 +0800 CST

如何使用 Puppet/Augeas 管理 exim dc_local_interfaces 配置?

  • 2

我需要将“dc_local_interfaces”的值设置为“127.0.0.1;::1”,但分号阻止了这一点。

这是我在 Puppet 中的定义:

augeas { "/etc/exim4/update-exim4.conf.conf":
  lens    => "Shellvars.lns",
  incl    => "/etc/exim4/update-exim4.conf.conf",
  changes => "set dc_local_interfaces 127.0.0.1;::1",
}

我尝试了不同的方法来设置值(不使用撇号、使用撇号、使用反斜杠转义的撇号),但都没有奏效。当我使用 augtool 时一切正常:

set /files/etc/exim4/update-exim4.conf.conf/dc_local_interfaces "'127.0.0.1;::1'"
puppet
  • 2 个回答
  • 910 Views
Martin Hope
Larsen
Asked: 2013-03-23 01:41:40 +0800 CST

Augeas 任务显示为已更改,尽管文件未更改

  • 0

我已经安装了 puppet-dashboard 并注意到我所有的 augeas 任务都显示为“已更改”。我希望 augeas 自动检查要设置的值是否已经设置,在这种情况下什么都不做。

我的食谱:

$puppet_conf = "/etc/puppet/puppet.conf"
file { "${puppet_conf}": }

augeas { "puppet_conf":
        context => "/files/${puppet_conf}/",
        changes => [
                "set agent/report true",
        ],
        require => File["${puppet_conf}"],
}

之前已经设置值时正常运行:

info: Applying configuration version '1363882751'
debug: Augeas[puppet_conf](provider=augeas): Opening augeas with root /, lens path , flags 0
debug: Augeas[puppet_conf](provider=augeas): Closed the augeas connection
debug: Augeas[puppet_conf](provider=augeas): Opening augeas with root /, lens path , flags 0
debug: Augeas[puppet_conf](provider=augeas): sending command 'set' with params ["/files//etc/puppet/puppet.conf/agent/report", "true"]
debug: Augeas[puppet_conf](provider=augeas): Closed the augeas connection
notice: /Stage[main]/Puppet_agent/Augeas[puppet_conf]/returns: executed successfully

文件的日期/时间没有改变,所以它显然不会改变文件。虽然,puppet-dashboard 将文件显示为“已更改”。如果我输入一个“onlyif”,那部分将不会出现,但我不想在 onlyif 中重复所有内容,而且我一次只能设置一个配置选项。

Debian Squeeze
Puppet 2.6.2
Augeas 0.10.0

配置它的正确方法是什么?

puppet-dashboard
  • 1 个回答
  • 442 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